mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Damn you're right @mattwr18
You are right with this statement: https://github.com/Human-Connection/Human-Connection/pull/1280#discussion_r314675882
This commit is contained in:
parent
fdc0d808f6
commit
b27a01438e
@ -260,7 +260,7 @@ Then("the first post on the landing page has the title:", title => {
|
|||||||
Then(
|
Then(
|
||||||
"the page {string} returns a 404 error with a message:",
|
"the page {string} returns a 404 error with a message:",
|
||||||
(route, message) => {
|
(route, message) => {
|
||||||
// TODO: how can we check HTTP codes with cypress?
|
cy.request({ url: route, failOnStatusCode: false }).its('status').should('eq', 404)
|
||||||
cy.visit(route, { failOnStatusCode: false });
|
cy.visit(route, { failOnStatusCode: false });
|
||||||
cy.get(".error").should("contain", message);
|
cy.get(".error").should("contain", message);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user