Skip to content

Commit

Permalink
Update cypress test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tealefristoe committed Dec 19, 2024
1 parent b94dc46 commit c7bb173
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cypress/e2e/workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ context("Test the overall app", () => {
});

describe("Desktop functionalities", () => {
it("renders with text", () => {
it("renders with tabs", () => {
// Since the cypress tests are not running in CODAP, the plugin will not receive responses to API requests,
// which might cause errors that will display in an overlay, failing the tests.
ae.getApp().should("contain.text", "CODAP Starter Plugin");
ae.getTabButton("3D Graph").should("exist");
ae.getTabButton("About").should("exist");
});
});
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions cypress/support/elements/app-elements.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const AppElements = {
getApp() {
return cy.get(".App");
},
getTabButton(label: string) {
return this.getApp().get("button").contains(label);
}
};

0 comments on commit c7bb173

Please sign in to comment.