Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created July 3, 2019 06:14
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 lydemann/a7e8988d2d49dc267745903a0a5ed81b to your computer and use it in GitHub Desktop.
Save lydemann/a7e8988d2d49dc267745903a0a5ed81b to your computer and use it in GitHub Desktop.
todo.spec.ts
import { TodoPage } from '../support/todo.po';
const todoList = [
{
id: 'task1',
title: 'Do1',
description: 'Remember to buy milk',
},
{
id: 'task2',
title: 'Do2',
description: 'Remember to work out',
},
];
describe('Todo', () => {
beforeEach(() => {
TodoPage.interceptTodoListRequest(todoList);
TodoPage.goToPage();
});
it('should should show todo items', () => {
TodoPage.checkForTodos(todoList);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment