pull/5652/head
bunsenstraat 1 month ago
parent c622d7917e
commit 459c906a5c
  1. 10
      apps/remix-ide-e2e/src/tests/script-runner.test.ts

@ -14,7 +14,6 @@ const tests = {
.click('*[plugin="pluginManager"]') .click('*[plugin="pluginManager"]')
.waitForElementVisible('*[data-id="pluginManagerComponentPluginManager"]') .waitForElementVisible('*[data-id="pluginManagerComponentPluginManager"]')
.click('*[data-id="pluginManagerComponentPluginManager"]') .click('*[data-id="pluginManagerComponentPluginManager"]')
.pause()
.scrollAndClick('*[data-id="pluginManagerComponentActivateButtonUIScriptRunner"]') .scrollAndClick('*[data-id="pluginManagerComponentActivateButtonUIScriptRunner"]')
}, },
'Should load default script runner': function (browser: NightwatchBrowser) { 'Should load default script runner': function (browser: NightwatchBrowser) {
@ -68,11 +67,11 @@ const tests = {
.modalFooterOKClick('TemplatesSelection') .modalFooterOKClick('TemplatesSelection')
.waitForElementVisible({ .waitForElementVisible({
locateStrategy: 'xpath', locateStrategy: 'xpath',
selector: "//li[@data-id='UIScriptRunner' and @role='tab'" selector: "//li[@data-id='UIScriptRunner' and @role='tab']"
}) })
.click({ .click({
locateStrategy: 'xpath', locateStrategy: 'xpath',
selector: "//li[@data-id='UIScriptRunner' and @role='tab'" selector: "//li[@data-id='UIScriptRunner' and @role='tab']"
}) })
.waitForElementVisible('[data-id="sr-loaded-default"]') .waitForElementVisible('[data-id="sr-loaded-default"]')
.waitForElementVisible('[data-id="dependency-ethers-^5"]') .waitForElementVisible('[data-id="dependency-ethers-^5"]')
@ -80,15 +79,14 @@ const tests = {
}, },
'switch to default workspace that should be on ethers6': function (browser: NightwatchBrowser) { 'switch to default workspace that should be on ethers6': function (browser: NightwatchBrowser) {
browser browser
.clickLaunchIcon('filePanel')
.switchWorkspace('default_workspace') .switchWorkspace('default_workspace')
.waitForElementVisible({ .waitForElementVisible({
locateStrategy: 'xpath', locateStrategy: 'xpath',
selector: "//li[@data-id='UIScriptRunner' and @role='tab'" selector: "//li[@data-id='UIScriptRunner' and @role='tab']"
}) })
.click({ .click({
locateStrategy: 'xpath', locateStrategy: 'xpath',
selector: "//li[@data-id='UIScriptRunner' and @role='tab'" selector: "//li[@data-id='UIScriptRunner' and @role='tab']"
}) })
.waitForElementVisible('[data-id="sr-loaded-ethers6"]') .waitForElementVisible('[data-id="sr-loaded-ethers6"]')
.waitForElementPresent('[data-id="dependency-ethers-^6"]') .waitForElementPresent('[data-id="dependency-ethers-^6"]')

Loading…
Cancel
Save