Skip to content

Commit

Permalink
test: e2e tests aware of a11y changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Jun 2, 2020
1 parent cb92ffb commit 22b6b87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/files.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/e2e/setup/test-environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 22b6b87

Please sign in to comment.