diff --git a/frontend/src/__tests__/cypress/cypress/e2e/projects/ProjectList.cy.ts b/frontend/src/__tests__/cypress/cypress/e2e/projects/ProjectList.cy.ts index b23919cb05..09a416cab4 100644 --- a/frontend/src/__tests__/cypress/cypress/e2e/projects/ProjectList.cy.ts +++ b/frontend/src/__tests__/cypress/cypress/e2e/projects/ProjectList.cy.ts @@ -11,13 +11,13 @@ import { ProjectModel } from '~/__tests__/cypress/cypress/utils/models'; describe('Data science projects details', () => { it('should start with an empty project list', () => { initIntercepts(); - cy.visitWithLogin('/projects'); + cy.visit('/projects'); projectListPage.shouldBeEmpty(); }); it('should open a modal to create a project', () => { initIntercepts(); - cy.visitWithLogin('/projects'); + cy.visit('/projects'); projectListPage.findCreateProjectButton().click(); createProjectModal.shouldBeOpen(); createProjectModal.findCancelButton().click(); @@ -110,7 +110,7 @@ describe('Data science projects details', () => { }; cy.intercept({ pathname: '/api/k8s/apis/project.openshift.io/v1/projects' }, projectsMock); - cy.visitWithLogin('/projects'); + cy.visit('/projects'); projectListPage.shouldHaveProjects(); projectListPage.findProjectLink('DS Project 1').should('exist'); diff --git a/frontend/src/__tests__/cypress/cypress/pages/acceleratorProfile.ts b/frontend/src/__tests__/cypress/cypress/pages/acceleratorProfile.ts index 707c5ea0bf..8ab4a86a75 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/acceleratorProfile.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/acceleratorProfile.ts @@ -41,7 +41,7 @@ class TolerationRow extends TableRow { class AcceleratorProfile { visit() { - cy.visitWithLogin('/acceleratorProfiles'); + cy.visit('/acceleratorProfiles'); this.wait(); } @@ -198,7 +198,7 @@ class TolerationsModal extends Modal { class CreateAcceleratorProfile extends ManageAcceleratorProfile { visit() { - cy.visitWithLogin('/acceleratorProfiles/Create'); + cy.visit('/acceleratorProfiles/Create'); this.wait(); } @@ -210,7 +210,7 @@ class CreateAcceleratorProfile extends ManageAcceleratorProfile { class EditAcceleratorProfile extends ManageAcceleratorProfile { visit(name: string) { - cy.visitWithLogin(`/acceleratorProfiles/edit/${name}`); + cy.visit(`/acceleratorProfiles/edit/${name}`); cy.testA11y(); } @@ -225,7 +225,7 @@ class EditAcceleratorProfile extends ManageAcceleratorProfile { class IdentifierAcceleratorProfile extends ManageAcceleratorProfile { visit(multiple = false) { - cy.visitWithLogin( + cy.visit( multiple ? `/acceleratorProfiles/create?identifiers=test-identifier%2Ctest-identifier2` : `/acceleratorProfiles/create?identifiers=test-identifier`, diff --git a/frontend/src/__tests__/cypress/cypress/pages/clusterSettings.ts b/frontend/src/__tests__/cypress/cypress/pages/clusterSettings.ts index 9c5a839e03..2c01046496 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/clusterSettings.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/clusterSettings.ts @@ -2,7 +2,7 @@ import { appChrome } from '~/__tests__/cypress/cypress/pages/appChrome'; class ClusterSettings { visit() { - cy.visitWithLogin('/clusterSettings'); + cy.visit('/clusterSettings'); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/clusterStorage.ts b/frontend/src/__tests__/cypress/cypress/pages/clusterStorage.ts index ca6e38055c..30a0dd36bd 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/clusterStorage.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/clusterStorage.ts @@ -89,7 +89,7 @@ class ClusterStorageModal extends Modal { class ClusterStorage { visit(projectName: string) { - cy.visitWithLogin(`/projects/${projectName}?section=cluster-storages`); + cy.visit(`/projects/${projectName}?section=cluster-storages`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/distributedWorkloads.ts b/frontend/src/__tests__/cypress/cypress/pages/distributedWorkloads.ts index 7978d9287a..a545b072f7 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/distributedWorkloads.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/distributedWorkloads.ts @@ -2,7 +2,7 @@ import { appChrome } from '~/__tests__/cypress/cypress/pages/appChrome'; class GlobalDistributedWorkloads { visit(wait = true) { - cy.visitWithLogin(`/distributedWorkloads`); + cy.visit(`/distributedWorkloads`); if (wait) { this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/enabled.ts b/frontend/src/__tests__/cypress/cypress/pages/enabled.ts index e1148b75ae..52823b26e4 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/enabled.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/enabled.ts @@ -1,6 +1,6 @@ class EnabledPage { visit() { - cy.visitWithLogin('/'); + cy.visit('/'); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/explore.ts b/frontend/src/__tests__/cypress/cypress/pages/explore.ts index 1f8f6ff521..3c70013a95 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/explore.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/explore.ts @@ -1,6 +1,6 @@ class ExplorePage { visit() { - cy.visitWithLogin('/explore'); + cy.visit('/explore'); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/modelMetrics.ts b/frontend/src/__tests__/cypress/cypress/pages/modelMetrics.ts index d6de48062f..b380fdc89c 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/modelMetrics.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/modelMetrics.ts @@ -28,7 +28,7 @@ class ModelMetricsChart extends Contextual { class ModelMetricsPerformance extends ModelMetricsGlobal { visit(project: string, model: string) { - cy.visitWithLogin(`/modelServing/${project}/metrics/${model}/performance`); + cy.visit(`/modelServing/${project}/metrics/${model}/performance`); this.wait(); } @@ -44,7 +44,7 @@ class ModelMetricsPerformance extends ModelMetricsGlobal { class ModelMetricsBias extends ModelMetricsGlobal { visit(project: string, model: string, disableA11y = false) { - cy.visitWithLogin(`/modelServing/${project}/metrics/${model}/bias`); + cy.visit(`/modelServing/${project}/metrics/${model}/bias`); // TODO: disableA11y should be removed once this PF bug is resolved: https://github.com/patternfly/patternfly-react/issues/9968 this.wait(disableA11y); @@ -85,7 +85,7 @@ class ModelMetricsBias extends ModelMetricsGlobal { class ServerMetrics extends ModelMetricsGlobal { visit(project: string, server: string) { - cy.visitWithLogin(`/projects/${project}/metrics/server/${server}`); + cy.visit(`/projects/${project}/metrics/server/${server}`); this.wait(); } @@ -97,7 +97,7 @@ class ServerMetrics extends ModelMetricsGlobal { class ModelMetricsConfigureSection { visit(project: string, model: string) { - cy.visitWithLogin(`/modelServing/${project}/metrics/${model}/configure`); + cy.visit(`/modelServing/${project}/metrics/${model}/configure`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/modelRegistry.ts b/frontend/src/__tests__/cypress/cypress/pages/modelRegistry.ts index 65640a5f1b..77d21c6cc2 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/modelRegistry.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/modelRegistry.ts @@ -2,12 +2,12 @@ import { appChrome } from '~/__tests__/cypress/cypress/pages/appChrome'; class ModelRegistry { landingPage() { - cy.visitWithLogin('/'); + cy.visit('/'); this.waitLanding(); } visit(modelRegistry?: string) { - cy.visitWithLogin(`/modelRegistry${modelRegistry}`); + cy.visit(`/modelRegistry${modelRegistry}`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/modelServing.ts b/frontend/src/__tests__/cypress/cypress/pages/modelServing.ts index 9094ad8ed4..12bf939008 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/modelServing.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/modelServing.ts @@ -6,7 +6,7 @@ import { Contextual } from './components/Contextual'; class ModelServingGlobal { visit(project?: string) { - cy.visitWithLogin(`/modelServing${project ? `/${project}` : ''}`); + cy.visit(`/modelServing${project ? `/${project}` : ''}`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/notebookImageSettings.ts b/frontend/src/__tests__/cypress/cypress/pages/notebookImageSettings.ts index 5ddf43d261..d57cae71d9 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/notebookImageSettings.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/notebookImageSettings.ts @@ -13,7 +13,7 @@ class NotebookImageSettingsTableToolbar extends TableToolbar {} class NotebookImageSettings { visit() { - cy.visitWithLogin('/notebookImages'); + cy.visit('/notebookImages'); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/pageNotFound.ts b/frontend/src/__tests__/cypress/cypress/pages/pageNotFound.ts index 9498936a2a..329b7473b0 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pageNotFound.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pageNotFound.ts @@ -1,6 +1,6 @@ class PageNotFound { visit(name: string) { - cy.visitWithLogin(`/${name}`); + cy.visit(`/${name}`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/pipelines/compareRuns.ts b/frontend/src/__tests__/cypress/cypress/pages/pipelines/compareRuns.ts index 735ce616c5..92d44a452d 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pipelines/compareRuns.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pipelines/compareRuns.ts @@ -1,8 +1,6 @@ class CompareRunsGlobal { visit(projectName: string, experimentId: string, runIds: string[] = []) { - cy.visitWithLogin( - `/experiments/${projectName}/${experimentId}/compareRuns?runs=${runIds.join(',')}`, - ); + cy.visit(`/experiments/${projectName}/${experimentId}/compareRuns?runs=${runIds.join(',')}`); } findInvalidRunsError() { diff --git a/frontend/src/__tests__/cypress/cypress/pages/pipelines/experiments.ts b/frontend/src/__tests__/cypress/cypress/pages/pipelines/experiments.ts index 7e7cc773a6..723bdf3526 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pipelines/experiments.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pipelines/experiments.ts @@ -5,7 +5,7 @@ import { TableRow } from '~/__tests__/cypress/cypress/pages/components/table'; class ExperimentsTabs { visit(namespace?: string, tab?: string) { - cy.visitWithLogin(`/experiments${namespace ? `/${namespace}` : ''}${tab ? `/${tab}` : ''}`); + cy.visit(`/experiments${namespace ? `/${namespace}` : ''}${tab ? `/${tab}` : ''}`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/pipelines/manageRuns.ts b/frontend/src/__tests__/cypress/cypress/pages/pipelines/manageRuns.ts index cd9cbf92ef..e069d79137 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pipelines/manageRuns.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pipelines/manageRuns.ts @@ -2,7 +2,7 @@ import { TableRow } from '~/__tests__/cypress/cypress/pages/components/table'; class ManageRunsPage { visit(experimentId: string, projectName: string, runIds: string[]) { - cy.visitWithLogin( + cy.visit( `/experiments/${projectName}/${experimentId}/compareRuns/add?runs=${runIds.join(',')}`, ); this.wait(); diff --git a/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelineRunsGlobal.ts b/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelineRunsGlobal.ts index eee4a23df7..1eb390d88d 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelineRunsGlobal.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelineRunsGlobal.ts @@ -3,7 +3,7 @@ import { DeleteModal } from '~/__tests__/cypress/cypress/pages/components/Delete class PipelineRunsGlobal { visit(projectName: string, runType?: 'active' | 'archived' | 'scheduled') { - cy.visitWithLogin( + cy.visit( `/pipelineRuns/${projectName}${ runType ? `?${PipelineRunSearchParam.RunType}=${runType}` : '' }`, diff --git a/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelinesGlobal.ts b/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelinesGlobal.ts index 893d8f5a23..9b51b085b1 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelinesGlobal.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pipelines/pipelinesGlobal.ts @@ -2,7 +2,7 @@ import { DeleteModal } from '~/__tests__/cypress/cypress/pages/components/Delete class PipelinesGlobal { visit(projectName: string) { - cy.visitWithLogin(`/pipelines/${projectName}`); + cy.visit(`/pipelines/${projectName}`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/pipelines/topology.ts b/frontend/src/__tests__/cypress/cypress/pages/pipelines/topology.ts index 7964fffc07..6a26612456 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/pipelines/topology.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/pipelines/topology.ts @@ -2,7 +2,7 @@ import { Contextual } from '~/__tests__/cypress/cypress/pages/components/Context class PipelinesTopology { visit(namespace: string, pipelineId: string, pipelineVersionId: string) { - cy.visitWithLogin(`/pipelines/${namespace}/pipeline/view/${pipelineId}/${pipelineVersionId}`); + cy.visit(`/pipelines/${namespace}/pipeline/view/${pipelineId}/${pipelineVersionId}`); this.wait(); } @@ -71,7 +71,7 @@ class DetailsItem extends Contextual { class PipelineDetails extends PipelinesTopology { visit(namespace: string, pipelineId: string, pipelineVersionId: string) { - cy.visitWithLogin(`/pipelines/${namespace}/pipeline/view/${pipelineId}/${pipelineVersionId}`); + cy.visit(`/pipelines/${namespace}/pipeline/view/${pipelineId}/${pipelineVersionId}`); this.wait(); } @@ -114,7 +114,7 @@ class PipelineDetails extends PipelinesTopology { class PipelineRunJobDetails extends RunDetails { visit(namespace: string, pipelineId: string) { - cy.visitWithLogin(`/pipelineRuns/${namespace}/pipelineRunJob/view/${pipelineId}`); + cy.visit(`/pipelineRuns/${namespace}/pipelineRunJob/view/${pipelineId}`); this.wait(); } @@ -129,7 +129,7 @@ class PipelineRunJobDetails extends RunDetails { class PipelineRunDetails extends RunDetails { visit(namespace: string, pipelineId: string) { - cy.visitWithLogin(`/pipelineRuns/${namespace}/pipelineRun/view/${pipelineId}`); + cy.visit(`/pipelineRuns/${namespace}/pipelineRun/view/${pipelineId}`); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/projects.ts b/frontend/src/__tests__/cypress/cypress/pages/projects.ts index 3bfbb2f3aa..7fba8bb714 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/projects.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/projects.ts @@ -21,7 +21,7 @@ class ProjectRow extends TableRow { class ProjectListPage { visit() { - cy.visitWithLogin('/projects'); + cy.visit('/projects'); this.wait(); } diff --git a/frontend/src/__tests__/cypress/cypress/pages/servingRuntimes.ts b/frontend/src/__tests__/cypress/cypress/pages/servingRuntimes.ts index 5079e2294b..673390e89c 100644 --- a/frontend/src/__tests__/cypress/cypress/pages/servingRuntimes.ts +++ b/frontend/src/__tests__/cypress/cypress/pages/servingRuntimes.ts @@ -33,7 +33,7 @@ class ServingRuntimeRow { class ServingRuntimes { visit() { - cy.visitWithLogin('/servingRuntimes'); + cy.visit('/servingRuntimes'); this.wait(); }