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/support/commands.js b/test/e2e/support/commands.js index afccc8293..3de004deb 100644 --- a/test/e2e/support/commands.js +++ b/test/e2e/support/commands.js @@ -137,8 +137,7 @@ Cypress.Commands.add("clearupDeployments", () => { Cypress.Commands.add("loadProjectConfigFile", (projectName) => { const projectConfigPath = `content-workspace/${projectName}/.posit/publish/static-*.toml`; // Do not fail on non-zero exit this time, we can provide a better error - return cy - .exec(`cat ${projectConfigPath}`, { failOnNonZeroExit: false }) + return cy.exec(`cat ${projectConfigPath}`, { failOnNonZeroExit: false }) .then((result) => { if (result.code === 0 && result.stdout) { return toml.parse(result.stdout); 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"); + }); }); });