Skip to content
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

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e842585
fix test ODS-1402: Verify Quick Starts Work When All Steps Are Skipped
FedeAlonso Jan 18, 2024
72b7379
fix test ODS-1305: Verify External Links In Quick Starts Are Not Broken
FedeAlonso Jan 18, 2024
7f1174a
fix test ODS-489: Verify Filters Are Working On Resources Page
FedeAlonso Jan 19, 2024
7e1de84
test ODS-1661: Verify RHODS Accept Multiple Admin Groups And CRD Gets…
FedeAlonso Jan 19, 2024
d5b6700
delete pf version from paths and validate ODS-1680
FedeAlonso Jan 19, 2024
8fb32d2
Merge branch 'master' of github.com:red-hat-data-services/ods-ci into…
FedeAlonso Jan 19, 2024
31cc673
test ODS-1686: Verify Automatically Detects a Group Selected Is Remov…
FedeAlonso Jan 19, 2024
9055c47
add logs to POST Dashboard API requests
FedeAlonso Jan 19, 2024
0300542
fix test ODS-1825: Verify User Can Create A S3 Data Connection And Co…
FedeAlonso Jan 19, 2024
bed81ef
fix test ODS-1864: Verify User Can Create A Workbench With Environmen…
FedeAlonso Jan 19, 2024
2d22a5a
Merge branch 'master' into fix/dashboard_tests_2_6
FedeAlonso Jan 19, 2024
7e8cb1e
Merge branch 'master' into fix/dashboard_tests_2_6
FedeAlonso Jan 22, 2024
bd87ff2
fix test ODS-2202: Verify User Can Access Only Its Owned Projects
FedeAlonso Jan 22, 2024
fad1461
Merge branch 'master' into fix/dashboard_tests_2_6
FedeAlonso Jan 23, 2024
173864a
Merge branch 'master' into fix/dashboard_tests_2_6
FedeAlonso Jan 23, 2024
3c149b5
close all browsers befor ODS-1868
FedeAlonso Jan 23, 2024
941767b
PR fixes
FedeAlonso Jan 23, 2024
197ee51
Merge branch 'master' into fix/dashboard_tests_2_6
FedeAlonso Jan 23, 2024
4fd3e59
Merge branch 'master' of github.com:red-hat-data-services/ods-ci into…
FedeAlonso Jan 23, 2024
ad4c545
Fix script issue
FedeAlonso Jan 24, 2024
6a51b40
Fix script issue
FedeAlonso Jan 24, 2024
2e4a115
Merge branch 'master' into fix/dashboard_tests_2_6
FedeAlonso Jan 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Open QuickStart Element in Resource Section By Name
[Documentation] It opens the element by enabling Quick Start filter in Resources Section of ODS Dashboard.
[Arguments] ${element}
Select Checkbox //input[@id="quickstart--check-box"]
Wait Until Page Contains Element ${RES_CARDS_XP}\[@id="${element}"]
Click Link ${RES_CARDS_XP}\[@id="${element}"]//a
Wait Until Page Contains ELement //div[@class="pf-c-drawer__panel-main"] 5
Wait Until Page Contains Element xpath=//div[@id="${element}"]//a[text()="Open"]
FedeAlonso marked this conversation as resolved.
Show resolved Hide resolved
Click Link xpath=//div[@id="${element}"]//a[text()="Open"]
Wait Until Page Contains ELement //div[contains(@class, "-c-drawer__panel-main")] 5

Star QuickStart Tour
Click Button //button[@data-test="Start button"]
Expand All @@ -33,19 +33,19 @@ Get The Count Of QuickStart Steps

Link Text On QuickStart Card Should Be
[Arguments] ${element} ${exp_link_text}
Element Text Should Be ${RES_CARDS_XP}\[@id="${element}"]//a ${exp_link_text}
Element Text Should Be //div[@id="${element}"]//a ${exp_link_text}

