1
0
mirror of synced 2026-01-26 04:01:39 -05:00
Files
airbyte/airbyte-webapp-e2e-tests/cypress/integration/base.spec.ts
Alex Birdsall 1d2a4baf6b Cypress initial cleanup pass (#16189)
* Update README with instructions

* Prevent test failures from intentionally-thrown errors

* Rephrase cypress open instructions in README

* Add CI repro documentation
2022-10-14 09:22:37 -07:00

31 lines
859 B
TypeScript

describe("Error handling view", () => {
it("Shows Version Mismatch page", () => {
cy.intercept("/api/v1/**", {
statusCode: 500,
body: {
error:
"Version mismatch between 0.0.1-ci and 0.0.2-ci.\nPlease upgrade or reset your Airbyte Database, see more at https://docs.airbyte.io/operator-guides/upgrading-airbyte",
},
});
cy.on("uncaught:exception", () => false);
cy.visit("/");
cy.get("div").contains("Version mismatch between 0.0.1-ci and 0.0.2-ci.").should("exist");
});
it("Shows Server Unavailable page", () => {
cy.intercept("/api/v1/**", {
statusCode: 502,
body: "Failed to fetch",
});
cy.on("uncaught:exception", () => false);
cy.visit("/");
cy.get("div").contains("Cannot reach server. The server may still be starting up.").should("exist");
});
});