-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #522 from uktrade/feat/add-omis-landing-page-test
add omis landing page e2e testing
- Loading branch information
Showing
2 changed files
with
20 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
describe("landing page spec", () => { | ||
it("visits OMIS landing page", () => { | ||
cy.visit("http://localhost:4000"); | ||
cy.get("h1").should("exist").and("have.text", "About this service"); | ||
cy.get('[class="body"]') | ||
.should("exist") | ||
.and( | ||
"have.text", | ||
"The Overseas Market Introduction Service (OMIS) can help you find overseas customers using the Department for Business & Trade’s (DBT) network of trade specialists. Find out more about getting help from a trade specialist." | ||
); | ||
}); | ||
it("should click on the help link", () => { | ||
cy.visit("http://localhost:4000"); | ||
cy.get('[class="link"]') | ||
.should("exist") | ||
.and("contain", "getting help from a trade specialist"); | ||
cy.get('[class="link"]').click(); | ||
}); | ||
}); |