mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-12 22:39:34 -05:00
Add UI tests for settings UI
This commit is contained in:
committed by
Dipak Acharya
parent
f9afcbc47a
commit
d5c132b7f9
+86
@@ -258,6 +258,7 @@ def testPipelines(ctx):
|
||||
|
||||
pipelines += uiTests(ctx)
|
||||
pipelines.append(accountsUITests(ctx))
|
||||
pipelines.append(settingsUITests(ctx))
|
||||
return pipelines
|
||||
|
||||
def testOcisModule(ctx, module):
|
||||
@@ -678,6 +679,91 @@ def accountsUITests(ctx, storage = 'ocis', accounts_hash_difficulty = 4):
|
||||
},
|
||||
}
|
||||
|
||||
def settingsUITests(ctx, storage = 'owncloud', accounts_hash_difficulty = 4):
|
||||
return {
|
||||
'kind': 'pipeline',
|
||||
'type': 'docker',
|
||||
'name': 'settingsUITests',
|
||||
'platform': {
|
||||
'os': 'linux',
|
||||
'arch': 'amd64',
|
||||
},
|
||||
'steps':
|
||||
restoreBuildArtifactCache(ctx, 'ocis-binary-amd64', 'ocis/bin/ocis') +
|
||||
ocisServer(storage, accounts_hash_difficulty, [stepVolumeOC10Tests]) + [
|
||||
{
|
||||
'name': 'WebUIAcceptanceTests',
|
||||
'image': 'webhippie/nodejs:latest',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'SERVER_HOST': 'https://ocis-server:9200',
|
||||
'BACKEND_HOST': 'https://ocis-server:9200',
|
||||
'RUN_ON_OCIS': 'true',
|
||||
'OCIS_REVA_DATA_ROOT': '/srv/app/tmp/ocis/owncloud/data',
|
||||
'OCIS_SKELETON_DIR': '/srv/app/testing/data/webUISkeleton',
|
||||
'WEB_UI_CONFIG': '/drone/src/tests/config/drone/ocis-config.json',
|
||||
'TEST_TAGS': 'not @skipOnOCIS and not @skip',
|
||||
'LOCAL_UPLOAD_DIR': '/uploads',
|
||||
'NODE_TLS_REJECT_UNAUTHORIZED': 0,
|
||||
'WEB_PATH': '/srv/app/web',
|
||||
'FEATURE_PATH': '/drone/src/settings/ui/tests/acceptance/features',
|
||||
},
|
||||
'commands': [
|
||||
'git clone -b master --depth=1 https://github.com/owncloud/testing.git /srv/app/testing',
|
||||
'git clone -b %s --single-branch --no-tags https://github.com/owncloud/web.git /srv/app/web' % (webBranch),
|
||||
'cp -r /srv/app/web/tests/acceptance/filesForUpload/* /uploads',
|
||||
'cd /srv/app/web',
|
||||
'git checkout $WEB_COMMITID',
|
||||
'yarn install-all',
|
||||
'cd /drone/src/settings',
|
||||
'yarn install --all',
|
||||
'make test-acceptance-webui'
|
||||
],
|
||||
'volumes':
|
||||
[stepVolumeOC10Tests] +
|
||||
[{
|
||||
'name': 'uploads',
|
||||
'path': '/uploads'
|
||||
}]
|
||||
},
|
||||
],
|
||||
'services': [
|
||||
{
|
||||
'name': 'redis',
|
||||
'image': 'webhippie/redis',
|
||||
'pull': 'always',
|
||||
'environment': {
|
||||
'REDIS_DATABASES': 1
|
||||
},
|
||||
},
|
||||
{
|
||||
'name': 'selenium',
|
||||
'image': 'selenium/standalone-chrome-debug:3.141.59-20200326',
|
||||
'pull': 'always',
|
||||
'volumes': [
|
||||
{
|
||||
'name': 'uploads',
|
||||
'path': '/uploads'
|
||||
}
|
||||
],
|
||||
},
|
||||
],
|
||||
'volumes':
|
||||
[stepVolumeOC10Tests] +
|
||||
[{
|
||||
'name': 'uploads',
|
||||
'temp': {}
|
||||
}],
|
||||
'depends_on': getPipelineNames([buildOcisBinaryForTesting(ctx)]),
|
||||
'trigger': {
|
||||
'ref': [
|
||||
'refs/heads/master',
|
||||
'refs/tags/v*',
|
||||
'refs/pull/**',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
def dockerReleases(ctx):
|
||||
pipelines = []
|
||||
for arch in config['dockerReleases']['architectures']:
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
*/coverage.out
|
||||
*/checkstyle.xml
|
||||
*/package-lock.json
|
||||
|
||||
ocis/config/identifier-registration.yaml
|
||||
*/bin
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"watch": "rollup -c -w",
|
||||
"test": "echo 'Not implemented'",
|
||||
"generate-api": "node node_modules/swagger-vue-generator/bin/generate-api.js --package-version v0 --source pkg/proto/v0/settings.swagger.json --moduleName settings --destination ui/client/settings/index.js",
|
||||
"acceptance-tests": "cucumber-js --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format node_modules/cucumber-pretty -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
"acceptance-tests": "cucumber-js --retry 1 --require-module @babel/register --require-module @babel/polyfill --require ${TEST_INFRA_DIRECTORY}/acceptance/setup.js --require ui/tests/acceptance/stepDefinitions --require ${TEST_INFRA_DIRECTORY}/acceptance/stepDefinitions --format node_modules/cucumber-pretty -t \"${TEST_TAGS:-not @skip and not @skipOnOC10}\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.13.10",
|
||||
|
||||
@@ -3,43 +3,47 @@ const filesMenu = {
|
||||
'All files',
|
||||
'Shared with me',
|
||||
'Shared with others',
|
||||
'Trash bin'
|
||||
'Deleted files'
|
||||
],
|
||||
Deutsch: [
|
||||
'Alle Dateien',
|
||||
'Mit mir geteilt',
|
||||
'Mit anderen geteilt',
|
||||
'Papierkorb'
|
||||
'Gelöschte Dateien'
|
||||
],
|
||||
Español: [
|
||||
'Todos los archivos',
|
||||
'Compartido conmigo',
|
||||
'Compartido con otros',
|
||||
'Papelera de reciclaje'
|
||||
'Ficheiros eliminados'
|
||||
],
|
||||
Français: [
|
||||
'Tous les fichiers',
|
||||
'Partagé avec moi',
|
||||
'Partagé avec autres',
|
||||
'Corbeille'
|
||||
'Fichiers supprimés'
|
||||
]
|
||||
}
|
||||
|
||||
const accountMenu = {
|
||||
English: [
|
||||
'Manage your account',
|
||||
'Profile',
|
||||
'Settings',
|
||||
'Log out'
|
||||
],
|
||||
Deutsch: [
|
||||
'Verwalten Sie Ihr Benutzerkonto',
|
||||
'Profil',
|
||||
'Einstellungen',
|
||||
'Abmelden'
|
||||
],
|
||||
Español: [
|
||||
'Administra tu cuenta',
|
||||
'Perfil',
|
||||
'Ajustes',
|
||||
'Salir'
|
||||
],
|
||||
Français: [
|
||||
'Modifier votre compte',
|
||||
'Profil',
|
||||
'Paramètres',
|
||||
'Se déconnecter'
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user