Skip to content

Commit

Permalink
Merge pull request #512 from vtexdocs/tests/add-additional-wait-refer…
Browse files Browse the repository at this point in the history
…ence

test(api-reference): add additional wait to tests in reference page
  • Loading branch information
brunoamui authored Nov 8, 2023
2 parents 8fd3717 + 36fdc7b commit cb9659a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tests/cypress/integration/api-reference.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('API reference documentation page', () => {
beforeEach(() => {
cy.viewport(1366, 768)
cy.task('getUrl').then((url) => cy.visit(url))
cy.wait(6000)
cy.wait(10000)
})

afterEach(function () {
Expand Down
13 changes: 12 additions & 1 deletion src/tests/cypress/integration/documentation-pages-status.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@ describe('Status of documentation pages', () => {
prob: Cypress.env('testProbability') || 1.0,
})

pages.forEach((page) => it(`Checks page ${page}`, () => cy.visit(page)))
pages.forEach((page) =>
it(
`Checks page ${page}`,
{
retries: {
runMode: 3,
openMode: 3,
},
},
() => cy.visit(page)
)
)
})

0 comments on commit cb9659a

Please sign in to comment.