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

3716 – Fix Kwai & Facebook's failing tests #386

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

vasconsaurus
Copy link
Contributor

@vasconsaurus vasconsaurus commented Sep 6, 2023

Description

For a while now we have one test from Kwai and one from Facebook that have been failing.

Facebook
I'm not too sure about everything here, but it seems:

  • we have the url from the link, and inside the page we have the canonical_url
  • we were getting the error because the canonical_url was being invoked, but was not stubbed.
    Stubbing it fixed that error
  • we then get a new error, the media.url actually matches the canonical_url and not the original_url.
    So I updated our asserts as this seems to be the expected behavior.

Kwai
The test here seems to be working fine, but our parsing seems to be broken. 🥲
We search the doc for '.info .title' and for '.name', and both of those are returning nil.
I looked through the page, but haven't found a direct substitute for both of those.
So I'll open a separate ticket for us to look into this, since the issue here isn't fixing the test, and might not be super straightforward.

References: 3716

this test had started to fail. I'm not too sure about everything here:
- we have the url from the link, and inside the page we have the canonical_url
- we were getting the error because the canonical_url was being invoked,
but was not stubbed. Stubbing it fixed that error
- we then get a new error, the media.url actually matches the canonical_url
and not the original_url. so I updated our asserts as this seems to be the
expected behavior
@vasconsaurus vasconsaurus changed the title wip: 3716 – Fix Kwai & Facebook's failing tests 3716 – Fix Kwai & Facebook's failing tests Sep 7, 2023
@vasconsaurus vasconsaurus marked this pull request as ready for review September 7, 2023 13:14
@vasconsaurus vasconsaurus merged commit c49cd95 into develop Sep 11, 2023
3 of 4 checks passed
@vasconsaurus vasconsaurus deleted the fix-3716-fix-kwai-facebook-failing-tests branch September 11, 2023 13:08
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