more checks

partest
bunsenstraat 3 weeks ago
parent 58fa391cd6
commit 81b401d83f
  1. 8
      apps/remix-ide-e2e/src/tests/metamask.test.ts

@ -116,6 +116,8 @@ const tests = {
.pause(2000) .pause(2000)
//.click('[data-testid="page-container-footer-next"]') // approve the tx //.click('[data-testid="page-container-footer-next"]') // approve the tx
.switchBrowserTab(0) // back to remix .switchBrowserTab(0) // back to remix
.waitForElementContainsText('*[data-id="terminalJournal"]', 'transact to Helloworld', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'fallback', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000) .waitForElementContainsText('*[data-id="terminalJournal"]', 'view on etherscan', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000) .waitForElementContainsText('*[data-id="terminalJournal"]', 'from: 0x76a...2708f', 60000)
.saveScreenshot('./reports/screenshots/metamask_tr3.png') .saveScreenshot('./reports/screenshots/metamask_tr3.png')
@ -168,14 +170,14 @@ const tests = {
} }
} }
const branch = process.env.CIRCLE_BRANCH; const branch = process.env.CIRCLE_BRANCH
const isMasterBranch = (branch === 'master' || branch === 'remix_beta'); const runTestsConditions = (branch === 'master' || branch === 'remix_live' || branch.includes('remix_beta') || branch.includes('metamask'))
if (!checkBrowserIsChrome(browser)) { if (!checkBrowserIsChrome(browser)) {
module.exports = {} module.exports = {}
} else { } else {
module.exports = { module.exports = {
...tests//(branch ? (isMasterBranch ? tests : {}) : tests), ...(branch ? (runTestsConditions ? tests : {}) : tests)
}; };
} }

Loading…
Cancel
Save