X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2c736f0babb3862b4d77210e3340473a1cf42082..3fd36192430554d3e28fcee28d23d534881dae7a:/services/workbench2/cypress/e2e/process.cy.js diff --git a/services/workbench2/cypress/e2e/process.cy.js b/services/workbench2/cypress/e2e/process.cy.js index 43fb1d22d1..412576c05e 100644 --- a/services/workbench2/cypress/e2e/process.cy.js +++ b/services/workbench2/cypress/e2e/process.cy.js @@ -114,9 +114,10 @@ describe("Process tests", function () { cy.get("[data-cy=process-details-attributes-modifiedby-user]").contains(`Active User (${activeUser.user.uuid})`); cy.get("[data-cy=process-details-attributes-runtime-user]").should("not.exist"); cy.get("[data-cy=side-panel-tree]").contains("Home Projects").click(); - cy.waitForDom() - cy.get('[data-cy=data-table-row]').contains(containerRequest.name).should('exist').parent().parent().parent().parent().click() - cy.waitForDom() + cy.waitForDom(); + cy.get('[data-cy=mpv-tabs]').contains("Workflow Runs").click(); + cy.get('[data-cy=data-table-row]').contains(containerRequest.name).should('exist').parents('[data-cy=data-table-row]').click() + cy.waitForDom(); cy.get('[data-cy=multiselect-button]').should('have.length', msButtonTooltips.length) for (let i = 0; i < msButtonTooltips.length; i++) { cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseover'); @@ -1277,6 +1278,7 @@ describe("Process tests", function () { .contains(name) .parents("tr") .within($mainRow => { + cy.get($mainRow).scrollIntoView(); label && cy.contains(label); if (multipleRows) { @@ -1405,7 +1407,8 @@ describe("Process tests", function () { cy.get("[data-cy=process-io-card] h6") .contains("Input Parameters") .parents("[data-cy=process-io-card]") - .within(() => { + .within((ctx) => { + cy.get(ctx).scrollIntoView(); verifyIOParameter("input_file", null, "Label Description", "input1.tar", "00000000000000000000000000000000+01"); verifyIOParameter("input_file", null, "Label Description", "input1-2.txt", undefined, true); verifyIOParameter("input_file", null, "Label Description", "input1-3.txt", undefined, true); @@ -1442,11 +1445,11 @@ describe("Process tests", function () { .parents("[data-cy=process-io-card]") .within(ctx => { cy.get(ctx).scrollIntoView(); - cy.get('[data-cy="io-preview-image-toggle"]').click({ waitForAnimations: false }); const outPdh = testOutputCollection.portable_data_hash; verifyIOParameter("output_file", null, "Label Description", "cat.png", `${outPdh}`); - verifyIOParameterImage("output_file", `/c=${outPdh}/cat.png`); + // Disabled until image preview returns + // verifyIOParameterImage("output_file", `/c=${outPdh}/cat.png`); verifyIOParameter("output_file_with_secondary", null, "Doc Description", "main.dat", `${outPdh}`); verifyIOParameter("output_file_with_secondary", null, "Doc Description", "secondary.dat", undefined, true); verifyIOParameter("output_file_with_secondary", null, "Doc Description", "secondary2.dat", undefined, true); @@ -1540,19 +1543,23 @@ describe("Process tests", function () { cy.get("[data-cy=process-io-card] h6") .contains("Input Parameters") .parents("[data-cy=process-io-card]") - .within(() => { + .within((ctx) => { + cy.get(ctx).scrollIntoView(); cy.wait(2000); cy.waitForDom(); - cy.get("tbody tr").each(item => { - cy.wrap(item).contains("No value"); + + testInputs.map((input) => { + verifyIOParameter(input.definition.id.split('/').slice(-1)[0], null, null, "No value"); }); }); cy.get("[data-cy=process-io-card] h6") .contains("Output Parameters") .parents("[data-cy=process-io-card]") - .within(() => { - cy.get("tbody tr").each(item => { - cy.wrap(item).contains("No value"); + .within((ctx) => { + cy.get(ctx).scrollIntoView(); + + testOutputs.map((output) => { + verifyIOParameter(output.definition.id.split('/').slice(-1)[0], null, null, "No value"); }); }); });