1
0
Fork 0

Fix local E2E tests

This commit is contained in:
Chocobozzz 2022-05-20 14:18:20 +02:00
parent ff3911ad07
commit a6241926d2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 13 additions and 3 deletions

View File

@ -54,10 +54,17 @@ export class MyAccountPage {
await container.$('.dropdown-toggle').click()
const dropdownMenu = () => container.$$('.dropdown-menu .dropdown-item')[1]
const deleteItem = () => {
return $$('.dropdown-menu .dropdown-item').find<WebdriverIO.Element>(async v => {
const text = await v.getText()
await dropdownMenu().waitForDisplayed()
return dropdownMenu().click()
return text.includes('Delete')
})
}
await (await deleteItem()).waitForClickable()
return (await deleteItem()).click()
}
validRemove () {

View File

@ -24,6 +24,9 @@ function runServer (appInstance: string, config: any = {}) {
transcoding: {
enabled: false
},
video_studio: {
enabled: false
},
...config
})