From 162cc55e5c2a14e356ffa717b805d0bc28adcf99 Mon Sep 17 00:00:00 2001 From: "tatsiana.trayanava" Date: Wed, 23 Feb 2022 19:47:16 +0300 Subject: [PATCH 1/2] e2e - add timeout for enablement area --- .../e2e/tests/regression/workbench/default-scripts-area.e2e.ts | 3 +++ tests/e2e/tests/regression/workbench/scripting-area.e2e.ts | 1 + 2 files changed, 4 insertions(+) diff --git a/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts b/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts index 8fe098785d..f1a6b76d4d 100644 --- a/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts +++ b/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts @@ -56,6 +56,7 @@ test test .meta({ rte: rte.standalone }) ('Verify that user can see saved article in Enablement area when he leaves Workbench page and goes back again', async t => { + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); //Open Working with Hashes section await t.click(workbenchPage.internalLinkWorkingWithHashes); //Check the button from Hash page is visible @@ -109,6 +110,7 @@ test 'Learn More' ] //Open Working with Hashes section and click on the on page counter + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); await t.click(workbenchPage.internalLinkWorkingWithHashes); await t.click(workbenchPage.enablementAreaPagination); //Verify the siblings menu @@ -123,6 +125,7 @@ test .meta({ rte: rte.standalone }) ('Verify that user can see the quick navigation section to navigate between siblings under the scrolling content', async t => { //Open Working with Hashes section + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); await t.click(workbenchPage.internalLinkWorkingWithHashes); //Verify the quick navigation section await t.expect(workbenchPage.enablementAreaPagination.visible).ok('The quick navigation section is displayed'); diff --git a/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts b/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts index f72d5b1ae0..bddf638909 100644 --- a/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts +++ b/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts @@ -75,6 +75,7 @@ test }) ('Verify that user can see an indication (green triangle) of commands from the left side of the line numbers', async t => { //Open Working with Hashes page + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); await t.click(workbenchPage.internalLinkWorkingWithHashes); //Put Create Hash commands into Editing area await t.click(workbenchPage.preselectHashCreate); From 117acb14e14154fd2e76df2b4eb38756a7abec33 Mon Sep 17 00:00:00 2001 From: "tatsiana.trayanava" Date: Wed, 23 Feb 2022 20:00:29 +0300 Subject: [PATCH 2/2] decrease timeout --- .../tests/regression/workbench/default-scripts-area.e2e.ts | 6 +++--- tests/e2e/tests/regression/workbench/scripting-area.e2e.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts b/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts index f1a6b76d4d..b2a4ce05e5 100644 --- a/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts +++ b/tests/e2e/tests/regression/workbench/default-scripts-area.e2e.ts @@ -56,7 +56,7 @@ test test .meta({ rte: rte.standalone }) ('Verify that user can see saved article in Enablement area when he leaves Workbench page and goes back again', async t => { - await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 5000 }); //Open Working with Hashes section await t.click(workbenchPage.internalLinkWorkingWithHashes); //Check the button from Hash page is visible @@ -110,7 +110,7 @@ test 'Learn More' ] //Open Working with Hashes section and click on the on page counter - await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 5000 }); await t.click(workbenchPage.internalLinkWorkingWithHashes); await t.click(workbenchPage.enablementAreaPagination); //Verify the siblings menu @@ -125,7 +125,7 @@ test .meta({ rte: rte.standalone }) ('Verify that user can see the quick navigation section to navigate between siblings under the scrolling content', async t => { //Open Working with Hashes section - await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 5000 }); await t.click(workbenchPage.internalLinkWorkingWithHashes); //Verify the quick navigation section await t.expect(workbenchPage.enablementAreaPagination.visible).ok('The quick navigation section is displayed'); diff --git a/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts b/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts index bddf638909..9a9cdc51d6 100644 --- a/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts +++ b/tests/e2e/tests/regression/workbench/scripting-area.e2e.ts @@ -75,7 +75,7 @@ test }) ('Verify that user can see an indication (green triangle) of commands from the left side of the line numbers', async t => { //Open Working with Hashes page - await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 60000 }); + await t.expect(workbenchPage.internalLinkWorkingWithHashes.visible).ok('The working with hachs link is visible', { timeout: 5000 }); await t.click(workbenchPage.internalLinkWorkingWithHashes); //Put Create Hash commands into Editing area await t.click(workbenchPage.preselectHashCreate);