Skip to content

Commit 75dd29b

Browse files
Copilotrenemadsen
andcommitted
Add consistent 1500ms wait after goToVisualEditor for all data-reading tests
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent 15cc8ab commit 75dd29b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

eform-client/e2e/Tests/eform-visual-editor/eform-visual-editor.create-eform.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ describe('Visual editor page', function () {
6969
'name in table eforms not valid; template not create'
7070
).eq(checklistWithoutFields.translations[0].name);
7171
await eform.goToVisualEditor();
72+
await browser.pause(1500);
7273
const visualTemplate = new MainCheckListRowObj();
7374
await visualTemplate.getAllFields();
7475
expect(
@@ -113,6 +114,7 @@ describe('Visual editor page', function () {
113114
checklist.translations[0].name
114115
);
115116
await eform.goToVisualEditor();
117+
await browser.pause(1500);
116118
const mainChecklist = new MainCheckListRowObj();
117119
await mainChecklist.getAllFields();
118120
expect(
@@ -170,7 +172,7 @@ describe('Visual editor page', function () {
170172
checklistWithPdfFile.translations[0].name
171173
);
172174
await eform.goToVisualEditor();
173-
await browser.pause(500);
175+
await browser.pause(1500);
174176
const mainChecklist = new MainCheckListRowObj();
175177
await mainChecklist.getAllFields();
176178
expect(
@@ -227,6 +229,7 @@ describe('Visual editor page', function () {
227229
checklist.translations[0].name
228230
);
229231
await eform.goToVisualEditor();
232+
await browser.pause(1500);
230233
const mainChecklist = new MainCheckListRowObj();
231234
await mainChecklist.getAllFields();
232235
expect(
@@ -287,7 +290,7 @@ describe('Visual editor page', function () {
287290
checklistWithPdfFile.translations[0].name
288291
);
289292
await eform.goToVisualEditor();
290-
await browser.pause(1200);
293+
await browser.pause(1500);
291294
const mainChecklist = new MainCheckListRowObj();
292295
await mainChecklist.getAllFields();
293296
expect(
@@ -783,6 +786,7 @@ describe('Visual editor page', function () {
783786
const eform = await myEformsPage.getLastMyEformsRowObj();
784787

785788
await eform.goToVisualEditor();
789+
await browser.pause(1500);
786790
mainChecklist = new MainCheckListRowObj();
787791
await mainChecklist.getAllFields();
788792
expect(
@@ -884,6 +888,7 @@ describe('Visual editor page', function () {
884888
const eform = await myEformsPage.getLastMyEformsRowObj();
885889

886890
await eform.goToVisualEditor();
891+
await browser.pause(1500);
887892
mainChecklist = new MainCheckListRowObj();
888893
await mainChecklist.getAllFields();
889894
expect(

0 commit comments

Comments
 (0)