Skip to content

Commit ba045d2

Browse files
committed
test: e2e: client: stabilize
1 parent f7ac840 commit ba045d2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎test-e2e/client/view.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const waitForPanel = (page) => page
1111
.waitFor();
1212

1313
test('F3 on a .png file opens the image viewer', async ({page}) => {
14-
await page.goto('/');
14+
await page.goto('/', {waitUntil: 'networkidle'});
1515
await waitForPanel(page);
1616
await getFile(page, 'view.png').click();
1717
await page.keyboard.press('F3');
@@ -21,7 +21,7 @@ test('F3 on a .png file opens the image viewer', async ({page}) => {
2121
});
2222

2323
test('F3 on a .png file does not open the text viewer', async ({page}) => {
24-
await page.goto('/');
24+
await page.goto('/', {waitUntil: 'networkidle'});
2525
await waitForPanel(page);
2626
await getFile(page, 'view.png').click();
2727
await page.keyboard.press('F3');
@@ -33,7 +33,7 @@ test('F3 on a .png file does not open the text viewer', async ({page}) => {
3333
});
3434

3535
test('double-click on a .png file opens the image viewer', async ({page}) => {
36-
await page.goto('/');
36+
await page.goto('/', {waitUntil: 'networkidle'});
3737
await waitForPanel(page);
3838
await getFile(page, 'view.png').dblclick();
3939

@@ -42,7 +42,7 @@ test('double-click on a .png file opens the image viewer', async ({page}) => {
4242
});
4343

4444
test('double-click on a .png file does not open the text viewer', async ({page}) => {
45-
await page.goto('/');
45+
await page.goto('/', {waitUntil: 'networkidle'});
4646
await waitForPanel(page);
4747
await getFile(page, 'view.png').dblclick();
4848

@@ -53,7 +53,7 @@ test('double-click on a .png file does not open the text viewer', async ({page})
5353
});
5454

5555
test('F3 on a .txt file opens the text viewer', async ({page}) => {
56-
await page.goto('/');
56+
await page.goto('/', {waitUntil: 'networkidle'});
5757
await waitForPanel(page);
5858
await getFile(page, 'copy.txt').click();
5959
await page.keyboard.press('F3');
@@ -63,7 +63,7 @@ test('F3 on a .txt file opens the text viewer', async ({page}) => {
6363
});
6464

6565
test('F3 on a .txt file shows file content', async ({page}) => {
66-
await page.goto('/');
66+
await page.goto('/', {waitUntil: 'networkidle'});
6767
await waitForPanel(page);
6868
await getFile(page, 'copy.txt').click();
6969
await page.keyboard.press('F3');

0 commit comments

Comments
 (0)