Skip to content

Commit

Permalink
Merge pull request #13 from kanopi/not-all-themes-have-the-same-words
Browse files Browse the repository at this point in the history
Update mediaLibraryAdd.js
  • Loading branch information
Stockfoot authored Nov 29, 2023
2 parents 6be0284 + e23b9d0 commit 6c25d6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mediaLibraryAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ Cypress.Commands.add("mediaLibraryAdd", (selector, fileName, type="") => {
}

// Select the uploaded file.
cy.get('.form-actions button').contains('Save and select').click()
cy.get('.form-actions button').contains('save', { matchCase: false }).click()
cy.wait('@' + mediaLibraryAjax).its('response.statusCode').should('eq', 200)

// Insert from media library
cy.get('.form-actions button').contains('Insert selected').click()
cy.get('.form-actions button').contains('insert', { matchCase: false }).click()
cy.wait('@' + mediaLibraryAjax).its('response.statusCode').should('eq', 200)
})

Expand Down

0 comments on commit 6c25d6d

Please sign in to comment.