diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 0c099a59d..7c3733db8 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -25,5 +25,5 @@ jobs: - name: Extract dist run: unzip dist/*-linux-amd64.vsix -d dist/ - - run: just test/e2e/container-images + - run: just test/e2e/build-images - run: just test/e2e/cypress-run diff --git a/test/e2e/justfile b/test/e2e/justfile index 2f917a642..11500b64b 100644 --- a/test/e2e/justfile +++ b/test/e2e/justfile @@ -20,7 +20,7 @@ stop: lint: npm run lint -container-images: +build-images: #!/usr/bin/env bash set -euo pipefail diff --git a/test/e2e/tests/credentials.cy.js b/test/e2e/tests/credentials.cy.js index cf4b3e397..7bd4a50fa 100644 --- a/test/e2e/tests/credentials.cy.js +++ b/test/e2e/tests/credentials.cy.js @@ -47,7 +47,7 @@ describe("Credentials Section", () => { cy.findInPublisherWebview( '[data-automation="admin-code-server-list"]', - ).then(($credRecord) => { + ).should(($credRecord) => { expect($credRecord.find(".tree-item-title").text()).to.equal( "admin-code-server", ); diff --git a/test/e2e/tests/deployments.cy.js b/test/e2e/tests/deployments.cy.js index 6ee5e73da..f31d7b507 100644 --- a/test/e2e/tests/deployments.cy.js +++ b/test/e2e/tests/deployments.cy.js @@ -56,13 +56,6 @@ describe("Deployments Section", () => { .should("be.visible") .click(); - cy.loadProjectConfigFile("static").then((config) => { - expect(config.title).to.equal("static"); - expect(config.type).to.equal("html"); - expect(config.entrypoint).to.equal("index.html"); - expect(config.files[0]).to.equal("/index.html"); - }); - cy.publisherWebview() .findByTestId("deploy-button") .should("be.visible") @@ -77,5 +70,12 @@ describe("Deployments Section", () => { .should("not.exist"); cy.findByText("Deployment was successful").should("be.visible"); + + cy.loadProjectConfigFile("static").then((config) => { + expect(config.title).to.equal("static"); + expect(config.type).to.equal("html"); + expect(config.entrypoint).to.equal("index.html"); + expect(config.files[0]).to.equal("/index.html"); + }); }); });