import { AdminPluginPage } from '../po/admin-plugin.po'
import { LoginPage } from '../po/login.po'
import { VideoUploadPage } from '../po/video-upload.po'
-import { browserSleep, getCheckbox, waitServerUp } from '../utils'
+import { getCheckbox, waitServerUp } from '../utils'
describe('Plugins', () => {
let videoUploadPage: VideoUploadPage
it('Should install hello world plugin', async () => {
await loginPage.loginAsRootUser()
- await adminPluginPage.navigateToSearch()
+ await adminPluginPage.navigateToPluginSearch()
await adminPluginPage.search('hello-world')
await adminPluginPage.installHelloWorld()
await browser.refresh()
const checkbox = await getPluginCheckbox()
await checkbox.click()
- await browserSleep(5000)
-
await expectSubmitState({ disabled: true })
const error = await $('.form-error*=Should be enabled')
+
expect(await error.isDisplayed()).toBeTruthy()
})