Skip to content

Commit

Permalink
Update mui (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehats authored Dec 5, 2023
2 parents 22e847b + 1691982 commit 4b7cf0c
Show file tree
Hide file tree
Showing 7 changed files with 322 additions and 237 deletions.
8 changes: 4 additions & 4 deletions src/client/cypress/e2e/editor/fieldMeasurement.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("Tests for the field measurement editor.", () => {

// fill reliability dropdown
cy.get('[data-cy="reliability-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -57,7 +57,7 @@ describe("Tests for the field measurement editor.", () => {

// fill sample type dropdown
cy.get('[data-cy="sample-type-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -67,7 +67,7 @@ describe("Tests for the field measurement editor.", () => {

// fill parameter dropdown
cy.get('[data-cy="parameter-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -91,7 +91,7 @@ describe("Tests for the field measurement editor.", () => {

// fill sample type dropdown
cy.get('[data-cy="sample-type-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("Tests for the groundwater level measurement editor.", () => {

// fill kind dropdown
cy.get('[data-cy="kind-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -54,7 +54,7 @@ describe("Tests for the groundwater level measurement editor.", () => {

// fill reliability dropdown
cy.get('[data-cy="reliability-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand Down Expand Up @@ -83,7 +83,7 @@ describe("Tests for the groundwater level measurement editor.", () => {

// change kind dropdown
cy.get('[data-cy="kind-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand Down
2 changes: 1 addition & 1 deletion src/client/cypress/e2e/editor/hydrotest.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createBorehole, adminUserAuth, login } from "../testHelpers";

const openDropdown = dataCy => {
cy.get(`[data-cy="${dataCy}"]`)
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });
};

Expand Down
4 changes: 2 additions & 2 deletions src/client/cypress/e2e/editor/lithologicalDescription.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("Tests for the lithological description column.", () => {

// fill quality dropdown
cy.get('[data-cy="qt-decription-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -83,7 +83,7 @@ describe("Tests for the lithological description column.", () => {

// fill to depth dropdown
cy.get('[data-cy="to-depth-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand Down
8 changes: 4 additions & 4 deletions src/client/cypress/e2e/editor/waterIngress.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe("Tests for the wateringress editor.", () => {

// fill quantity dropdown
cy.get('[data-cy="quantity-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -52,7 +52,7 @@ describe("Tests for the wateringress editor.", () => {

// fill conditions dropdown
cy.get('[data-cy="conditions-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -62,7 +62,7 @@ describe("Tests for the wateringress editor.", () => {

// fill reliability dropdown
cy.get('[data-cy="reliability-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand All @@ -86,7 +86,7 @@ describe("Tests for the wateringress editor.", () => {

// change quantity dropdown
cy.get('[data-cy="quantity-select"]')
.find('[role="button"]')
.find('[role="combobox"]')
.click({ force: true });

cy.get('.MuiPaper-elevation [role="listbox"]')
Expand Down
Loading

0 comments on commit 4b7cf0c

Please sign in to comment.