Skip to content

Commit

Permalink
Merge pull request #59 from poanetwork/update-e2e-tests
Browse files Browse the repository at this point in the history
(Fix) Update e2e test for Terms of Use page
  • Loading branch information
vbaranov authored Aug 3, 2018
2 parents 94b8249 + 2d65292 commit 6f41064
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Current Master

- [#59](https://github.com/poanetwork/metamask-extension/pull/59): Update e2e test of Terms of Use page
- [#58](https://github.com/poanetwork/metamask-extension/pull/58): Update Terms of Use page style
- [#57](https://github.com/poanetwork/metamask-extension/pull/57): Optimized images for release.
- [#55](https://github.com/poanetwork/metamask-extension/pull/55): Tests fix.
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/metamask.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ describe('Metamask popup page', function () {
delay(300)
})

it('checks if the TOU button is disabled', async () => {
it('checks if the TOU button is enabled', async () => {
const button = await driver.findElement(By.css('button')).isEnabled()
assert.equal(button, false, 'disabled continue button')
assert.equal(button, true, 'enabled continue button')
const element = await driver.findElement(By.linkText('Terms of Service'))
await driver.executeScript('arguments[0].scrollIntoView(true)', element)
await delay(700)
Expand Down

0 comments on commit 6f41064

Please sign in to comment.