* Update README with instructions * Prevent test failures from intentionally-thrown errors * Rephrase cypress open instructions in README * Add CI repro documentation
31 lines
859 B
TypeScript
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");
|
|
});
|
|
});
|