Fix local E2E tests
This commit is contained in:
parent
ff3911ad07
commit
a6241926d2
|
@ -54,10 +54,17 @@ export class MyAccountPage {
|
||||||
|
|
||||||
await container.$('.dropdown-toggle').click()
|
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 text.includes('Delete')
|
||||||
return dropdownMenu().click()
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
await (await deleteItem()).waitForClickable()
|
||||||
|
|
||||||
|
return (await deleteItem()).click()
|
||||||
}
|
}
|
||||||
|
|
||||||
validRemove () {
|
validRemove () {
|
||||||
|
|
|
@ -24,6 +24,9 @@ function runServer (appInstance: string, config: any = {}) {
|
||||||
transcoding: {
|
transcoding: {
|
||||||
enabled: false
|
enabled: false
|
||||||
},
|
},
|
||||||
|
video_studio: {
|
||||||
|
enabled: false
|
||||||
|
},
|
||||||
|
|
||||||
...config
|
...config
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue