fix e2e selectors

pull/3838/head
Joseph Izang 1 year ago
parent 48f12e9f78
commit 8403556227
  1. 11
      apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts

@ -34,7 +34,7 @@ module.exports = {
'run analysis and filter results': function (browser: NightwatchBrowser) { 'run analysis and filter results': function (browser: NightwatchBrowser) {
browser browser
.clickLaunchIcon('filePanel') .clickLaunchIcon('filePanel')
.click('*[data-id="treeViewLitreeViewItemcontracts"]') .click('*[data-id="treeViewLitreeViewItemcontracts"]') //
.click('*[data-id="treeViewLitreeViewItemcontracts/2_Owner.sol"]') .click('*[data-id="treeViewLitreeViewItemcontracts/2_Owner.sol"]')
.clickLaunchIcon('solidity') .clickLaunchIcon('solidity')
.click('*[id="compileBtn"]') .click('*[id="compileBtn"]')
@ -44,18 +44,19 @@ module.exports = {
.waitForElementPresent('#staticanalysisresult .warning', 5000) .waitForElementPresent('#staticanalysisresult .warning', 5000)
// Check warning count // Check warning count
.click('*[data-rb-event-key="basic"]') .click('*[data-rb-event-key="basic"]')
.pause(3000) // .pause(3000)
.assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1') // .assert.containsText('*[data-id="RemixStaticAnalysisErrorCount"]', '1')
.assert.containsText('span#ssaRemixtab > *[data-id="RemixStaticAnalysisErrorCount"]', '1')
.verify.elementPresent('input[name="showLibWarnings"]') .verify.elementPresent('input[name="showLibWarnings"]')
.verify.not.elementPresent('input[name="showLibWarnings"]:checked') .verify.not.elementPresent('input[name="showLibWarnings"]:checked')
.verify.elementPresent('label[id="headingshowLibWarnings"]') .verify.elementPresent('label[id="headingshowLibWarnings"]')
.click('label[id="headingshowLibWarnings"]') .click('label[id="headingshowLibWarnings"]')
.pause(1000) .pause(1000)
.click('*[data-rb-event-key="basic"]') .click('*[data-rb-event-key="basic"]')
.assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '382') .assert.containsText('span#ssaRemixtab > *[data-id="RemixStaticAnalysisErrorCount', '382')
.click('label[id="headingshowLibWarnings"]') .click('label[id="headingshowLibWarnings"]')
.pause(1000) .pause(1000)
.assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1') .assert.containsText('span#ssaRemixtab > *[data-id="RemixStaticAnalysisErrorCount', '1')
.end() .end()
} }
} }

Loading…
Cancel
Save