UNPKG

@comeon/agent-js-cypress

Version:

This agent helps Cypress to communicate with Report Portal

42 lines (39 loc) 1.21 kB
context('Example Cypress Test', () => { context('Check Cypress page', () => { beforeEach(() => { return cy.visit('https://example.cypress.io'); }); context('Check content Cypress example page', () => { it('should contain Cypress', () => { cy.contains('Cypress'); }); it('should contain Commands', () => { cy.contains('Commands').screenshot(); }); it('should contain gfkjdgkjdfgl (failed)', () => { cy.contains('gfkjdgkjdfgl').screenshot(); }); }); context('Check url Cypress example page', () => { it('should contain cypress', () => { cy.url().should('include', 'cypress'); }); it('should contain example', () => { cy.url().should('include', 'example'); }); it('skipped test'); }); }); context('Check content of Google', () => { beforeEach(() => { return cy.visit('https://www.google.com/'); }); it('url should contain google', () => { cy.url().should('include', 'google'); }); it('check contain of google page (failed)', () => { cy.get('#hplogo').screenshot(); cy.contains('example').screenshot(); }); }); });