From 14aef2c56ad3f32e73659ecc7b06a91272a6e9f4 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Wed, 16 Mar 2022 20:57:30 +0800 Subject: [PATCH] feat:add page break test case --- cypress/integration/menus/pagebreak.spec.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cypress/integration/menus/pagebreak.spec.ts diff --git a/cypress/integration/menus/pagebreak.spec.ts b/cypress/integration/menus/pagebreak.spec.ts new file mode 100644 index 0000000..0b1ce49 --- /dev/null +++ b/cypress/integration/menus/pagebreak.spec.ts @@ -0,0 +1,17 @@ +describe('菜单-分页符', () => { + + beforeEach(() => { + cy.visit('http://localhost:3000/canvas-editor/') + + cy.get('canvas').first().as('canvas').should('have.length', 1) + }) + + it('分页符', () => { + cy.get('@canvas').click() + + cy.get('.menu-item__page-break').click().click() + + cy.get('canvas').should('have.length', 3) + }) + +})