Skip to content

Commit 59703a6

Browse files
Blue Fjennifer-shehane
Blue F
andauthored
test: Add a couple of project setup e2e tests (#19295)
* Add a couple of project setup e2e tests * Bring up to date with 10.0-release changes * Fix TS complaining about welcome step Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
1 parent 0d51a92 commit 59703a6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
describe('Launchpad: Setup Project', () => {
2+
before(() => {
3+
cy.scaffoldProject('todos')
4+
})
5+
6+
beforeEach(() => {
7+
cy.openProject('todos')
8+
cy.visitLaunchpad()
9+
})
10+
11+
it('no initial setup displays welcome page', () => {
12+
cy.contains('Welcome to Cypress!').should('be.visible')
13+
cy.contains('E2E Testing').should('be.visible')
14+
cy.contains('Component Testing').should('be.visible')
15+
})
16+
17+
it('welcome page has link to learn about testing types', () => {
18+
cy.intercept('POST', 'mutation-ExternalLink_OpenExternal').as('OpenExternal')
19+
20+
cy.contains('Review the differences').click()
21+
cy.contains('Key Differences').should('be.visible')
22+
cy.contains('Need help?').click()
23+
24+
cy.wait('@OpenExternal')
25+
})
26+
})

0 commit comments

Comments
 (0)