-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redesign of bucket page, init changes
Signed-off-by: Daniel Osypenko <[email protected]>
- Loading branch information
1 parent
f2e6061
commit de1d0c6
Showing
8 changed files
with
111 additions
and
37 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
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,47 @@ | ||
from ocs_ci.ocs.ui.base_ui import BaseUI | ||
from ocs_ci.ocs.ui.helpers_ui import format_locator | ||
|
||
|
||
class ConfirmDialog(BaseUI): | ||
""" | ||
Page object for Confirm Dialog | ||
""" | ||
|
||
def dialog_confirm_delete(self, resource_name): | ||
""" | ||
Action to confirm delete resource | ||
""" | ||
# placeholder for the confirm dialog remains even when text input contains any text | ||
# remove the text if exists, for more complex scenarios | ||
self.dialog_type_resource_name(resource_name) | ||
self.dialog_confirm() | ||
|
||
def dialog_confirm(self): | ||
""" | ||
Clicks on Delete button | ||
""" | ||
self.do_click(self.generic_locators["confirm_delete_resource"]) | ||
|
||
def dialog_cancel(self): | ||
""" | ||
Clicks on Cancel button | ||
""" | ||
self.do_click(self.generic_locators["cancel_delete_resource"]) | ||
|
||
def dialog_type_resource_name(self, resource_name): | ||
""" | ||
Type the resource name in the dialog | ||
""" | ||
self.clear_input_gradually( | ||
format_locator(self.generic_locators["confirm_dilog_input"], resource_name) | ||
) | ||
self.do_send_keys( | ||
format_locator(self.generic_locators["confirm_dilog_input"], resource_name), | ||
resource_name, | ||
) | ||
|
||
def dialog_close(self): | ||
""" | ||
Close the dialog | ||
""" | ||
self.do_click(self.generic_locators["close_dialog"]) |
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