Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created July 26, 2019 14:54
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 ksakae1216/d52f019606fd691255a35c012ef4e215 to your computer and use it in GitHub Desktop.
Save ksakae1216/d52f019606fd691255a35c012ef4e215 to your computer and use it in GitHub Desktop.
import { getAddTodoButton, getTodos } from '../support/app.po';
describe('TodoApps', () => {
beforeEach(() => cy.visit('/'));
it('should display todos', () => {
getTodos().should(t => expect(t.length).equal(2));
getAddTodoButton().click();
getTodos().should(t => expect(t.length).equal(3));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment