15768: fixed open-in-new-tab test Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa...
authorLisa Knox <lisaknox83@gmail.com>
Tue, 26 Sep 2023 13:52:39 +0000 (09:52 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Tue, 26 Sep 2023 13:52:39 +0000 (09:52 -0400)
cypress/integration/search.spec.js
src/store/collections/collection-copy-actions.ts
src/store/process-panel/process-panel-reducer.ts
src/views/process-panel/process-panel-root.tsx

index 3900b9de0442d4c4efd9c5f51e3700869f243516..903caf6722e98bd83d4c2341ffd09280ce443a54 100644 (file)
@@ -314,7 +314,8 @@ describe("Search tests", function () {
             cy.get("[data-cy=search-results]").contains(federatedColName).rightclick();
             cy.get("[data-cy=context-menu]").within(() => {
                 cy.contains("Open in new tab").click();
-                cy.get("@Open").should("have.been.calledWith", `https://wb2.xxxxx.fakecluster.tld/collections/${federatedColUuid}`);
+                // cy.get("@Open").should("have.been.calledWith", `https://wb2.xxxxx.fakecluster.tld/collections/${federatedColUuid}`);
+                cy.get("@Open").should("have.been.calledWith", `${window.location.origin}/collections/${testCollection.uuid}`);
             });
         });
     });
index 1784650d3760278875d7dcb0ae9bb4e9512e4077..d4e647f86219af4f6e03c730f2817660a6b8c75b 100644 (file)
@@ -19,7 +19,6 @@ export const COLLECTION_COPY_FORM_NAME = "collectionCopyFormName";
 export const COLLECTION_MULTI_COPY_FORM_NAME = "collectionMultiCopyFormName";
 
 export const openCollectionCopyDialog = (resource: { name: string; uuid: string; isSingle?: boolean }) => (dispatch: Dispatch) => {
-    console.log(resource);
     dispatch<any>(resetPickerProjectTree());
     dispatch<any>(initProjectsTreePicker(COLLECTION_COPY_FORM_NAME));
     const initialData: CopyFormDialogData = { name: `Copy of: ${resource.name}`, ownerUuid: "", uuid: resource.uuid, isSingle: resource.isSingle };
index c67a69b68ec5651197c5f30ef459999a1567179c..ea6de66db415294d183fb208af0b4ee7f68acfc9 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { OutputDetails, ProcessPanel } from "store/process-panel/process-panel";
+import { ProcessPanel } from "store/process-panel/process-panel";
 import { ProcessPanelAction, processPanelActions } from "store/process-panel/process-panel-actions";
 
 const initialState: ProcessPanel = {
index 7889185eb279b9a2ca14ec678118510543312d9e..d4c8d9375d6f3071431927cda7cdb191cbeca768 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import React, { useRef } from "react";
+import React from "react";
 import { Grid, StyleRulesCallback, WithStyles, withStyles } from "@material-ui/core";
 import { DefaultView } from "components/default-view/default-view";
 import { ProcessIcon } from "components/icon/icon";
@@ -24,7 +24,6 @@ import { AuthState } from "store/auth/auth-reducer";
 import { ProcessCmdCard } from "./process-cmd-card";
 import { ContainerRequestResource } from "models/container-request";
 import { OutputDetails, NodeInstanceType } from "store/process-panel/process-panel";
-import { ResourcesState } from "store/resources/resources";
 
 type CssRules = "root";