mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-05 14:50:00 -06:00
server: fix failing e2e tests
This commit is contained in:
@@ -5,18 +5,21 @@ describe "web security", ->
|
||||
.visit("http://localhost:5566/link")
|
||||
.get("a").click()
|
||||
.url().should("eq", "http://localhost:55665/cross_origin")
|
||||
.contains("h1", "cross origin")
|
||||
|
||||
cy.contains("h1", "cross origin")
|
||||
|
||||
it "fails when submitted a form and being redirected to another origin", ->
|
||||
cy
|
||||
.visit("http://localhost:5566/form")
|
||||
.get("input").click()
|
||||
.url().should("eq", "http://localhost:55665/cross_origin")
|
||||
.contains("h1", "cross origin")
|
||||
|
||||
cy.contains("h1", "cross origin")
|
||||
|
||||
it "fails when using a javascript redirect to another origin", ->
|
||||
cy
|
||||
.visit("http://localhost:5566/javascript")
|
||||
.get("button").click()
|
||||
.url().should("eq", "http://localhost:55665/cross_origin")
|
||||
.contains("h1", "cross origin")
|
||||
|
||||
cy.contains("h1", "cross origin")
|
||||
|
||||
Reference in New Issue
Block a user