Skip to content

Commit

Permalink
pkp#9527 Adjust tests for dialog changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jan 12, 2024
1 parent aa52c9e commit 7d59a9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ Cypress.Commands.add('assignDoisByTitle', (title, itemType = 'submission') => {

// Confirm assignment
cy.get(
'div[name="bulkActions"] button:contains("Assign DOIs")'
'div[role="dialog"] button:contains("Assign DOIs")'
).click();
cy.get('.app__notifications').contains(
'Items successfully assigned new DOIs',
Expand All @@ -728,7 +728,7 @@ Cypress.Commands.add('assignDois', (itemId, itemType = 'submission') => {

// Confirm assignment
cy.get(
'div[name="bulkActions"] button:contains("Assign DOIs")'
'div[role="dialog"] button:contains("Assign DOIs")'
).click();
cy.get('.app__notifications').contains(
'Items successfully assigned new DOIs',
Expand Down Expand Up @@ -779,7 +779,7 @@ Cypress.Commands.add('checkDoiMarkedStatus', (status, itemId, isValid, expectedS
// Select mark [status] from bulk actions
cy.get(`#${itemType}-doi-management button:contains("Bulk Actions")`).click({multiple: true});
cy.get(`button:contains("Mark DOIs ${status}")`).click();
cy.get(`div[name="bulkActions"] button:contains("Mark DOIs ${status}")`).click();
cy.get(`div[role="dialog"] button:contains("Mark DOIs ${status}")`).click();

// Check success or failure message
if (isValid) {
Expand Down

0 comments on commit 7d59a9e

Please sign in to comment.