-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae4ff13
commit c0ddb9f
Showing
27 changed files
with
1,065 additions
and
1,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
context("Blog Search", () => { | ||
it( | ||
["pre-deploy"], | ||
"Completes a search and has the correct search text on the next page", | ||
() => { | ||
const searchText = "My search text"; | ||
it("Completes a search and has the correct search text on the next page", () => { | ||
const searchText = "My search text"; | ||
|
||
cy.visit("/blog"); | ||
cy.visit("/blog"); | ||
|
||
cy.findByRole("textbox", { name: "Search blog posts" }).type( | ||
`${searchText}{enter}` | ||
); | ||
cy.findByRole("textbox", { name: "Search blog posts" }).type( | ||
`${searchText}{enter}` | ||
); | ||
|
||
cy.findByRole("heading", { name: /Results/i }).contains(searchText); | ||
} | ||
); | ||
cy.findByRole("heading", { name: /Results/i }).contains(searchText); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
context("Newsletter Sign Up", () => { | ||
it(["pre-deploy"], "Signs up for the newsletter", () => { | ||
it("Signs up for the newsletter", () => { | ||
const email = "[email protected]"; | ||
|
||
cy.visit("/"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.