Kyle Coberly
kylecoberly.com
describe('My First Test', () => {
it('clicking "type" navigates to a new url', () => {
cy.visit('https://example.cypress.io')
cy.contains('type').click()
cy.url().should('include', '/commands/actions')
})
})
Feature Files
Step Definitions
Business Language
Programming Language
Given I'm on the Google home page
When I search for "dogs"
Then I see links related to "dogs"
Given("I'm on the Google home page", () => {
visit("https://google.com")
})
An app that tracks how many days of toilet paper you have left.*
*(This was Chad Beninati's fault)
Concepts:
<h1 class="logo" data-test-logo>paper.ly</h1>
/test
|- e2e
|- common
|- plugins
|- specs
|- DisplayStats
|- index.js
|- DisplayStats.feature
|- ChangeRollsRemaining
|- index.js
|- ChangeRollsRemaining.feature
|- support
|- unit
Component
Store
Test that actions change state
Test that behavior dispatches actions
Integration Test
kylecoberly.com