diff --git a/plugin/cypress/support/commands.ts b/plugin/cypress/support/commands.ts index 2cc6d5a6..c734b876 100644 --- a/plugin/cypress/support/commands.ts +++ b/plugin/cypress/support/commands.ts @@ -165,10 +165,10 @@ Cypress.Commands.overwrite('visit', (originalFn, visitUrl) => { visitUrl.url = `/k8s/ns/${namespace}${istioUrl}/ossmconsole${webParams}`; } } else { - if (targetPage === 'graph') { + if (targetPage === 'graphpf') { visitUrl.url = visitUrl.url - .replace('/console/graph/namespaces', '/ossmconsole/graph') - .replace('/console/graph/node/namespaces', '/ossmconsole/graph/ns'); + .replace('/console/graphpf/namespaces', '/ossmconsole/graph') + .replace('/console/graphpf/node/namespaces', '/ossmconsole/graph/ns'); } else if (targetPage === 'istio') { visitUrl.url = '/k8s/all-namespaces/istio'; } else {