-
Notifications
You must be signed in to change notification settings - Fork 266
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
Yonas Berhe
authored and
Yonas Berhe
committed
Jan 22, 2025
1 parent
6e35eca
commit e2c87dc
Showing
8 changed files
with
246 additions
and
18 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 @@ | ||
import ComponentPo from '@/cypress/e2e/po/components/component.po'; | ||
|
||
export class GrowlManagerPo extends ComponentPo { | ||
constructor() { | ||
super('.growl-container'); | ||
} | ||
|
||
growlList() { | ||
return this.self().find('.growl-list'); | ||
} | ||
|
||
growlMessage() { | ||
return this.self().find('.growl-message'); | ||
} | ||
|
||
dismissWarning() { | ||
return this.self().find('.icon-close').click(); | ||
} | ||
|
||
dismissAllWarnings() { | ||
return this.self().find('button.btn').contains('Clear All Notifications').click(); | ||
} | ||
} |
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,13 @@ | ||
import ComponentPo from '@/cypress/e2e/po/components/component.po'; | ||
|
||
export default class KeyValuePo extends ComponentPo { | ||
addButton(label: string) { | ||
return this.self().find('[data-testid="add_row_item_button"]').contains(label); | ||
} | ||
|
||
setKeyValueAtIndex(label: string, key: string, value: string, index: number, selector: string) { | ||
this.addButton(label).click(); | ||
this.self().find(`${ selector } [data-testid="input-kv-item-key-${ index }"]`).type(key); | ||
this.self().find(`${ selector } [data-testid="kv-item-value-${ index }"]`).type(value); | ||
} | ||
} |
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
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