-
Notifications
You must be signed in to change notification settings - Fork 500
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
base: staging
Are you sure you want to change the base?
Conversation
3c8288f
to
eddc051
Compare
eddc051
to
20b63f3
Compare
@@ -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 |
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 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" |
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.
Could we instead check the href of the logo image?
def jquery? | ||
return false | ||
@browser.execute_script("return (typeof jQuery !== 'undefined');") | ||
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.
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" |
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.
Could this be a check for the href instead? I'd like to avoid actually going to the marketing sites if possible.
This reverts commit 20b63f3.
Failed tests:
Links