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: new home page issues #1428

Draft
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

FedeAlonso
Copy link
Contributor

@FedeAlonso FedeAlonso commented May 8, 2024

In the last nightly (autotrigger-smoke/149) we had 37 failed test cases
Afte running the smoke from this branch (/rhods-smoke/5374), we have just 2 failed test cases. None related with the new landing page.
image

This PR is just a fix in order to enable again the nightlies. Maybe we should rethink the way we evaluate where is the user navigating, and if page by default should be "Enabled"

Copy link
Contributor

github-actions bot commented May 8, 2024

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
454 0 0 454 100

# Detect if we are ein the new (2.10) landing page instead in "Enable"
${first_header}= Set Variable (//h1)[1]
Wait Until Element is Visible xpath:${first_header}
${h1_text} Get Text xpath:${first_header}

Check warning

Code scanning / Robocop

The assignment sign is not consistent within the file. Expected '{{ expected_sign }}' but got '{{ actual_sign }}' instead Warning test

The assignment sign is not consistent within the file. Expected '=' but got '' instead
@FedeAlonso FedeAlonso requested a review from jgarciao May 9, 2024 08:38
@FedeAlonso FedeAlonso marked this pull request as ready for review May 9, 2024 08:42
@FedeAlonso FedeAlonso requested review from manosnoam, jstourac, bdattoma, lugi0, ConorOM1, asanzgom and jgarciao and removed request for jgarciao May 9, 2024 08:42
@FedeAlonso FedeAlonso added the verified This PR has been tested with Jenkins label May 9, 2024
@FedeAlonso FedeAlonso added the enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) label May 9, 2024
@ConorOM1 ConorOM1 removed their request for review May 9, 2024 08:45
asanzgom
asanzgom previously approved these changes May 9, 2024
[Documentation] Compare the h1 headers of the landing page with the expected ones
Wait Until Element Is Visible xpath:(//h1)[1]
${h1_elements}= Get WebElements xpath://h1
${h1_texts}= Create List

Check notice

Code scanning / Robocop

{{ create_keyword }} can be replaced with VAR Note test

Create List can be replaced with VAR
Wait Until RHODS Dashboard ${dashboard_app} Is Visible
# Ideally the timeout would be an arg but Robot does not allow "normal" and "embedded" arguments
# Setting timeout to 30seconds since anything beyond that should be flagged as a UI bug
Wait Until Element is Visible xpath://div[contains(@class,'gallery')]/div//div[@class="pf-v5-c-card__title"]//*[text()="${dashboard_app}"]
Wait Until Element Is Visible xpath://div[contains(@class,'gallery')]/div//div[@class="pf-v5-c-card__title"]//*[text()="${dashboard_app}"]

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning test

Line is too long (143/120)
@FedeAlonso FedeAlonso requested a review from aloganat May 9, 2024 09:11
manosnoam
manosnoam previously approved these changes May 9, 2024
Copy link
Contributor

@manosnoam manosnoam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just please run with latest 2.10 (landing page should have been removed)

Copy link

sonarqubecloud bot commented May 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@FedeAlonso FedeAlonso requested a review from diegolovison May 9, 2024 09:51
@FedeAlonso FedeAlonso marked this pull request as draft May 9, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants