Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Fix: default show fc e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Apr 16, 2020
1 parent 96b5506 commit 1c47538
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,15 @@ jobs:
- checkout
- attach_workspace:
at: .
- run:
name: Install latest Chrome
command: |
curl --silent --show-error --location --fail --retry 3 --output /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& (sudo dpkg -i /tmp/google-chrome-stable_current_amd64.deb || sudo apt-get -fy install) \
&& rm -rf /tmp/google-chrome-stable_current_amd64.deb \
&& sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' \
"/opt/google/chrome/google-chrome" \
&& google-chrome --version
- run:
name: Move test build to dist
command: mv ./dist-test ./dist
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/metamask-ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ describe('MetaMask', function () {

await driver.clickElement(By.css('.wallet-balance'))

await driver.clickElement(By.css('.token-list-item'))
await driver.clickElement(By.css('.token-list-item:nth-of-type(2)'))
await driver.delay(1000)

const tokenBalanceAmount = await driver.findElements(
Expand Down Expand Up @@ -1759,11 +1759,12 @@ describe('MetaMask', function () {
const confirmHideModal = await driver.findElement(By.css('span .modal'))

const byHideTokenConfirmationButton = By.css(
'.hide-token-confirmation__button'
'.hide-token-confirmation__button:nth-of-type(2)'
)
await driver.clickElement(byHideTokenConfirmationButton)

await driver.wait(until.stalenessOf(confirmHideModal))
await driver.delay(regularDelayMs)
})
})

Expand Down

0 comments on commit 1c47538

Please sign in to comment.