|
22 | 22 | * SOFTWARE. |
23 | 23 | */ |
24 | 24 |
|
25 | | -describe('regression test', () => { |
26 | | - it('open dialog subpage', () => { |
27 | | - cy.visit('http://localhost:3000') |
28 | | - cy.get('a').contains('dialog').click() |
29 | | - cy.get('button').click() |
30 | | - cy.get('body').should('contain', 'Full name') |
31 | | - cy.get('[class$="closeButton"]').click() |
32 | | - }) |
33 | | - |
34 | | - it('open alert subpage', () => { |
35 | | - cy.visit('http://localhost:3000') |
36 | | - cy.get('a').contains('alert').click() |
37 | | - cy.get('body').should('contain', 'Sample info text') |
38 | | - }) |
39 | | - |
40 | | - it('open breadcrumb subpage', () => { |
41 | | - cy.visit('http://localhost:3000') |
42 | | - cy.get('a').contains('breadcrumb').click() |
43 | | - cy.get('body').should('contain', 'Rabbit Is Rich') |
44 | | - cy.get('body').contains('The Rabbit Novels').click() |
45 | | - const redirect = 'https://instructure.design' |
46 | | - cy.origin(redirect, { args: { redirect } }, ({ redirect }) => { |
47 | | - cy.location().should((loc) => { |
48 | | - loc.href.includes(redirect) |
49 | | - }) |
50 | | - }) |
| 25 | +describe('visual regression test', () => { |
| 26 | + it('check button', () => { |
| 27 | + cy.visit('http://localhost:3000/button') |
51 | 28 | }) |
52 | 29 | }) |
0 commit comments