From 89196dccc3ecfb8ab243eea7958dae7cdb884849 Mon Sep 17 00:00:00 2001 From: danjov Date: Thu, 11 Jan 2024 16:14:11 +0100 Subject: [PATCH] Update test expectations --- src/client/cypress/e2e/boreholeList.cy.js | 11 +++++------ .../cypress/e2e/editor/boreholeEditorTable.cy.js | 2 +- src/client/cypress/e2e/filter.cy.js | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/client/cypress/e2e/boreholeList.cy.js b/src/client/cypress/e2e/boreholeList.cy.js index b1e204ee1..23428a7de 100644 --- a/src/client/cypress/e2e/boreholeList.cy.js +++ b/src/client/cypress/e2e/boreholeList.cy.js @@ -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(); @@ -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"); @@ -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(); diff --git a/src/client/cypress/e2e/editor/boreholeEditorTable.cy.js b/src/client/cypress/e2e/editor/boreholeEditorTable.cy.js index 1f53ae29e..15045e1d6 100644 --- a/src/client/cypress/e2e/editor/boreholeEditorTable.cy.js +++ b/src/client/cypress/e2e/editor/boreholeEditorTable.cy.js @@ -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(); diff --git a/src/client/cypress/e2e/filter.cy.js b/src/client/cypress/e2e/filter.cy.js index 2e787dbdf..796b18a06 100644 --- a/src/client/cypress/e2e/filter.cy.js +++ b/src/client/cypress/e2e/filter.cy.js @@ -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"); });