-
Notifications
You must be signed in to change notification settings - Fork 15
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 API keys landing page #4392
PP-12395: Cypress test for API keys landing page #4392
Conversation
637221f
to
d0dc26b
Compare
cy.get('#api-keys').should('have.text', 'API keys') | ||
cy.get('.service-settings-pane') | ||
.find('a') | ||
.contains('Create a new API key') | ||
.should('exist') | ||
cy.get('.service-settings-pane') | ||
.find('h2') | ||
.contains('Active test API keys (2)') | ||
.should('exist') | ||
cy.get('.service-settings-pane') | ||
.find('a') | ||
.contains('Show revoked API keys') | ||
.should('exist') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably test for more than just these bits of text - it should test that the summary cards are shown with the correct content - this could be in a separate test though to aid readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call - test added
verifySummaryCard(0, apiKeys[0]) | ||
verifySummaryCard(1, apiKeys[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is one line less than a for-loop so don't ask me to use a for-loop 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work
Cypress tests for #4385