Skip to content

Commit 2380bba

Browse files
authored
Try to fix blinking tests (#10687)
1 parent f773159 commit 2380bba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

screenshots/file.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ frameworks.forEach(framework => {
6565
const question = (window as any).survey.getQuestionByName("file_question");
6666
question.value = [].concat(question.value).sort((a: any, b: any) => order.indexOf(a.name) - order.indexOf(b.name));
6767
});
68+
await page.waitForTimeout(1000);
6869
await compareScreenshot(page, questionRoot, "file-question-multiple.png");
6970

7071
await page.hover(".sd-file .sd-file__preview-item");
@@ -135,6 +136,7 @@ frameworks.forEach(framework => {
135136
const question = (window as any).survey.getQuestionByName("file_question");
136137
question.value = [].concat(question.value).sort((a: any, b: any) => order.indexOf(a.name) - order.indexOf(b.name));
137138
});
139+
await page.waitForTimeout(1000);
138140
await compareScreenshot(page, questionRoot, "file-question-multiple-small-images.png");
139141

140142
await page.evaluate(() => {

0 commit comments

Comments
 (0)