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