Skip to content

Commit

Permalink
test: add test for when create-application-link does exist
Browse files Browse the repository at this point in the history
  • Loading branch information
amerc15 committed Sep 26, 2024
1 parent bad0852 commit fc1af50
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cypress/e2e/specs/application_registration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,19 @@ describe('Application Registration', () => {
.should('contain', 'No Applications')
})

it('displays empty dashboard with enabled buttons', () => {
cy.mockApplications([], 0)
cy.mockApplicationAuthStrategies([{ name: 'foo', id: '1', credential_type: 'client_credentials', auth_methods: ['session', 'bearer'] }], 0)

cy.visit('/my-apps')

cy.get('[data-testid="create-application-button"]').should('exist')
cy.get('[data-testid="create-application-link"]').should('exist')
cy.get('[data-testid="empty-state-card"]')
.should('exist')
.should('contain', 'No Applications')
})

it('can return to My Apps from application details via breadcrumb', () => {
cy.mockDeveloperRefresh()
cy.mockApplications(apps, 4)
Expand Down

0 comments on commit fc1af50

Please sign in to comment.