End to End Testing
Protractor
describe('angularjs homepage todo list', () => {
it('should add a todo', () => {
browser.get('https://angularjs.org');
/* Add an element. */
element(by.model('todoList.todoText')).sendKeys('write first protractor test');
element(by.css('[value="add"]')).click();
/* Check todo list content. */
const todoList = element.all(by.repeater('todo in todoList.todos'));
expect(todoList.count()).toEqual(1);
expect(todoList.get(0).getText()).toEqual('write first protractor test');
});
});Cross-Browser & Cross-Device Test Automation with Browserstack
Cypress
Takeaways
Cross-Browser & Cross-Device E2E Testing Automation Blog Post
Boilerplate to run your first protractor tests
Useful modules
Last updated