Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PP-12395: Cypress test for revoking api keys #4407

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

oswaldquek
Copy link
Contributor

@oswaldquek oswaldquek commented Jan 14, 2025

Cypress tests for #4400

])
})

it('should revoke the api key successfully', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe these should include something like "when 'Yes/No' is selected" - either in the test description or as a describe block just to make the expected behaviour clearer

cy.contains('p.govuk-notification-banner__heading', `${DESCRIPTION} was successfully revoked`).should('not.exist')
})
})

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding a test for if nothing is selected as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@oswaldquek oswaldquek force-pushed the PP-12395-revoke-key-cypress-test branch from 335e9c8 to a241d01 Compare January 15, 2025 14:24
Copy link
Contributor

@DomBelcher DomBelcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@oswaldquek oswaldquek merged commit 87169d9 into master Jan 15, 2025
14 checks passed
@oswaldquek oswaldquek deleted the PP-12395-revoke-key-cypress-test branch January 15, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants