Adding cypress.
This commit is contained in:
25
cypress/integration/sample_spec.js
Normal file
25
cypress/integration/sample_spec.js
Normal file
@@ -0,0 +1,25 @@
|
||||
describe('My First Test', () => {
|
||||
it('Visits the Kitchen Sink', () => {
|
||||
cy.visit('/')
|
||||
|
||||
cy.contains('Begin').click()
|
||||
|
||||
cy.contains('New Game').click()
|
||||
|
||||
cy.contains('Login').click()
|
||||
|
||||
cy.get('form [name="username"]').type('test')
|
||||
cy.get('form [name="password"]').type('food')
|
||||
cy.get('button[type="submit"]').click()
|
||||
|
||||
cy.get('form [name="gameName"]').type('test')
|
||||
cy.get('button[type="submit"]').click()
|
||||
|
||||
cy.get('span[class="add-ai"]').click()
|
||||
|
||||
cy.contains('Ready to start').click()
|
||||
cy.contains('Start Game').click()
|
||||
|
||||
cy.get('.show .action-item').first().click()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user