forked from opendatahub-io/odh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cypress-RHOAIENG-17169/RHOAIENG-17174
- Loading branch information
Showing
70 changed files
with
2,524 additions
and
428 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# External Redirects | ||
|
||
The supported external redirect paths in the application. | ||
|
||
## Supported Redirects | ||
|
||
### Pipeline SDK Redirects | ||
|
||
Redirecting from Pipeline SDK output URLs to internal dashboard routes. | ||
|
||
#### Supported URL Patterns | ||
|
||
1. **Experiment Details** | ||
``` | ||
/external/pipelinesSdk/{namespace}/#/experiments/details/{experimentId} | ||
``` | ||
Redirects to the internal experiment runs route for the specified experiment. | ||
|
||
2. **Run Details** | ||
``` | ||
/external/pipelinesSdk/{namespace}/#/runs/details/{runId} | ||
``` | ||
Redirects to the internal pipeline run details route for the specified run. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
approvers: | ||
- antowaddle |
32 changes: 32 additions & 0 deletions
32
frontend/src/__tests__/cypress/cypress/pages/externalRedirect.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class ExternalRedirect { | ||
visit(path: string) { | ||
cy.visitWithLogin(path); | ||
this.wait(); | ||
} | ||
|
||
private wait() { | ||
cy.findByTestId('redirect-error').should('not.exist'); | ||
cy.testA11y(); | ||
} | ||
|
||
findErrorState() { | ||
return cy.findByTestId('redirect-error'); | ||
} | ||
|
||
findHomeButton() { | ||
return cy.findByRole('button', { name: 'Go to Home' }); | ||
} | ||
} | ||
|
||
class PipelinesSdkRedirect { | ||
findPipelinesButton() { | ||
return cy.findByRole('button', { name: 'Go to Pipelines' }); | ||
} | ||
|
||
findExperimentsButton() { | ||
return cy.findByRole('button', { name: 'Go to Experiments' }); | ||
} | ||
} | ||
|
||
export const externalRedirect = new ExternalRedirect(); | ||
export const pipelinesSdkRedirect = new PipelinesSdkRedirect(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.