add more e2e

pull/4720/head
aniket-engg 7 months ago committed by Aniket
parent 7e023cb43c
commit d084788bd2
  1. 12
      apps/remix-ide-e2e/src/tests/pinned_contracts.test.ts

@ -30,6 +30,18 @@ module.exports = {
.assert.not.elementPresent('*[data-id="NoPinnedInstanceText"]') .assert.not.elementPresent('*[data-id="NoPinnedInstanceText"]')
.assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]') .assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]')
}, },
'Test pinned contract loading on environment change #group1': function (browser: NightwatchBrowser) {
browser
.switchEnvironment('vm-shanghai')
.assert.elementPresent('*[data-id="pinnedContracts"]')
.assert.textContains('*[data-id="pinnedContractsSublabel"]', '(network: vm-shanghai)')
.assert.elementPresent('*[data-id="NoPinnedInstanceText"]')
.assert.textContains('*[data-id="NoPinnedInstanceText"]', 'No pinned contracts found for selected workspace & network')
.switchEnvironment('vm-cancun')
.assert.textContains('*[data-id="pinnedContractsSublabel"]', '(network: vm-cancun)')
.assert.not.elementPresent('*[data-id="NoPinnedInstanceText"]')
.assert.elementPresent('*[data-id="pinnedInstance0xd9145CCE52D386f254917e481eB44e9943F39138"]')
},
'Interact with pinned contract #group1': function (browser: NightwatchBrowser) { 'Interact with pinned contract #group1': function (browser: NightwatchBrowser) {
browser browser
.click('*[data-id="universalDappUiTitleExpander0"]') .click('*[data-id="universalDappUiTitleExpander0"]')

Loading…
Cancel
Save