From 4c471e578e6468cb64c48251dff17fd678866f27 Mon Sep 17 00:00:00 2001 From: Camille Moinier Date: Thu, 7 Dec 2023 10:04:30 +0100 Subject: [PATCH] fix(e2e): fix datasetdetail test --- apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts | 8 +++++--- apps/datahub-e2e/src/e2e/home.cy.ts | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts index 5cc0775345..b45dcab6ee 100644 --- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts @@ -518,7 +518,7 @@ describe('api cards', () => { }) }) -describe.only('api form', () => { +describe('api form', () => { beforeEach(() => { cy.visit('/dataset/accroche_velos') cy.get('gn-ui-api-card').first().find('button').click() @@ -528,6 +528,8 @@ describe.only('api form', () => { cy.get('@apiForm').find('gn-ui-text-input').should('have.length', 2) cy.get('@apiForm').find('gn-ui-dropdown-selector').should('have.length', 1) cy.get('@apiForm') + .children('div') + .first() .children('div') .first() .find('button') @@ -578,8 +580,8 @@ describe.only('api form', () => { cy.get('@apiForm').children('div').first().find('button').first().click() - cy.get('@firstInput').find('input').should('have.value', 0) - cy.get('@secondInput').find('input').should('have.value', 0) + cy.get('@firstInput').find('input').should('have.value', '') + cy.get('@secondInput').find('input').should('have.value', '') cy.get('@apiForm') .find('gn-ui-dropdown-selector') .find('button') diff --git a/apps/datahub-e2e/src/e2e/home.cy.ts b/apps/datahub-e2e/src/e2e/home.cy.ts index 46883d3de6..cbab84159c 100644 --- a/apps/datahub-e2e/src/e2e/home.cy.ts +++ b/apps/datahub-e2e/src/e2e/home.cy.ts @@ -1,7 +1,7 @@ /* eslint-disable cypress/no-unnecessary-waiting */ import 'cypress-real-events' -describe('header', () => { +describe('home', () => { beforeEach(() => cy.visit('/')) describe('general display', () => { @@ -78,7 +78,7 @@ describe('header', () => { }) }) - describe('my favorites button', () => { + describe.only('my favorites button', () => { beforeEach(() => { cy.login() cy.clearFavorites()