From dcf2a6775fd86f6f893fa0e107f98e05529041a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Germ=C3=A1n=20Saracca?= Date: Thu, 16 May 2024 13:29:15 -0300 Subject: [PATCH] test: modify test to select an option from select multiple --- .../e2e/sections/create-dataset/CreateDatasetForm.spec.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e-integration/e2e/sections/create-dataset/CreateDatasetForm.spec.tsx b/tests/e2e-integration/e2e/sections/create-dataset/CreateDatasetForm.spec.tsx index a9c5fd949..a3e4387f0 100644 --- a/tests/e2e-integration/e2e/sections/create-dataset/CreateDatasetForm.spec.tsx +++ b/tests/e2e-integration/e2e/sections/create-dataset/CreateDatasetForm.spec.tsx @@ -37,10 +37,13 @@ describe('Create Dataset', () => { .within(() => { cy.findByLabelText(/^Text/i).type('Test description text', { force: true }) }) + cy.findByText('Subject') .closest('.row') .within(() => { - cy.findByLabelText(/^Arts and Humanities/i).check({ force: true }) + cy.findByLabelText('Toggle options menu').click({ force: true }) + + cy.findByLabelText('Agricultural Sciences').click() }) cy.findByText(/Save Dataset/i).click()