diff --git a/test/e2e/files.test.js b/test/e2e/files.test.js index 9dc37a841..9dd422221 100644 --- a/test/e2e/files.test.js +++ b/test/e2e/files.test.js @@ -27,7 +27,7 @@ describe('Files screen', () => { const [fileChooser] = await Promise.all([ page.waitForFileChooser(), - page.click('a[id="add-file"]') // menu button that triggers file selection + page.click('button[id="add-file"]') // menu button that triggers file selection ]) // select a single static text file via fileChooser diff --git a/test/e2e/setup/test-environment.js b/test/e2e/setup/test-environment.js index 7d250234f..74c29159c 100644 --- a/test/e2e/setup/test-environment.js +++ b/test/e2e/setup/test-environment.js @@ -14,6 +14,7 @@ class WebuiTestEnvironment extends PuppeteerEnvironment { const { ipfs, webuiUrl, page } = this.global // point WebUI at the HTTP API URL + await page.setViewport({ width: 1366, height: 768 }) await page.goto(webuiUrl) const { apiHost, apiPort } = ipfs const apiMultiaddr = `/ip4/${apiHost}/tcp/${apiPort}`