Skip to content

Commit

Permalink
Add the click on the Select field button (#4210)
Browse files Browse the repository at this point in the history
  • Loading branch information
sviatlana-stsiapanava authored Sep 18, 2024
1 parent 3d851d4 commit bc9dc40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cypress/support/fragments/bulk-edit/query-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const runQueryButton = Button('Run query');
const xButton = Button({ icon: 'times' });
const plusButton = Button({ icon: 'plus-sign' });
const trashButton = Button({ icon: 'trash' });
const selectFieldButton = Button(including('Select field'));

const booleanValues = ['AND'];

Expand Down Expand Up @@ -145,6 +146,7 @@ export default {
},

verifyFieldsSortedAlphabetically() {
cy.do(selectFieldButton.click());
cy.get('[class^="col-sm-4"] [role="listbox"] [role="option"]')
.children()
.then((optionsText) => {
Expand All @@ -155,6 +157,7 @@ export default {
},

selectField(selection, row = 0) {
cy.do(selectFieldButton.click());
cy.do(RepeatableFieldItem({ index: row }).find(Selection()).choose(selection));
},

Expand Down

0 comments on commit bc9dc40

Please sign in to comment.