diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b8714cae6..61c6ef2731 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -266,11 +266,7 @@ jobs: - run: name: "Run selenium" command: | - cd apps/remixdesktop/ - nvm use 20.0.0 - node -v - npm install --global yarn - yarn run selenium-win + cd apps/remixdesktop/ && nvm use 20.0.0 && node -v && npm install --global yarn && yarn run selenium-win background: true - run: name: "Run tests" diff --git a/apps/remixdesktop/test/tests/app/xtermwin.test.ts b/apps/remixdesktop/test/tests/app/xtermwin.test.ts index 374debe930..55967dc8bc 100644 --- a/apps/remixdesktop/test/tests/app/xtermwin.test.ts +++ b/apps/remixdesktop/test/tests/app/xtermwin.test.ts @@ -68,10 +68,15 @@ const tests = { }, 'list files': function (browser: NightwatchBrowser) { browser + .pause(3000) + .waitForElementVisible("[data-active='1'][data-type='remixUIXT']", 10000) + .click("[data-active='1'][data-type='remixUIXT']") + .saveScreenshot('./reports/screenshots/list-files.png') .perform(function () { const actions = this.actions({async: true}) return actions.sendKeys('ls').sendKeys(this.Keys.ENTER) }) + .saveScreenshot('./reports/screenshots/list-files-after.png') .waitForElementVisible({ selector: "//*[@data-type='remixUIXT' and @data-active='1']", timeout: 10000,