[arvados] created: 2.7.0-5830-g581529e35d
git repository hosting
git at public.arvados.org
Mon Jan 15 18:21:18 UTC 2024
at 581529e35d0b2041567b1daa9cde27432978d976 (commit)
commit 581529e35d0b2041567b1daa9cde27432978d976
Author: Stephen Smith <stephen at curii.com>
Date: Mon Jan 15 13:20:09 2024 -0500
21353: Move loginAs into then body after createContainerRequest to fix flaking
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>
diff --git a/services/workbench2/cypress/integration/process.spec.js b/services/workbench2/cypress/integration/process.spec.js
index 9ea026b990..4cd804ec4a 100644
--- a/services/workbench2/cypress/integration/process.spec.js
+++ b/services/workbench2/cypress/integration/process.spec.js
@@ -1434,8 +1434,6 @@ describe("Process tests", function () {
const fakeOutputUUID = "zzzzz-4zz18-abcdefghijklmno";
const fakeOutputPDH = "11111111111111111111111111111111+99/";
- cy.loginAs(activeUser);
-
// Add output uuid and inputs to container request
cy.intercept({ method: "GET", url: "**/arvados/v1/container_requests/*" }, req => {
req.reply(res => {
@@ -1489,31 +1487,30 @@ describe("Process tests", function () {
);
});
- createContainerRequest(activeUser, "test_container_request", "arvados/jobs", ["echo", "hello world"], false, "Committed").as(
- "containerRequest"
- );
+ createContainerRequest(activeUser, "test_container_request", "arvados/jobs", ["echo", "hello world"], false, "Committed")
+ .then(containerRequest => {
+ cy.loginAs(activeUser);
- cy.getAll("@containerRequest").then(function ([containerRequest]) {
- cy.goToPath(`/processes/${containerRequest.uuid}`);
- cy.get("[data-cy=process-io-card] h6")
- .contains("Inputs")
- .parents("[data-cy=process-io-card]")
- .within(() => {
- cy.wait(2000);
- cy.waitForDom();
- cy.get("tbody tr").each(item => {
- cy.wrap(item).contains("No value");
+ cy.goToPath(`/processes/${containerRequest.uuid}`);
+ cy.get("[data-cy=process-io-card] h6")
+ .contains("Inputs")
+ .parents("[data-cy=process-io-card]")
+ .within(() => {
+ cy.wait(2000);
+ cy.waitForDom();
+ cy.get("tbody tr").each(item => {
+ cy.wrap(item).contains("No value");
+ });
});
- });
- cy.get("[data-cy=process-io-card] h6")
- .contains("Outputs")
- .parents("[data-cy=process-io-card]")
- .within(() => {
- cy.get("tbody tr").each(item => {
- cy.wrap(item).contains("No value");
+ cy.get("[data-cy=process-io-card] h6")
+ .contains("Outputs")
+ .parents("[data-cy=process-io-card]")
+ .within(() => {
+ cy.get("tbody tr").each(item => {
+ cy.wrap(item).contains("No value");
+ });
});
- });
- });
+ });
});
});
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list