Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.