-
Notifications
You must be signed in to change notification settings - Fork 81
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
Fix: Dashboard automation errors for 2.6 pt1 #1132
Fix: Dashboard automation errors for 2.6 pt1 #1132
Conversation
Robot Results
|
FOR ${admin_group} IN @{admin_groups} | ||
${present}= Run Keyword And Return Status Element Should Be Visible //*[@class="pf-c-select__menu-item pf-m-selected" and contains(text(), "${admin_group}")] | ||
${present}= Run Keyword And Return Status Element Should Be Visible //button[@role="option" and text()="${admin_group}" and @aria-selected="true"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
FOR ${user_group} IN @{user_groups} | ||
${present}= Run Keyword And Return Status | ||
... Element Should Be Visible //*[@class="pf-c-select__menu-item pf-m-selected" and contains(text(), "${user_group}")] | ||
... Element Should Be Visible //button[@role="option" and text()="${user_group}" and @aria-selected="true"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
|
||
FOR ${user_group} IN @{user_groups} | ||
${present}= Run Keyword And Return Status | ||
... Element Should Be Visible //*[@class="pf-c-select__menu-item pf-m-selected" and contains(text(), "${user_group}")] | ||
... Element Should Be Visible //button[@role="option" and text()="${user_group}" and @aria-selected="true"] |
Check warning
Code scanning / Robocop
Continuation marker should be aligned with starting row Warning test
@@ -41,7 +41,7 @@ | |||
[Arguments] ${expected_number} | |||
${version_check}= Is RHODS Version Greater Or Equal Than 1.21.0 | |||
IF ${version_check}==True | |||
${versioned_title_xp}= Set Variable //div[@class="pf-c-card__title"]/div[@class="pf-c-content"] | |||
${versioned_title_xp}= Set Variable //div[contains(@class, "-c-card__title")]//div[contains(@class, "-c-content")] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
…ed and Notify the User
…nnect It To Workbenches
@@ -122,19 +122,13 @@ | |||
Log ${pair_idx}-${key}-${value} | |||
Run Keyword And Continue On Failure Wait Until Page Contains Element | |||
... xpath=//input[@aria-label="key of item ${pair_idx}"] | |||
Input Text ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${idx}]//input[@aria-label="key of item ${pair_idx}"] | |||
Input Text ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${idx}]//input[@aria-label="key of item ${pair_idx}"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
... ${key} | ||
Input Text ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${idx}]//input[@aria-label="value of item ${pair_idx}"] | ||
Input Text ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${idx}]//input[@aria-label="value of item ${pair_idx}"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
ELSE IF "${add_key_value_text}" == "Add another variable" | ||
Execute Javascript document.getElementsByClassName("pf-c-drawer__content")[1].scrollBy(0,700) # robocop: disable | ||
END | ||
Click Element ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${idx}]//button[text()="${add_key_value_text}"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
@@ -168,13 +162,13 @@ | |||
[Documentation] Selects the type of environment variable in the workbench creation page: Secret vs Config Map | |||
[Arguments] ${k8s_type} ${input_type} ${variable_index} | |||
Run Keyword And Continue On Failure Wait Until Page Contains Element | |||
... ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${variable_index}]//div[@class="pf-l-stack__item"]/div[contains(@class,"pf-c-select")]/button | |||
Click Element ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${variable_index}]//div[contains(@class,"pf-c-select")]/button | |||
... ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${variable_index}]//button[@aria-label="Options menu"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
... ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${variable_index}]//div[@class="pf-l-stack__item"]/div[contains(@class,"pf-c-select")]/button | ||
Click Element ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${variable_index}]//div[contains(@class,"pf-c-select")]/button | ||
... ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${variable_index}]//button[@aria-label="Options menu"] | ||
Click Element ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${variable_index}]//button[@aria-label="Options menu"] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
Wait Until Page Contains Element xpath=//ul[@role="listbox"]/li/button[text()="${k8s_type}"] | ||
Click Element xpath=//ul[@role="listbox"]/li/button[text()="${k8s_type}"] | ||
Run Keyword And Continue On Failure | ||
... Wait Until Page Contains Element ${ENV_VARIABLES_SECTION_XP}//button[div/span[text()="Select one"]] | ||
Click Element ${ENV_VARIABLES_SECTION_XP}/div[@class="pf-l-split"][${variable_index}]//button[div/span[text()="Select one"]] | ||
Click Element ${ENV_VARIABLES_SECTION_XP}/div[contains(@class, "-l-split")][${variable_index}]//button[div/span[text()="Select one"]] |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboardResources.resource
Outdated
Show resolved
Hide resolved
ods_ci/tests/Resources/Page/ODH/ODHDashboard/ODHDashboardAPI.resource
Outdated
Show resolved
Hide resolved
IF "${add_key_value_text}" == "Add another key / value pair" | ||
Execute Javascript document.getElementsByClassName("pf-c-drawer__content")[1].scrollBy(0,500) # robocop: disable | ||
ELSE IF "${add_key_value_text}" == "Add another variable" | ||
Execute Javascript document.getElementsByClassName("pf-c-drawer__content")[1].scrollBy(0,700) # robocop: disable | ||
END |
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.
I think this might be still needed in case of many env variables, try running ODS-2595 for example
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.
I'm not just deleting it, I'm navigating using the left bar menu, instead of usin js scripts
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.
I see that and it's correct, but it might not be enough when the variables are many. Pls try with ODS-2595
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.
Added "do not merge" label until everything related with this is properly tested and or fixed
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.
Just using the navigation when creating multiple env vars does not work properly.
I've restored the script and modified it in order to make it work with the new UI
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.
@bdattoma Can you please check the last changes? If you are OK with the new script I will merge this PR
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.
I still see the script deleted
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.
🤦 my bad....
@bdattoma can you re review?
Test execution results:
rhods-smoke/4422/ |
6a51b40
|
Test fixed:
ODS-1402: Verify Quick Starts Work When All Steps Are Skipped
ODS-1305: Verify External Links In Quick Starts Are Not Broken
ODS-489: Verify Filters Are Working On Resources Page
ODS-1661: Verify RHODS Accept Multiple Admin Groups And CRD Gets Updates
ODS-1680: Verify Unauthorized User Is Not Able To Spawn Jupyter Notebook
ODS-1686: Verify Automatically Detects a Group Selected Is Removed and Notify the User
ODS-1825: Verify User Can Create A S3 Data Connection And Connect It To Workbenches
ODS-1864: Verify User Can Create A Workbench With Environment Variables
ODS-1868: Verify User Can Access Only Its Owned Projects
ODS-2202: Verify User Can Modify And Revoke Access To DS Projects From Other Users
ODS-2208: Verify User Can Assign Access Permissions To User Groups