-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dashboard automation support #4249
base: main
Are you sure you want to change the base?
Add dashboard automation support #4249
Conversation
2f9dd87
to
d9ef3e0
Compare
ceph/UI/dashboard.py
Outdated
@@ -0,0 +1,66 @@ | |||
from selenium.common.exceptions import TimeoutException, WebDriverException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revisit the imports, I can see same imports in different files. See if those can be added to the base class or file. Please revisit this logic
ceph/UI/dashboard.py
Outdated
|
||
|
||
class Dashboard: | ||
def __init__(self, driver): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of driver, accept the browser type
ceph/UI/browser.py
Outdated
f"Unsupported browser type: {browser_type}. Supported types are 'chrome' and 'firefox'." | ||
) | ||
|
||
def open(self, url: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as open and close is already part of dashboard, please remove it from here
ceph/UI/dashboard.py
Outdated
except TimeoutException: | ||
return False | ||
|
||
def click(self, element_id: str, timeout: int = 10): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add support to handle different types of element identifiers. currenlty its only using .byID, we need support for others like, name ,class, xpath, css etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NamrathaRao24 Please have a look at the changes requested.
d9ef3e0
to
e3fdf43
Compare
Signed-off-by: nrao <[email protected]>
This Pull request has been automatically marked as STALE due to inactivity for 15 days and will be CLOSED on further inactivity on the PR for another 15 days. |
Signed-off-by: nrao <[email protected]>
e3fdf43
to
bf1cd87
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I am unable to find |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MohitBis, NamrathaRao24, pranavprakash20 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PRs under review, and the following points need to be addressed:
|
Description
Please include Automation development guidelines. Source of Test case - New Feature/Regression Test/Close loop of customer BZs
click to expand checklist