Skip to content

Commit

Permalink
Update dependencies and get cypress test working.
Browse files Browse the repository at this point in the history
  • Loading branch information
tealefristoe committed Sep 16, 2024
1 parent 2c91858 commit 75b99b5
Show file tree
Hide file tree
Showing 11 changed files with 43,920 additions and 13,005 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
fail-fast: false
matrix:
# run 3 copies of the current job in parallel
containers: [1, 2, 3]
containers: [1]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: cypress-io/github-action@v6
with:
start: npm start
wait-on: 'http://localhost:8080'
wait-on: 'http://localhost:3000'
# only record the results to dashboard.cypress.io if CYPRESS_RECORD_KEY is set
record: ${{ !!secrets.CYPRESS_RECORD_KEY }}
# only do parallel if we have a record key
Expand Down
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default defineConfig({
setupNodeEvents(on, config) {
return require("@cypress/code-coverage/task")(on, config);
},
baseUrl: 'http://localhost:8080',
baseUrl: 'http://localhost:3000',
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
},
})
2 changes: 1 addition & 1 deletion cypress/e2e/workspace.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ context("Test the overall app", () => {

describe("Desktop functionalities", () => {
it("renders with text", () => {
ae.getApp().should("have.text", "Hello World");
ae.getWelcome().invoke("text").should("include", "Welcome to StoryQ!");
});
});
});
5 changes: 4 additions & 1 deletion 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");
return cy.get(".storyq");
},
getWelcome() {
return cy.get(".storyq .dx-tabpanel-container .sq-welcome")
}
};
Loading

0 comments on commit 75b99b5

Please sign in to comment.