Created
February 21, 2019 07:06
-
-
Save GeoffMahugu/160d9a5483cb5fbedbf2c10f76ccbab1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('My First Test', function () { | |
context('Testing Dashboard', function () { | |
it('Visit Landing Page', function () { | |
//setup initial state by visiting the home page | |
cy.visit("127.0.0.1:4200/"); | |
}); | |
}); | |
context('Testing Details Page', function () { | |
it('Select a Hero', function () { | |
cy.get('.hero') | |
//Get the first Hero | |
.first() | |
//Select the hero | |
.click(); | |
//Asert url has changed. | |
cy.url() | |
.should('include', '/detail'); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment