Remove per-spec uncaught-exception swallowing in Cypress E2E tests
Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
@@ -8,8 +8,6 @@ import { loginWithFixtures } from "../support/intercept";
|
|||||||
describe("Discover Map Page", () => {
|
describe("Discover Map Page", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
loginWithFixtures();
|
loginWithFixtures();
|
||||||
// Suppress Cytoscape rendering errors in headless mode
|
|
||||||
cy.on("uncaught:exception", () => false);
|
|
||||||
cy.visit("/discover/log/297310264/map");
|
cy.visit("/discover/log/297310264/map");
|
||||||
cy.wait("@getDiscover");
|
cy.wait("@getDiscover");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { loginWithFixtures } from "../support/intercept";
|
|||||||
describe("Discover Tab Navigation", () => {
|
describe("Discover Tab Navigation", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
loginWithFixtures();
|
loginWithFixtures();
|
||||||
// Suppress Cytoscape rendering errors in headless mode
|
|
||||||
cy.on("uncaught:exception", () => false);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("navigating from Map page", () => {
|
describe("navigating from Map page", () => {
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ import { loginWithFixtures } from "../support/intercept";
|
|||||||
describe("Files to Discover Entry Flow", () => {
|
describe("Files to Discover Entry Flow", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
loginWithFixtures();
|
loginWithFixtures();
|
||||||
// Suppress Cytoscape rendering errors in headless mode
|
|
||||||
cy.on("uncaught:exception", () => false);
|
|
||||||
cy.visit("/files");
|
cy.visit("/files");
|
||||||
cy.wait("@getFiles");
|
cy.wait("@getFiles");
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,11 +6,6 @@
|
|||||||
import { loginWithFixtures } from "../support/intercept";
|
import { loginWithFixtures } from "../support/intercept";
|
||||||
|
|
||||||
describe("404 Not Found Page", () => {
|
describe("404 Not Found Page", () => {
|
||||||
beforeEach(() => {
|
|
||||||
// Suppress Navbar error on 404 page (route.matched[1] is null)
|
|
||||||
cy.on("uncaught:exception", () => false);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("displays 404 page for non-existent route", () => {
|
it("displays 404 page for non-existent route", () => {
|
||||||
loginWithFixtures();
|
loginWithFixtures();
|
||||||
cy.visit("/this-page-does-not-exist");
|
cy.visit("/this-page-does-not-exist");
|
||||||
|
|||||||
Reference in New Issue
Block a user