You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
646 B
JavaScript
26 lines
646 B
JavaScript
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()
|
|
})
|
|
})
|