Skip to content

Commit

Permalink
Fixed up the test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Mar 8, 2021
1 parent 7e2d5fe commit 13945e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"baseUrl": "http://webapp.frontend-development/index.html",
"baseUrl": "http://webapp.frontend-development",
"reporter": "mochawesome",
"reporterOptions": {
"charts": true,
Expand Down
5 changes: 3 additions & 2 deletions cypress/integration/sample_spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
describe('Random Quotes', () => {
it('Can refresh', () => {
cy.get('.refreshQuote').click()
cy.visit('/')
cy.get('#refreshQuote').click()
cy.wait(1000)
cy.get('.quoteCount').contains('2')
cy.get('#quoteText').should('not.be.empty')
})
})

0 comments on commit 13945e2

Please sign in to comment.