Skip to content

Commit

Permalink
Setup the document pages tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroDinis committed Oct 17, 2023
1 parent f40a925 commit a0b6dab
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/components/DocumentPage/DocumentPage.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import DocumentDashboard from "../DocumentDashboard.vue";

describe("Document Page", () => {
beforeEach(() => {
cy.fetchDocument();
cy.setFullMode();
});

it("Can click on an existing annotation", () => {
cy.mount(DocumentDashboard).then(({ wrapper, component }) => {
component.onDocumentResize();
});
});

it("Can click on an entity", () => {
cy.mount(DocumentDashboard).then(({ wrapper, component }) => {
component.onDocumentResize();
});
});

it("Can create a bounding box", () => {
cy.mount(DocumentDashboard).then(({ wrapper, component }) => {
component.onDocumentResize();
});
});

it("Hovering an annotation selects the annotation the annotation list", () => {
cy.mount(DocumentDashboard).then(({ wrapper, component }) => {
component.onDocumentResize();
});
});
});

0 comments on commit a0b6dab

Please sign in to comment.