Skip to content

Commit

Permalink
add checks for webhook create
Browse files Browse the repository at this point in the history
  • Loading branch information
Forfold committed May 15, 2024
1 parent e04e8b1 commit 3f55aae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions web/src/cypress/e2e/escalationPolicySteps.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,20 @@ testScreen('Webhook Support', (screen: ScreenFormat) => {
'webhook-url': 'https://webhook.site',
})
cy.dialogClick('Add Action')
cy.get('div[role="dialog"] [data-testid=destination-chip]').should(
'contain',
'webhook.site',
)

cy.dialogForm({
'webhook-url': 'https://example.com',
})
cy.dialogClick('Add Action')
cy.get('div[role="dialog"] [data-testid=destination-chip]').should(
'contain',
'example.com',
)

cy.dialogFinish('Submit')

// verify data integrity
Expand Down

0 comments on commit 3f55aae

Please sign in to comment.