From 644d0953030e124680b8f39ff4127c8c75edec2f Mon Sep 17 00:00:00 2001 From: Karel Persoons Date: Tue, 23 Mar 2021 18:31:33 +0100 Subject: [PATCH] Fix test (.vlc-input-field-block part 2) --- cypress/support/commands/case-commands.js | 10 +++++----- cypress/support/commands/document-commands.js | 2 +- cypress/support/commands/publication-commands.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cypress/support/commands/case-commands.js b/cypress/support/commands/case-commands.js index 49ef28a3b4..b5a540ea8b 100644 --- a/cypress/support/commands/case-commands.js +++ b/cypress/support/commands/case-commands.js @@ -91,7 +91,7 @@ function addSubcase(type, newShortTitle, longTitle, step, stepName) { // Set the type if (type) { - cy.get('.vlc-input-field-block').eq(0) + cy.get('.auk-radio-list') .within(() => { cy.contains(type).scrollIntoView() .click(); @@ -100,7 +100,7 @@ function addSubcase(type, newShortTitle, longTitle, step, stepName) { // Set the short title if (newShortTitle) { - cy.get('.vlc-input-field-block').eq(1) + cy.get('.vlc-input-field-block').eq(0) .within(() => { cy.get('.auk-textarea').click() .clear() @@ -110,7 +110,7 @@ function addSubcase(type, newShortTitle, longTitle, step, stepName) { // Set the long title if (longTitle) { - cy.get('.vlc-input-field-block').eq(2) + cy.get('.vlc-input-field-block').eq(1) .within(() => { cy.get('.auk-textarea').click() .clear() @@ -120,7 +120,7 @@ function addSubcase(type, newShortTitle, longTitle, step, stepName) { // Set the step type if (step) { - cy.get('.vlc-input-field-block').eq(3) + cy.get('.vlc-input-field-block').eq(2) .within(() => { cy.get('.ember-power-select-trigger').click(); }); @@ -140,7 +140,7 @@ function addSubcase(type, newShortTitle, longTitle, step, stepName) { // Set the step name if (stepName) { - cy.get('.vlc-input-field-block').eq(4) + cy.get('.vlc-input-field-block').eq(3) .within(() => { cy.get('.ember-power-select-trigger').click(); }); diff --git a/cypress/support/commands/document-commands.js b/cypress/support/commands/document-commands.js index a700b7a796..e525fa4008 100644 --- a/cypress/support/commands/document-commands.js +++ b/cypress/support/commands/document-commands.js @@ -48,7 +48,7 @@ function addNewDocumentsInUploadModal(files, model) { cy.get('.vl-uploaded-document').eq(index) .within(() => { cy.get('input[type="radio"]').should('exist'); // the radio buttons should be loaded before the within or the .length returns 0 - cy.get('.vlc-input-field-block').eq(1) + cy.get('.auk-radio-list') .within(($t) => { if ($t.find(`input[type="radio"][value="${file.fileType}"]`).length) { cy.get('input[type="radio"]').check(file.fileType, { diff --git a/cypress/support/commands/publication-commands.js b/cypress/support/commands/publication-commands.js index 3192d4bbb3..e1360aee43 100644 --- a/cypress/support/commands/publication-commands.js +++ b/cypress/support/commands/publication-commands.js @@ -105,7 +105,7 @@ function addPublicationDocuments(files) { cy.get('.vl-uploaded-document').eq(index) .within(() => { cy.get('input[type="radio"]').should('exist'); // the radio buttons should be loaded before the within or the .length returns 0 - cy.get('.vlc-input-field-block').eq(1) + cy.get('.auk-radio-list') .within(($t) => { if ($t.find(`input[type="radio"][value="${file.fileType}"]`).length) { cy.get('input[type="radio"]').check(file.fileType, {