Skip to content

Commit

Permalink
fix: e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
lfsigreja committed Dec 20, 2024
1 parent a6b6b9d commit be0bde3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 4 additions & 9 deletions cypress/e2e/edge-application/add-origin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,11 @@ describe('Edge Application', { tags: ['@dev4'] }, () => {

cy.get(selectors.edgeApplication.origins.addressInput).type('teste.com')
cy.get(selectors.form.actionsSubmitButton).click()
cy.get('.p-component-overlay > .p-dialog > .p-dialog-header').should('have.text', 'Origin Key has been created')
cy.get(selectors.edgeApplication.origins.dialogCopyButton).click()
cy.verifyToast('success', 'Your origin has been created')


cy.get(selectors.personalTokens.copyTokenDialogHeader).should(
'have.text',
'Origin key has been created'
)
cy.get(selectors.edgeApplication.origins.dialogCopyButton).click()
cy.verifyToast('Successfully copied!')
cy.get(selectors.edgeApplication.origins.dialogCloseButton).click()
cy.verifyToast('Successfully copied!')
cy.get(selectors.edgeApplication.origins.dialogCloseButton).click()

//Assert
cy.get(selectors.list.searchInput).type(`${fixtures.originName}{enter}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export default {
addressInput: '[data-testid="origin-form__address__input"]',
originType: '[data-testid="origin-form__origin-type__dropdown"]',
nameInput: '[data-testid="form-horizontal-general-name__input"]',
dialogCopyButton: '[copy-key-dialog__dialog-footer__confirm-button"]',
dialogCloseButton: '[copy-key-dialog__token-field__copy-key-button"]',
dialogCopyButton: '[data-testid="copy-key-dialog__token-field__copy-key-button"]',
dialogCloseButton: '[data-testid="copy-key-dialog__dialog-footer__confirm-button"]',
},
errorResponses: {
createButton: '[data-testid="error-responses-form__add-button"]',
Expand Down

0 comments on commit be0bde3

Please sign in to comment.