Skip to content

Commit

Permalink
Fix more acceptance test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Sep 1, 2021
1 parent 5dbd4d4 commit 789071c
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 47 deletions.
12 changes: 4 additions & 8 deletions dev/docker/oc10.web.config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
{
"server" : "http://host.docker.internal:8080",
"server": "http://host.docker.internal:8080",
"auth": {
"clientId": "M8W5mo3wQV3VHWYsaYpWhkr8dwa949i4GljCkedHhl7GWqmHMkxSeJgK2PcS0jt5",
"url": "http://host.docker.internal:8080/index.php/apps/oauth2/api/v1/token",
"authUrl": "http://host.docker.internal:8080/index.php/apps/oauth2/authorize"
},
"apps": [
"files",
"media-viewer",
"search"
],
"applications" : [
"apps": ["files", "media-viewer", "markdown-editor", "search"],
"applications": [
{
"title": {
"en": "Classic Design",
Expand All @@ -32,4 +28,4 @@
"url": "http://host.docker.internal:8080/index.php/settings/personal"
}
]
}
}
68 changes: 32 additions & 36 deletions dev/docker/ocis.web.config.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,35 @@
{
"server": "https://host.docker.internal:9200",
"theme": "https://host.docker.internal:9200/themes/owncloud/theme.json",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://host.docker.internal:9200/.well-known/openid-configuration",
"authority": "https://host.docker.internal:9200",
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
"server": "https://host.docker.internal:9200",
"theme": "https://host.docker.internal:9200/themes/owncloud/theme.json",
"version": "0.1.0",
"openIdConnect": {
"metadata_url": "https://host.docker.internal:9200/.well-known/openid-configuration",
"authority": "https://host.docker.internal:9200",
"client_id": "web",
"response_type": "code",
"scope": "openid profile email"
},
"options": {
"hideSearchBar": true
},
"apps": ["files", "media-viewer", "markdown-editor", "search"],
"external_apps": [
{
"id": "settings",
"path": "https://host.docker.internal:9200/settings.js"
},
"options": {
"hideSearchBar": true
{
"id": "accounts",
"path": "https://host.docker.internal:9200/accounts.js"
},
"apps": [
"files",
"media-viewer",
"search"
],
"external_apps": [
{
"id": "settings",
"path": "https://host.docker.internal:9200/settings.js"
},
{
"id": "accounts",
"path": "https://host.docker.internal:9200/accounts.js"
},
{
"id": "draw-io",
"path": "web-app-draw-io",
"config": {
"url": "https://embed.diagrams.net",
"autosave": false,
"theme": "minimal"
}
}
]
}
{
"id": "draw-io",
"path": "web-app-draw-io",
"config": {
"url": "https://embed.diagrams.net",
"autosave": false,
"theme": "minimal"
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = {
const selector = this.getResourceInfoSelector(resource, elementType)
let resourceInfoVisible = false
await this.isVisible({ locateStrategy: 'xpath', selector, timeout }, result => {
resourceInfoVisible = result.value === true
resourceInfoVisible = result.status === 0
})
return resourceInfoVisible
},
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/stepDefinitions/filesContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ Then('the last uploaded folder should be listed on the webUI', async function()
})

Then('file {string} should not be listed on the webUI', function(file) {
client.pause(10000)
return client.page.FilesPageElement.filesList()
.isElementListed(file, 'file', client.globals.waitForNegativeConditionTimeout)
.then(state => {
Expand Down Expand Up @@ -1404,7 +1403,7 @@ Then(
assert.strictEqual(
isPresent,
true,
`only '${expectedVisibleItems}' actions menu item(s) was expected to be visible but also found '${visibleItems}'.`
`only '${expectedVisibleItems}' actions menu item(s) was expected to be visible but found '${visibleItems}' instead.`
)
}
)
Expand Down

0 comments on commit 789071c

Please sign in to comment.