QuickStart Status Should Be
[Documentation] Verifies the label on the item card which shows the progress and closes the sidebar.
[Arguments] ${element} ${progress_string}
IF '${progress_string}'=='In Progress'
Element Text Should Be ${RES_CARDS_XP}\[@id="${element}"]//span[@class="pf-c-label pf-m-purple pf-m-outline"]
Element Text Should Be //div[@id="${element}"]//span[contains(@class, "-c-label pf-m-purple pf-m-outline")]
... In Progress
ELSE IF '${progress_string}'=='Complete'
Element Text Should Be ${RES_CARDS_XP}\[@id="${element}"]//span[@class="pf-c-label pf-m-green pf-m-outline"]
Element Text Should Be //div[@id="${element}"]//span[@class="pf-c-label pf-m-green pf-m-outline"]
... Complete
ELSE IF '${progress_string}'=='Failed'
Element Text Should Be ${RES_CARDS_XP}\[@id="${element}"]//span[@class="pf-c-label pf-m-red pf-m-outline"]
Element Text Should Be //div[@id="${element}"]//span[@class="pf-c-label pf-m-red pf-m-outline"]
... Failed
END

Expand Down Expand Up @@ -221,7 +221,7 @@ Verify Links Are Not Broken For Each QuickStart
${quickStartCount}= Get Length ${quickStartElements}
${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-content"]
${versioned_title_xp}= Set Variable //div[contains(@class, "-c-content")]
ELSE
${versioned_title_xp}= Set Variable //div[@class="pf-c-card__title odh-card__doc-title"]
END
Expand All @@ -232,7 +232,7 @@ Verify Links Are Not Broken For Each QuickStart
${Title}= Split To Lines ${Title}
Log ${Title[${0}]} console=yes
Click Element ${quickStartElements[${counter}]}
Wait Until Element Is Visible //button[@class='pf-c-wizard__nav-link']
Wait Until Element Is Visible //button[contains(@class, "-c-wizard__nav-link")]
External URLs Should Not Be Broken
END

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

*** Variables ***
${TOLERATION_CHECKBOX}= //input[@id="tolerations-enabled-checkbox"]
${GROUP_BTN_XP}= (//*[@class="pf-c-chip-group"])//*[@class="pf-c-chip__text" ]//following-sibling::button[1]
${GROUP_BTN_XP}= //button[@data-ouia-component-id="Remove"]
${SINGLE_MODE_SERVING_CHECK_BOX}= //input[@id="single-model-serving-platform-enabled-checkbox"]
${MULTI_MODE_SERVING_CHECK_BOX}= //input[@id="multi-model-serving-platform-enabled-checkbox"]
${CUSTOM_EMPTY_GROUP}= empty-group
Expand All @@ -16,25 +16,25 @@
Add OpenShift Groups To Data Science Administrators
[Documentation] Add OpenShift Groups to Data Science administrators From RHODS Dashboard
[Arguments] @{admin_groups}
Click Button (//button[@class="pf-c-button pf-c-select__toggle-button pf-m-plain"])[${1}]
Click Button (//button[@aria-label="Options menu"])[${1}]
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

Line is too long (165/120)
IF ${present} != True
Click Button //*[@class="pf-c-select__menu-item"and contains(text(), "${admin_group}")]
Click Button //button[@role="option" and text()="${admin_group}"]
END
END
Press Keys None ESC

Add OpenShift Groups To Data Science User Groups
[Documentation] Add OpenShift Groups to Data Science User From RHODS Dashboard
[Arguments] @{user_groups}
Click Button (//button[@class="pf-c-button pf-c-select__toggle-button pf-m-plain"])[${2}]
Click Button (//button[@aria-label="Options menu"])[${2}]

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

Line is too long (125/120)

Check warning

Code scanning / Robocop

Continuation marker should be aligned with starting row Warning test

Continuation marker should be aligned with starting row
IF ${present} != True
Click Element //*[@class="pf-c-select__menu-item"and contains(text(), "${user_group}")]
Click Element //button[@role="option" and text()="${user_group}"]
END
END
Press Keys None ESC
Expand All @@ -48,7 +48,7 @@
${authorization_required} = Is Service Account Authorization Required
IF ${authorization_required} Authorize jupyterhub service account
Menu.Navigate To Page Settings User management
Wait Until Element Is Visible //*[@class="pf-c-button pf-c-select__toggle-button pf-m-plain"] timeout=20
Wait Until Element Is Visible //button[@aria-label="Options menu"] timeout=20

Remove OpenShift Groups From Data Science User Groups
[Documentation] Remove OpenShift Groups From Data Science User Groups From Dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Line is too long (128/120)
ELSE
${versioned_title_xp}= Set Variable //div[@class="pf-c-card__title odh-card__doc-title"]
END
Expand Down
Loading