From 170cfc6a0e20d3c66221bd9ca2d8c1551a8060a4 Mon Sep 17 00:00:00 2001 From: Masaya Suzuki <15100604+massongit@users.noreply.github.com> Date: Sat, 14 Jan 2023 19:25:20 +0900 Subject: [PATCH] =?UTF-8?q?E2E=E3=83=86=E3=82=B9=E3=83=88=20"first=20widge?= =?UTF-8?q?t=20should=20be=20removed"=20=E4=BF=AE=E6=AD=A3=20(#9556)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix e2e test "first widget should be removed" * E2Eテスト用クラス追加 * empty commit --- cypress/e2e/widgets.cy.js | 4 ++-- packages/frontend/src/components/MkWidgets.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cypress/e2e/widgets.cy.js b/cypress/e2e/widgets.cy.js index 56ad95ee9..f0ca30b71 100644 --- a/cypress/e2e/widgets.cy.js +++ b/cypress/e2e/widgets.cy.js @@ -29,8 +29,8 @@ describe('After user signed in', () => { it('first widget should be removed', () => { cy.get('.mk-widget-edit').click(); - cy.get('.customize-container:first-child .remove._button').click(); - cy.get('.customize-container').should('have.length', 2); + cy.get('.data-cy-customize-container:first-child .data-cy-customize-container-remove._button').click(); + cy.get('.data-cy-customize-container').should('have.length', 2); }); function buildWidgetTest(widgetName) { diff --git a/packages/frontend/src/components/MkWidgets.vue b/packages/frontend/src/components/MkWidgets.vue index e3e448440..eff64c12e 100644 --- a/packages/frontend/src/components/MkWidgets.vue +++ b/packages/frontend/src/components/MkWidgets.vue @@ -19,9 +19,9 @@ @update:model-value="v => emit('updateWidgets', v)" >