Skip to content

Commit

Permalink
Update test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
danjov committed Jan 11, 2024
1 parent b8e4caa commit 89196dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/client/cypress/e2e/boreholeList.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,17 @@ describe("Borehole list tests", () => {
cy.wait("@borehole");

// contains names
cy.contains("td", "Aaron Bartell");
cy.contains("td", "Aaron Grimes");
cy.contains("td", "Aaron Konopelski");
cy.contains("td", "Aaron Metz");
cy.contains("td", "Abagail Hirthe");
cy.contains("td", "Abagail Brown");

// contains date (restriction date)
cy.contains("td", "10.11.2022");

// contains total depth
cy.contains("td", "1'957.2661798248375");
cy.contains("td", "1'662.640205427371");
cy.contains("td", "1'662.640205427371");
cy.contains("td", "1'663.9287349134352");

// sort by name descending
cy.contains("div", "Original name").click();
Expand Down Expand Up @@ -100,7 +99,7 @@ describe("Borehole list tests", () => {
}
});

cy.get("tbody").children().eq(0).contains("td", "01.01.2022");
cy.get("tbody").children().eq(0).contains("td", "31.12.2021");
cy.get("tbody").children().eq(1).contains("td", "31.12.2021");
cy.get("tbody").children().eq(2).contains("td", "31.12.2021");

Expand Down Expand Up @@ -147,7 +146,7 @@ describe("Borehole list tests", () => {

cy.get("tbody").children().eq(0).contains("td", "Aaliyah Casper");
cy.get("tbody").children().eq(1).contains("td", "Aaliyah Lynch");
cy.get("tbody").children().eq(2).contains("td", "Aaliyah Pfeffer");
cy.get("tbody").children().eq(2).contains("td", "Aaron Cruickshank");

// sort by borehole type
cy.contains("th", "Borehole type").click();
Expand Down
2 changes: 1 addition & 1 deletion src/client/cypress/e2e/editor/boreholeEditorTable.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("Borehole editor table tests", () => {

cy.get("tbody").children().eq(0).contains("td", "Aaliyah Casper");
cy.get("tbody").children().eq(1).contains("td", "Aaliyah Lynch");
cy.get("tbody").children().eq(2).contains("td", "Aaliyah Pfeffer");
cy.get("tbody").children().eq(2).contains("td", "Aaron Cruickshank");

// navigate to page 2
cy.get("a").should("have.class", "item").contains("2").click();
Expand Down
2 changes: 1 addition & 1 deletion src/client/cypress/e2e/filter.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ describe("Search filter tests", () => {
// check content of table
cy.get('[data-cy="borehole-table"] tbody')
.children()
.should("have.length", 12);
.should("have.length", 22);

cy.contains("td", "09.11.2021");
});
Expand Down

0 comments on commit 89196dc

Please sign in to comment.