-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.test.js
28 lines (26 loc) · 943 Bytes
/
index.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
describe('index page tests', () => {
beforeEach(() => {
cy.visit('/')
})
it('has has a list of features', () => {
cy.findByText(/typescript/i).should('be.visible')
cy.findByText(/storybook/i).should('be.visible')
cy.findByText(/postcss/i).should('be.visible')
cy.findByText(/tailwindcss/i).should('be.visible')
cy.findByText(/typescript/i).should('be.visible')
cy.findByText(/styled components/i).should('be.visible')
cy.findByText(/eslint/i).should('be.visible')
cy.findByText(/prettier/i).should('be.visible')
cy.findByText(/lint-staged/i).should('be.visible')
})
it('has a link to the github readme', () => {
cy.get('a[href^="https://github.com/rbutera/greater-gatsby"]').should(
'be.visible'
)
})
it('has installation instructions', () => {
cy.findByText(
'gatsby new PROJECT_NAME https://github.com/rbutera/greater-gatsby'
).should('be.visible')
})
})