diff --git a/.circleci/config.yml b/.circleci/config.yml index 8a25768810b3..1c57ed1ec6c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/test/e2e/metamask-ui.spec.js b/test/e2e/metamask-ui.spec.js index fba4326892c3..dd75d44a4cd3 100644 --- a/test/e2e/metamask-ui.spec.js +++ b/test/e2e/metamask-ui.spec.js @@ -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( @@ -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) }) })