aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/suites-local/plugins.e2e-spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src/suites-local/plugins.e2e-spec.ts')
-rw-r--r--client/e2e/src/suites-local/plugins.e2e-spec.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/client/e2e/src/suites-local/plugins.e2e-spec.ts b/client/e2e/src/suites-local/plugins.e2e-spec.ts
index a32ba1044..363c7f836 100644
--- a/client/e2e/src/suites-local/plugins.e2e-spec.ts
+++ b/client/e2e/src/suites-local/plugins.e2e-spec.ts
@@ -1,7 +1,7 @@
1import { AdminPluginPage } from '../po/admin-plugin.po' 1import { AdminPluginPage } from '../po/admin-plugin.po'
2import { LoginPage } from '../po/login.po' 2import { LoginPage } from '../po/login.po'
3import { VideoUploadPage } from '../po/video-upload.po' 3import { VideoUploadPage } from '../po/video-upload.po'
4import { getCheckbox, waitServerUp } from '../utils' 4import { getCheckbox, isMobileDevice, waitServerUp } from '../utils'
5 5
6describe('Plugins', () => { 6describe('Plugins', () => {
7 let videoUploadPage: VideoUploadPage 7 let videoUploadPage: VideoUploadPage
@@ -24,7 +24,7 @@ describe('Plugins', () => {
24 }) 24 })
25 25
26 beforeEach(async () => { 26 beforeEach(async () => {
27 loginPage = new LoginPage() 27 loginPage = new LoginPage(isMobileDevice())
28 videoUploadPage = new VideoUploadPage() 28 videoUploadPage = new VideoUploadPage()
29 adminPluginPage = new AdminPluginPage() 29 adminPluginPage = new AdminPluginPage()
30 30
@@ -42,7 +42,7 @@ describe('Plugins', () => {
42 42
43 it('Should have checkbox in video edit page', async () => { 43 it('Should have checkbox in video edit page', async () => {
44 await videoUploadPage.navigateTo() 44 await videoUploadPage.navigateTo()
45 await videoUploadPage.uploadVideo() 45 await videoUploadPage.uploadVideo('video.mp4')
46 46
47 await $('span=Super field 4 in main tab').waitForDisplayed() 47 await $('span=Super field 4 in main tab').waitForDisplayed()
48 48
@@ -54,6 +54,8 @@ describe('Plugins', () => {
54 54
55 it('Should check the checkbox and be able to submit the video', async function () { 55 it('Should check the checkbox and be able to submit the video', async function () {
56 const checkbox = await getPluginCheckbox() 56 const checkbox = await getPluginCheckbox()
57
58 await checkbox.waitForClickable()
57 await checkbox.click() 59 await checkbox.click()
58 60
59 await expectSubmitState({ disabled: false }) 61 await expectSubmitState({ disabled: false })
@@ -61,6 +63,8 @@ describe('Plugins', () => {
61 63
62 it('Should uncheck the checkbox and not be able to submit the video', async function () { 64 it('Should uncheck the checkbox and not be able to submit the video', async function () {
63 const checkbox = await getPluginCheckbox() 65 const checkbox = await getPluginCheckbox()
66
67 await checkbox.waitForClickable()
64 await checkbox.click() 68 await checkbox.click()
65 69
66 await expectSubmitState({ disabled: true }) 70 await expectSubmitState({ disabled: true })