From 4e3f6009bfc3a2a476ad8c6fc51244602f4e0cd3 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 22 Jun 2023 12:18:08 +0100 Subject: [PATCH] fix e2e selectors --- apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts b/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts index ab10e5216a..0e61c86cec 100644 --- a/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts +++ b/apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts @@ -34,7 +34,7 @@ module.exports = { 'run analysis and filter results': function (browser: NightwatchBrowser) { browser .clickLaunchIcon('filePanel') - .click('*[data-id="treeViewLitreeViewItemcontracts"]') + .click('*[data-id="treeViewLitreeViewItemcontracts"]') // .click('*[data-id="treeViewLitreeViewItemcontracts/2_Owner.sol"]') .clickLaunchIcon('solidity') .click('*[id="compileBtn"]') @@ -44,18 +44,19 @@ module.exports = { .waitForElementPresent('#staticanalysisresult .warning', 5000) // Check warning count .click('*[data-rb-event-key="basic"]') - .pause(3000) - .assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1') + // .pause(3000) + // .assert.containsText('*[data-id="RemixStaticAnalysisErrorCount"]', '1') + .assert.containsText('span#ssaRemixtab > *[data-id="RemixStaticAnalysisErrorCount"]', '1') .verify.elementPresent('input[name="showLibWarnings"]') .verify.not.elementPresent('input[name="showLibWarnings"]:checked') .verify.elementPresent('label[id="headingshowLibWarnings"]') .click('label[id="headingshowLibWarnings"]') .pause(1000) .click('*[data-rb-event-key="basic"]') - .assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '382') + .assert.containsText('span#ssaRemixtab > *[data-id="RemixStaticAnalysisErrorCount', '382') .click('label[id="headingshowLibWarnings"]') .pause(1000) - .assert.containsText('*[data-id="StaticAnalysisErrorCount"]', '1') + .assert.containsText('span#ssaRemixtab > *[data-id="RemixStaticAnalysisErrorCount', '1') .end() } }