Skip to content

Commit a81e837

Browse files
committed
test: e2e: view-image -> view
1 parent 0d5e296 commit a81e837

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎playwright.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineConfig({
99
headless: true,
1010
},
1111
webServer: {
12-
command: 'node bin/cloudcmd.js --port 3002 --root test-e2e/fixture --no-open',
12+
command: 'node bin/cloudcmd.js --no-auth --port 3002 --root test-e2e/fixture --no-open',
1313
url: 'http://localhost:3002',
1414
reuseExistingServer: false,
1515
timeout: 15_000,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {test, expect} from '@playwright/test';
22

33
const getModal = (page) => page.locator('[data-name="modal-main"]');
4-
const getFile = (page, name) => page.locator(`[data-name="js-file-${btoa(name)}"]`);
4+
const getFile = (page, name) => page.locator(`[data-name="js-file-${btoa(name)}"]`).first();
55

66
test('F3 on a .png file opens the image viewer', async ({page}) => {
77
await page.goto('/');

0 commit comments

Comments
 (0)