Skip to content

Instantly share code, notes, and snippets.

@dannyshain
Created March 17, 2021 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannyshain/fb4056c5974d58d03e8c69ce5e92dc6c to your computer and use it in GitHub Desktop.
Save dannyshain/fb4056c5974d58d03e8c69ce5e92dc6c to your computer and use it in GitHub Desktop.
context('Home', () => {
beforeEach(() => cy.visit('https://demo.applitools.com'));
it('should log in to the application and land on the dashboard', () => {
cy.eyesOpen({
appName: 'Demo App',
testName: 'Login',
});
cy.eyesCheckWindow({ tag: 'Login Window' });
cy.get('#log-in').click();
cy.eyesCheckWindow({ tag: 'App Window' });
cy.eyesClose();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment