Skip to content

Commit

Permalink
update e2e test to use simpler example
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Jan 27, 2024
1 parent f7ae36c commit 22e6922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/main-page.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ describe('Frontend', function () {
})

it('Build a badge', function () {
visitAndWait('/badges/git-hub-issues')
visitAndWait('/badges/git-hub-license')

cy.contains('/github/issues/:user/:repo')
cy.contains('/github/license/:user/:repo')

cy.get('input[placeholder="user"]').type('badges')
cy.get('input[placeholder="repo"]').type('shields')

cy.intercept('GET', `${backendUrl}/github/issues/badges/shields`).as('get')
cy.intercept('GET', `${backendUrl}/github/license/badges/shields`).as('get')
cy.contains('Execute').click()
cy.wait('@get').its('response.statusCode').should('eq', 200)
cy.get('img[id="badge-preview"]')
Expand Down

0 comments on commit 22e6922

Please sign in to comment.