-
Notifications
You must be signed in to change notification settings - Fork 2
osweb qa tests to complete existing rex tests #2570
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
Conversation
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.
2 comments, the rest looks fine
|
||
assert home.footer_section_bottom_is_visible | ||
|
||
assert "Rice University" and "license" in await home.footer_section_bottom_is_visible.inner_text() |
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 in
operator has higher precedence than and
so this is equivalent to assert "Rice University" and ("license" in await home.footer_section_bottom_is_visible.inner_text())
so the "Rice University" part is not testing anything. So you either need 2 different asserts or use in
twice, like: "Rice University" in ... and "license" in ...
await home.click_learn_about_openstax_link() | ||
|
||
assert f"{base_url}/about" == chrome_page.url | ||
assert "Who we are" and "What we do" and "Where we're going" in await home.about_page.inner_text() |
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.
Same deal here
@Dantemss The fails are due to a "Make a gift" overlay appearing on staging.openstax... When rerunning them and getting rid of the overlay, they pass. |
@Dantemss I think this still waits for your re-approval... |
@Dantemss fixed the issues. Thanks for pointing them out |
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.
Is there a reason some of them use async/await and others don't? I didn't see anything that seemed to imply the async/await was needed
def philanthropic_support_section(self): | ||
return self.page.locator("section.philanthropic-support") | ||
@pytest.mark.asyncio | ||
async def philanthropic_support_section(self): |
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.
This one maybe should end in _is_visible
def footer_section(self): | ||
return self.page.locator("id=footer") | ||
@pytest.mark.asyncio | ||
async def footer_section(self): |
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.
same here
https://openstax.atlassian.net/browse/CORE-988