Skip to content

CMS-840: Update home page ui tests #66625

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

Open
wants to merge 4 commits into
base: staging
Choose a base branch
from

Conversation

@artem-vavilov artem-vavilov requested a review from a team June 19, 2025 00:09
@artem-vavilov artem-vavilov force-pushed the CMS-840/home-page-ui-tests branch from 3c8288f to eddc051 Compare June 19, 2025 00:22
@artem-vavilov artem-vavilov force-pushed the CMS-840/home-page-ui-tests branch from eddc051 to 20b63f3 Compare June 19, 2025 01:05
@@ -15,6 +15,7 @@ Scenario: Create Dropdown does NOT show on level pages
@pegasus_content
Scenario: Signed Out - Correct Create Links
Given I am on "http://code.org"
And I dismiss the language selector
Copy link
Member

Choose a reason for hiding this comment

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

I recommend we use studio.code.org instead of home page instead (this test won't work there as none of these elements exist)

@@ -63,7 +63,7 @@ Feature: Lab share page logo
And I navigate to the last shared URL
And element "div:contains('STUDIO')" does not exist
And I press the first "#logo-img img" element to load a new page
And check that I am on "http://code.org/"
And check that I am on "http://code.org/en-US"
Copy link
Member

Choose a reason for hiding this comment

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

Could we instead check the href of the logo image?

Comment on lines 125 to 129
def jquery?
return false
@browser.execute_script("return (typeof jQuery !== 'undefined');")
end

Copy link
Member

Choose a reason for hiding this comment

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

The jquery detection can probably be removed (in general I think the dashboard ui tests shouldn't enter the new marketing sites)

@@ -8,7 +8,7 @@ Feature: GDPR Dialog - data transfer agreement
And I am on "http://studio.code.org/home"
When element ".ui-test-gdpr-dialog" is visible
Then I click selector ".ui-test-gdpr-dialog-logout"
Then I wait until I am on "http://code.org/"
Then I wait until I am on "http://code.org/en-US"
Copy link
Member

Choose a reason for hiding this comment

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

Could this be a check for the href instead? I'd like to avoid actually going to the marketing sites if possible.

@artem-vavilov artem-vavilov changed the title CMS-840: Fix home page ui tests CMS-840: Update home page ui tests Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants