-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
45 additions
and
53 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
2 changes: 1 addition & 1 deletion
2
libs/ui-lib-tests/cypress/integration/use-cases/create-cluster/with-mce-operator.cy.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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
libs/ui-lib-tests/cypress/views/forms/Storage/StorageForm.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,18 @@ | ||
import { Alert } from '../../reusableComponents/Alert'; | ||
|
||
export class StorageForm { | ||
static readonly alias = `@${StorageForm.name}`; | ||
static readonly selector = '.pf-c-wizard__main-body'; | ||
|
||
constructor() { | ||
cy.findWithinOrGet(StorageForm.selector).as(StorageForm.name); | ||
} | ||
|
||
get diskLimitationAlert() { | ||
return new Alert(StorageForm.alias, '[data-testid="diskLimitationsAlert"]'); | ||
} | ||
|
||
get diskFormattingAlert() { | ||
return new Alert(StorageForm.alias, '[data-testid="alert-format-bootable-disks"]'); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
libs/ui-lib-tests/cypress/views/reusableComponents/Alert.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,20 @@ | ||
export class Alert { | ||
static readonly alias = `@${Alert.name}`; | ||
static readonly selector = '.pf-c-alert'; | ||
|
||
constructor(parentAlias: string, id: string = Alert.selector) { | ||
cy.findWithinOrGet(id, parentAlias).as(Alert.name); | ||
} | ||
|
||
get body() { | ||
return cy.get(Alert.alias); | ||
} | ||
|
||
get title() { | ||
return this.body.find('.pf-c-alert__title'); | ||
} | ||
|
||
get description() { | ||
return this.body.find('.pf-c-alert__description'); | ||
} | ||
} |