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
| export const createTodo = (name: string) => { | |
| cy.get('.new-todo').type(`${name}{enter}`) | |
| return cy | |
| .get('.todo-list') | |
| .contains('li', name.trim()) | |
| .first() | |
| } | |
| export const updateTodo = (name: string) => ($todo: JQuery) => { |
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
| interface Todo { | |
| id: string | |
| name: string | |
| done: boolean | |
| } | |
| const createTodo = (name: string) => new Promise<Todo>((resolve) => { | |
| setTimeout( | |
| resolve, | |
| 100, |
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
| declare namespace Cypress { | |
| interface Chainable<Subject> { | |
| myCustomCommand(username: string, password: string): Cypress.Chainable<Response> | |
| } | |
| } | |
| Cypress.Commands.add('myCustomCommand', (username: string, password: string) => { | |
| Cypress.log({ | |
| name: 'loginByForm', |
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('getFormattedCustomerInfo-async', function(){ | |
| var customerService; | |
| var customerFormattingService; | |
| var $q; | |
| var $scope; | |
| beforeEach(function(){ | |
| module('customer'); | |
| inject( function($injector){ | |
| customerService = $injector.get('customer-service'); | |
| customerFormattingService = $injector.get('customer-formatting-service-async'); |
NewerOlder