Skip to content

Commit 8ec1019

Browse files
committed
Testing is complete but need to fix tests
1 parent 44b2dcc commit 8ec1019

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

repo_refs/rails-app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 91d6d6bbf14b88d1da9b1cbb6934f7c08c08ae89
1+
Subproject commit a99a8fe5362a1541a58059e0c03ae3a5fd392802

repo_refs/react1-app

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit c28ce4914eeaf7d1fb6bb356ad522e56d9fef686
1+
Subproject commit 0618fdad08dc3880a95e68f3e95edb8a93bf7ce0

run_tests.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

test/cypress/e2e/books_flow.cy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe("Books Flow", () => {
1515
cy.contains("button", "Submit").click();
1616

1717
// Visit React2 app (/backend path)
18-
cy.visit("/backend");
18+
cy.visit("/backend/");
1919
cy.contains("Provisional Books");
2020
cy.contains("Test Book Title");
2121

@@ -46,7 +46,7 @@ describe("Books Flow", () => {
4646
cy.contains("button", "Submit").click();
4747

4848
// Visit React2 app and deny the book
49-
cy.visit("/backend");
49+
cy.visit("/backend/");
5050
cy.contains(".book-item", "Book To Deny")
5151
.contains("button", "Deny")
5252
.click();

test/cypress/e2e/data_helpers.cy.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// This test suite is designed to verify the functionality of Cypress data helpers.
2+
// It should be run before other test suites to ensure data helpers are working correctly.
3+
4+
describe("Cypress Data Helpers", () => {
5+
it("should verify the data helper for creating test data", () => {
6+
cy.request("POST", "/api/test_data/setup", {
7+
/* payload */
8+
}).then((response) => {
9+
expect(response.status).to.eq(200);
10+
// Add more assertions based on the expected response
11+
});
12+
});
13+
14+
it("should verify the data helper for resetting test data", () => {
15+
cy.request("POST", "/api/test_data/reset").then((response) => {
16+
expect(response.status).to.eq(200);
17+
// Add more assertions based on the expected response
18+
});
19+
});
20+
21+
// Add more tests for other data helpers as needed
22+
});

0 commit comments

Comments
 (0)