Skip to content

Commit

Permalink
Resolve cypress failures
Browse files Browse the repository at this point in the history
Resolve cypress failures

Resolve cypress failures
  • Loading branch information
thatblindgeye committed Dec 16, 2024
1 parent 69d41f4 commit ff283b9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ModelVersionDeployModal extends Modal {

selectProjectByName(name: string) {
this.findProjectSelector().click();
this.find().findByRole('option', { name, timeout: 5000 }).click();
this.find().document().findByRole('option', { name, timeout: 5000 }).click();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export class CreateRunPage {

findPipelineVersionByName(name: string): Cypress.Chainable<JQuery<HTMLTableCellElement>> {
return this.find()
.document()
.findByTestId('pipeline-version-selector-table-list')
.find('td')
.contains(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class PipelineImportModal extends Modal {
this.pipelineSelector
.findToggleButton()
.click()
.parents()
.document()
.findByTestId('pipeline-selector-table-list')
.find('tr')
.contains(name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class PipelineDetails extends PipelinesTopology {
this.pipelineVersionSelector
.findToggleButton()
.click()
.parents()
.document()
.findByTestId('pipeline-version-selector-table-list')
.find('td')
.contains(name)
Expand Down

0 comments on commit ff283b9

Please sign in to comment.