This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obulat
added
🟥 priority: critical
Must be addressed ASAP
🛠 goal: fix
Bug fix
💻 aspect: code
Concerns the software code in the repository
labels
Jan 5, 2022
Curiously for me the tests pass in main but fail here 😅 |
Still experiencing a single e2e test failure: 1) filters.spec.js:20:1 › can unset filters using filter tags ====================================
Error: expect(received).toEqual(expected) // deep equality
Expected: "https://api.openverse.engineering/v1/images/?q=cat"
Received: "https://api.openverse.engineering/v1/images/2aa643ce-d2f5-491f-9425-3ca0d86fe7e7/thumb/"
33 | const baseUrl = 'https://api.openverse.engineering/v1/images/'
34 | if (url.startsWith(baseUrl)) {
> 35 | expect(url).toEqual(baseUrl + '?q=cat')
| ^
36 | }
37 | })
38 | await cc0Tag.click()
at Page.<anonymous> (/Users/zackkrida/Code/openverse/front/test/e2e/filters.spec.js:35:19)
at Page.emit (node:events:390:28)
at BrowserContext._onRequestFinished (/Users/zackkrida/Code/openverse/front/node_modules/.pnpm/playwright-core@1.17.1/node_modules/playwright-core/lib/client/browserContext.js:199:20)
at Proxy.<anonymous> (/Users/zackkrida/Code/openverse/front/node_modules/.pnpm/playwright-core@1.17.1/node_modules/playwright-core/lib/client/browserContext.js:148:56)
at Proxy.emit (node:events:390:28)
at Connection.dispatch (/Users/zackkrida/Code/openverse/front/node_modules/.pnpm/playwright-core@1.17.1/node_modules/playwright-core/lib/client/connection.js:208:21)
at Immediate.<anonymous> (/Users/zackkrida/Code/openverse/front/node_modules/.pnpm/playwright-core@1.17.1/node_modules/playwright-core/lib/inProcessFactory.js:50:83)
at processImmediate (node:internal/timers:464:21)
1 failed
filters.spec.js:20:1 › can unset filters using filter tags =====================================
7 skipped
24 passed (14s)
ELIFECYCLE Command failed with exit code 1. |
obulat
commented
Jan 6, 2022
obulat
commented
Jan 6, 2022
I've added the question mark to the URL to check, so that only the search request is tested, not the requests for thumbs or related images. This should definitely work now :) |
zackkrida
approved these changes
Jan 6, 2022
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.
Yes!
obulat
added
🟧 priority: high
Stalls work on the project or its dependents
and removed
🟥 priority: critical
Must be addressed ASAP
labels
Jan 6, 2022
dhruvkb
suggested changes
Jan 6, 2022
krysal
approved these changes
Jan 6, 2022
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'm curious about the approach suggested by @dhruvkb. This solves the broken workflow so it still helps.
dhruvkb
approved these changes
Jan 7, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟧 priority: high
Stalls work on the project or its dependents
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes
Fixes #572 by @zackkrida
Description
This PR updates the API request urls used in the e2e tests, and un-comments mocking of the request.
Testing Instructions
Run
pnpm run e2e:ci
. All e2e tests should pass.Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin