Skip to content

Commit

Permalink
Fix test navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 14, 2024
1 parent 0666d49 commit 4951ca3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api-legacy/v1/borehole/producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/client/cypress/e2e/editor/boreholeTable.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { loginAsAdmin, loginAsEditor, returnToOverview } from "../helpers/testHelpers.js";
import {
clickOnRowWithText,
showTableAndWaitForData,
verifiyPaginationText,
verifyRowContains,
Expand Down Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export const BoreholeTable: FC<BoreholeTableProps> = ({
};

const getRowClassName = (params: GridRowParams) => {
console.log(params);
let css = "";
if (params.row.lock) {
css = "locked-row ";
Expand Down

0 comments on commit 4951ca3

Please sign in to comment.