Skip to content

Commit

Permalink
potential fix for cypress bug where it randomly fails clicking a reac…
Browse files Browse the repository at this point in the history
  • Loading branch information
TijlB99 committed Aug 16, 2020
1 parent f5d43fc commit 1633b4f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions cypress/integration/e2e/firstclass_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ describe('FirstClass test', () => {
cy.contains("_name")
cy.contains("getName() : String")

cy.get('a').contains("setName").click()
cy.get('a').contains("setName").click({force: true})
cy.url().should('include', '/firstclass/FirstClass/setName')

cy.visit("http://localhost:8000/modules/folder1/class4")

cy.contains("Class4")
cy.contains("Callback")
cy.contains(/^PrimitiveArray/).click()
cy.contains(/^PrimitiveArray/).click({force: true})

cy.url().should('include', '/class4/PrimitiveArray')
})
Expand Down
16 changes: 8 additions & 8 deletions cypress/integration/e2e/folder0/class0_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@ describe('Class0 test', () => {
cy.contains("getName() : String")


cy.get('a').contains("This should link to itself").click()
cy.get('a').contains("This should link to itself").click({force: true})
cy.url().should('include', '/class0/Class0/myClass0')

cy.wait(500)

cy.get('a').contains("folder0/class0/Class0").click()
cy.get('a').contains("folder0/class0/Class0").click({force: true})
cy.url().should('include', '/class0/Class0')

cy.get('a').contains("Class0.getName").click()
cy.get('a').contains("Class0.getName").click({force: true})
cy.url().should('include', '/class0/Class0/getName')

cy.get('a').contains("folder0/class0/Class0").click()
cy.get('a').contains("folder0/class0/Class0").click({force: true})
cy.url().should('include', '/class0/Class0')

cy.get('a').contains(/^getName$/).click()
cy.get('a').contains(/^getName$/).click({force: true})
cy.url().should('include', '/class0/Class0/getName')

cy.get('a').contains("folder0/class0/Class0").click()
cy.get('a').contains("folder0/class0/Class0").click({force: true})
cy.url().should('include', '/class0/Class0')

cy.get('a').contains("FirstClass.getName").click()
cy.get('a').contains("FirstClass.getName").click({force: true})
cy.url().should('include', '/firstclass/FirstClass/getName')

cy.visit('http://localhost:8000/modules/folder0/class0/Class0')

cy.get('.type').get('a').contains(/^FirstClass/).click()
cy.get('.type').get('a').contains(/^FirstClass/).click({force: true})
cy.url().should('include', '/firstclass/FirstClass')
})
})
6 changes: 3 additions & 3 deletions cypress/integration/e2e/folder1/class4_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ describe('Class4 test', () => {
cy.get(".signature-summary").contains("(")
cy.get(".signature-summary").contains("string")

cy.get(".signature-summary").contains(/^Class0$/).click()
cy.get(".signature-summary").contains(/^Class0$/).click({force: true})
cy.url().should('include', '/class0/Class0')

cy.visit('http://localhost:8000/modules/folder1/class4/Class4/function')
cy.get(".signature-summary").contains(/^Class1$/).click()
cy.get(".signature-summary").contains(/^Class1$/).click({force: true})
cy.url().should('include', '/class1/Class1')

cy.visit('http://localhost:8000/modules/folder1/class4/Class4/function')
cy.get(".returns").get("code").contains("null")
cy.get(".returns").get("a").contains(/^Class1$/).click()
cy.get(".returns").get("a").contains(/^Class1$/).click({force: true})
cy.url().should('include', '/class1/Class1')

cy.visit('http://localhost:8000/modules/folder1/class4/Callback')
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/e2e/folder1/class6_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Class6 test', () => {

cy.get(".kind-string").contains("Class")
cy.get(".signature-summary").contains("new Class6")
cy.get(".signature-summary").get('a').contains('FirstClass').click()
cy.get(".signature-summary").get('a').contains('FirstClass').click({force: true})
cy.url().should('include', '/firstclass/FirstClass')

cy.visit('http://localhost:8000/modules/folder1/class6/Class6/property')
Expand Down

0 comments on commit 1633b4f

Please sign in to comment.