From 1d6b05405d13a308b5e660af802d6a2dd136a7cc Mon Sep 17 00:00:00 2001 From: "@s.roertgen" Date: Thu, 31 Aug 2023 13:39:29 +0200 Subject: [PATCH] =?UTF-8?q?lets=20try=20headed=20mode=20=F0=9F=A4=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 2 +- cypress/e2e/searchAndFilter.cy.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 32da825..dfd8516 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,7 +52,6 @@ jobs: strategy: matrix: node-version: [18.x] - container: cypress/browsers:node18.12.0-chrome106-ff106 steps: - name: Checkout uses: actions/checkout@v3 @@ -67,6 +66,7 @@ jobs: uses: cypress-io/github-action@v5 with: browser: chrome + headed: true start: npm run develop -- -p 8000 wait-on: http://localhost:8000/index.de.html config: baseUrl=http://localhost:8000 diff --git a/cypress/e2e/searchAndFilter.cy.js b/cypress/e2e/searchAndFilter.cy.js index 9dbd406..074b597 100644 --- a/cypress/e2e/searchAndFilter.cy.js +++ b/cypress/e2e/searchAndFilter.cy.js @@ -23,8 +23,7 @@ describe("search and filter", () => { cy.visit("/w3id.org/index.de.html") cy.contains("en").click() - cy.wait(4000) // eslint-disable-line - cy.get("span", { timeout: 10000 }).contains("Konzept 2").should("not.exist") + cy.get("span").contains("Konzept 2").should("not.exist") cy.get("span").contains("Concept 1").should("exist") cy.findByRole("textbox").type("Concept 2") cy.get("span").contains("Concept 1").should("exist")