From 825d48b7af476591444b3826c9caea38b253e081 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Sat, 16 Mar 2024 10:51:38 +0100 Subject: [PATCH] screenshots --- .circleci/config.yml | 6 +----- apps/remixdesktop/test/tests/app/xtermwin.test.ts | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) 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,