Skip to content

Commit da12ca0

Browse files
committed
test: add cy test for rendering errors
1 parent 369801b commit da12ca0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/e2e/specs/CheckErrors.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
describe("Render Errors", () => {
2+
beforeEach(() => {
3+
cy.visit("/");
4+
});
5+
6+
it("does not render an error", () => {
7+
cy.contains("More examples").click();
8+
cy.get("[class*='Preview_error']").should("not.exist");
9+
});
10+
});

0 commit comments

Comments
 (0)