screenshots

pull/4837/head
filip mertens 8 months ago
parent 5626c77355
commit 264a433578
  1. 6
      .circleci/config.yml
  2. 5
      apps/remixdesktop/test/tests/app/xtermwin.test.ts

@ -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"

@ -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,

Loading…
Cancel
Save