From 4951ca3c6d2657744af28b0947639eef9448db9d Mon Sep 17 00:00:00 2001 From: MiraGeowerkstatt Date: Wed, 14 Aug 2024 10:25:43 +0200 Subject: [PATCH] Fix test navigation --- src/api-legacy/v1/borehole/producer.py | 2 +- src/client/cypress/e2e/editor/boreholeTable.cy.js | 4 ++++ src/client/src/pages/overview/boreholeTable/boreholeTable.tsx | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/api-legacy/v1/borehole/producer.py b/src/api-legacy/v1/borehole/producer.py index daf9f6583..9dfb4db5f 100644 --- a/src/api-legacy/v1/borehole/producer.py +++ b/src/api-legacy/v1/borehole/producer.py @@ -205,7 +205,7 @@ async def execute(self, request): 'setting' ]['eboreholetable']['orderby'] else : - request['orderby'] = 'ASC' + request['orderby'] = 'original_name' if 'direction' in request and ( request['direction'] is not None diff --git a/src/client/cypress/e2e/editor/boreholeTable.cy.js b/src/client/cypress/e2e/editor/boreholeTable.cy.js index 66c7c206d..dba160fef 100644 --- a/src/client/cypress/e2e/editor/boreholeTable.cy.js +++ b/src/client/cypress/e2e/editor/boreholeTable.cy.js @@ -1,5 +1,6 @@ import { loginAsAdmin, loginAsEditor, returnToOverview } from "../helpers/testHelpers.js"; import { + clickOnRowWithText, showTableAndWaitForData, verifiyPaginationText, verifyRowContains, @@ -72,6 +73,9 @@ describe("Borehole editor table tests", () => { verifiyPaginationText("401 - 500 of 1626"); verifyRowContains("Nichole VonRueden", 0); + // navigate to detail + clickOnRowWithText("Nichole VonRueden"); + // return to list returnToOverview(); diff --git a/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx b/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx index 3e30bdbb7..fae2cbd11 100644 --- a/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx +++ b/src/client/src/pages/overview/boreholeTable/boreholeTable.tsx @@ -130,7 +130,6 @@ export const BoreholeTable: FC = ({ }; const getRowClassName = (params: GridRowParams) => { - console.log(params); let css = ""; if (params.row.lock) { css = "locked-row ";