Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Fix/e2e tests #1640

Merged
merged 14 commits into from
Aug 11, 2022
Merged

Fix/e2e tests #1640

merged 14 commits into from
Aug 11, 2022

Conversation

obulat
Copy link
Contributor

@obulat obulat commented Aug 11, 2022

Fixes

Fixes #1637 by @obulat

Description

This PR fixes the failing Playwright visual regression tests, and makes the CI fail if Playwright tests fail.

The changes introduced in #1559 to stop the Docker container after Playwright tests caused the CI not to fail even if the Playwright container exits with status 1.

As can be seen in this run's log, Playwright tests started to fail again after the following line from bin/playwright.sh was removed:
docker-compose -f docker-compose.playwright.yml down

I've also updated the snapshots that were failing.

Testing Instructions

Look at the CI logs. The most recent ones are passing, but the run before that should fail because one of the snapshots didn't match.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main) or a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@github-actions
Copy link

github-actions bot commented Aug 11, 2022

Storybook and Tailwind configuration previews: Ready

Storybook: https://wordpress.github.io/openverse-frontend/_preview/1640
Tailwind: https://wordpress.github.io/openverse-frontend/_preview/1640/tailwind

Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again.

You can check the GitHub pages deployment action list to see the current status of the deployments.

@openverse-bot openverse-bot added 💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟥 priority: critical Must be addressed ASAP labels Aug 11, 2022
@github-actions
Copy link

github-actions bot commented Aug 11, 2022

Size Change: -4.71 kB (0%)

Total Size: 1.44 MB

Filename Size Change
./.nuxt/dist/client/236.js 0 B -273 B (removed) 🏆
./.nuxt/dist/client/236.modern.js 0 B -277 B (removed) 🏆
./.nuxt/dist/client/237.js 0 B -1.85 kB (removed) 🏆
./.nuxt/dist/client/app.js 111 kB -1.01 kB (-1%)
./.nuxt/dist/client/app.modern.js 103 kB -881 B (-1%)
./.nuxt/dist/client/components/v-modal.modern.js 881 B -1 B (0%)
./.nuxt/dist/client/components/v-server-timeout.modern.js 320 B +1 B (0%)
./.nuxt/dist/client/lang-es-cl.json.modern.js 157 B +1 B (+1%)
./.nuxt/dist/client/lang-es-cr.json.modern.js 157 B +1 B (+1%)
./.nuxt/dist/client/lang-fr-ca.json.modern.js 157 B -1 B (-1%)
./.nuxt/dist/client/lang-hat.json.js 0 B -149 B (removed) 🏆
./.nuxt/dist/client/lang-hat.json.modern.js 0 B -156 B (removed) 🏆
./.nuxt/dist/client/lang-hi.json.js 204 B +1 B (0%)
./.nuxt/dist/client/lang-km.json.js 0 B -148 B (removed) 🏆
./.nuxt/dist/client/lang-km.json.modern.js 0 B -155 B (removed) 🏆
./.nuxt/dist/client/lang-lin.json.js 0 B -149 B (removed) 🏆
./.nuxt/dist/client/lang-lin.json.modern.js 0 B -155 B (removed) 🏆
./.nuxt/dist/client/lang-ml.json.js 0 B -148 B (removed) 🏆
./.nuxt/dist/client/lang-ml.json.modern.js 0 B -155 B (removed) 🏆
./.nuxt/dist/client/lang-nl-be.json.js 9.54 kB +1 B (0%)
./.nuxt/dist/client/lang-nl-be.json.modern.js 9.54 kB -1 B (0%)
./.nuxt/dist/client/lang-pt-ao.json.js 0 B -151 B (removed) 🏆
./.nuxt/dist/client/lang-pt-ao.json.modern.js 0 B -158 B (removed) 🏆
./.nuxt/dist/client/lang-pt.json.js 412 B -1 B (0%)
./.nuxt/dist/client/lang-ru.json.modern.js 4.29 kB -1 B (0%)
./.nuxt/dist/client/lang-sk.json.js 268 B +1 B (0%)
./.nuxt/dist/client/lang-sl.json.js 0 B -148 B (removed) 🏆
./.nuxt/dist/client/lang-sl.json.modern.js 0 B -155 B (removed) 🏆
./.nuxt/dist/client/lang-sv.json.js 5.11 kB -1 B (0%)
./.nuxt/dist/client/lang-tah.json.js 0 B -149 B (removed) 🏆
./.nuxt/dist/client/lang-tah.json.modern.js 0 B -156 B (removed) 🏆
./.nuxt/dist/client/lang-tr.json.js 2.48 kB +1 B (0%)
./.nuxt/dist/client/lang-tr.json.modern.js 2.48 kB +1 B (0%)
./.nuxt/dist/client/lang-ug.json.js 0 B -148 B (removed) 🏆
./.nuxt/dist/client/lang-ug.json.modern.js 0 B -155 B (removed) 🏆
./.nuxt/dist/client/lang-yor.json.js 0 B -149 B (removed) 🏆
./.nuxt/dist/client/lang-yor.json.modern.js 0 B -156 B (removed) 🏆
./.nuxt/dist/client/lang-zh-cn.json.js 5.19 kB +1 B (0%)
./.nuxt/dist/client/lang-zh-cn.json.modern.js 5.2 kB -1 B (0%)
./.nuxt/dist/client/lang-zh-tw.json.js 4.24 kB +1 B (0%)
./.nuxt/dist/client/pages/about.js 1.05 kB +1 B (0%)
./.nuxt/dist/client/pages/about.modern.js 1.05 kB -1 B (0%)
./.nuxt/dist/client/pages/audio/_id.js 6.37 kB +1 B (0%)
./.nuxt/dist/client/pages/feedback.modern.js 3.2 kB +1 B (0%)
./.nuxt/dist/client/pages/image/_id.js 6.98 kB -1 B (0%)
./.nuxt/dist/client/pages/image/_id.modern.js 6.74 kB -1 B (0%)
./.nuxt/dist/client/pages/search-help.modern.js 1.54 kB +1 B (0%)
./.nuxt/dist/client/pages/search/audio.js 2.87 kB -2 B (0%)
./.nuxt/dist/client/pages/search/audio.modern.js 2.76 kB -2 B (0%)
./.nuxt/dist/client/pages/search/image.js 2.97 kB -1 B (0%)
./.nuxt/dist/client/pages/search/index.js 820 B -1 B (0%)
./.nuxt/dist/client/pages/search/index.modern.js 738 B +1 B (0%)
./.nuxt/dist/client/pages/search/model-3d.js 260 B -1 B (0%)
./.nuxt/dist/client/pages/sources.js 1.44 kB +1 B (0%)
./.nuxt/dist/client/pages/sources.modern.js 1.44 kB +1 B (0%)
./.nuxt/dist/client/runtime.js 2.7 kB -41 B (-1%)
./.nuxt/dist/client/runtime.modern.js 2.7 kB -41 B (-1%)
./.nuxt/dist/client/vendors/sentry.js 41.5 kB -2 B (0%)
./.nuxt/dist/client/vendors/sentry.modern.js 41.5 kB +1 B (0%)
./.nuxt/dist/client/227.js 272 B +272 B (new file) 🆕
./.nuxt/dist/client/227.modern.js 277 B +277 B (new file) 🆕
./.nuxt/dist/client/228.js 1.85 kB +1.85 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
./.nuxt/dist/client/commons/app.js 84.3 kB
./.nuxt/dist/client/commons/app.modern.js 73.2 kB
./.nuxt/dist/client/components/extension-browsers.js 816 B
./.nuxt/dist/client/components/extension-browsers.modern.js 819 B
./.nuxt/dist/client/components/loading-icon.js 766 B
./.nuxt/dist/client/components/loading-icon.modern.js 769 B
./.nuxt/dist/client/components/table-sort-icon.js 515 B
./.nuxt/dist/client/components/table-sort-icon.modern.js 519 B
./.nuxt/dist/client/components/v-all-results-grid.js 4.13 kB
./.nuxt/dist/client/components/v-all-results-grid.modern.js 4.01 kB
./.nuxt/dist/client/components/v-audio-cell.js 348 B
./.nuxt/dist/client/components/v-audio-cell.modern.js 353 B
./.nuxt/dist/client/components/v-audio-details.js 1.59 kB
./.nuxt/dist/client/components/v-audio-details.modern.js 1.6 kB
./.nuxt/dist/client/components/v-audio-track-skeleton.js 1.01 kB
./.nuxt/dist/client/components/v-audio-track-skeleton.modern.js 1.02 kB
./.nuxt/dist/client/components/v-audio-track.js 4.55 kB
./.nuxt/dist/client/components/v-audio-track.modern.js 4.5 kB
./.nuxt/dist/client/components/v-back-to-search-results-link.js 576 B
./.nuxt/dist/client/components/v-back-to-search-results-link.modern.js 581 B
./.nuxt/dist/client/components/v-bone.js 694 B
./.nuxt/dist/client/components/v-bone.modern.js 699 B
./.nuxt/dist/client/components/v-box-layout.js 1.2 kB
./.nuxt/dist/client/components/v-box-layout.modern.js 1.2 kB
./.nuxt/dist/client/components/v-content-link.js 1.06 kB
./.nuxt/dist/client/components/v-content-link.modern.js 1.05 kB
./.nuxt/dist/client/components/v-content-page.js 463 B
./.nuxt/dist/client/components/v-content-page.modern.js 467 B
./.nuxt/dist/client/components/v-content-report-button.js 777 B
./.nuxt/dist/client/components/v-content-report-button.modern.js 779 B
./.nuxt/dist/client/components/v-content-report-form.js 3.76 kB
./.nuxt/dist/client/components/v-content-report-form.modern.js 3.57 kB
./.nuxt/dist/client/components/v-content-report-popover.js 4.43 kB
./.nuxt/dist/client/components/v-content-report-popover.modern.js 4.24 kB
./.nuxt/dist/client/components/v-copy-button.js 3.94 kB
./.nuxt/dist/client/components/v-copy-button.modern.js 3.95 kB
./.nuxt/dist/client/components/v-copy-license.js 2.95 kB
./.nuxt/dist/client/components/v-copy-license.modern.js 2.93 kB
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/09090664.js 9.69 kB
./.nuxt/dist/client/components/v-copy-license/components/v-error-image/components/v-media-reuse/components/v-search-grid/09090664.modern.js 9.67 kB
./.nuxt/dist/client/components/v-dmca-notice.js 754 B
./.nuxt/dist/client/components/v-dmca-notice.modern.js 759 B
./.nuxt/dist/client/components/v-error-image.js 1.69 kB
./.nuxt/dist/client/components/v-error-image.modern.js 1.68 kB
./.nuxt/dist/client/components/v-error-section.js 387 B
./.nuxt/dist/client/components/v-error-section.modern.js 391 B
./.nuxt/dist/client/components/v-full-layout.js 1.45 kB
./.nuxt/dist/client/components/v-full-layout.modern.js 1.45 kB
./.nuxt/dist/client/components/v-grid-skeleton.js 1.62 kB
./.nuxt/dist/client/components/v-grid-skeleton.modern.js 1.63 kB
./.nuxt/dist/client/components/v-image-cell-square.js 1.02 kB
./.nuxt/dist/client/components/v-image-cell-square.modern.js 1.02 kB
./.nuxt/dist/client/components/v-image-cell.js 1.43 kB
./.nuxt/dist/client/components/v-image-cell.modern.js 1.42 kB
./.nuxt/dist/client/components/v-image-details.js 1.45 kB
./.nuxt/dist/client/components/v-image-details.modern.js 1.44 kB
./.nuxt/dist/client/components/v-image-grid.js 2.59 kB
./.nuxt/dist/client/components/v-image-grid.modern.js 2.47 kB
./.nuxt/dist/client/components/v-license-tab-panel.js 933 B
./.nuxt/dist/client/components/v-license-tab-panel.modern.js 926 B
./.nuxt/dist/client/components/v-load-more.js 816 B
./.nuxt/dist/client/components/v-load-more.modern.js 710 B
./.nuxt/dist/client/components/v-media-license.js 805 B
./.nuxt/dist/client/components/v-media-license.modern.js 813 B
./.nuxt/dist/client/components/v-media-reuse.js 1.03 kB
./.nuxt/dist/client/components/v-media-reuse.modern.js 1.03 kB
./.nuxt/dist/client/components/v-media-reuse/pages/image/_id.js 2.95 kB
./.nuxt/dist/client/components/v-media-reuse/pages/image/_id.modern.js 2.93 kB
./.nuxt/dist/client/components/v-media-tag.js 432 B
./.nuxt/dist/client/components/v-media-tag.modern.js 436 B
./.nuxt/dist/client/components/v-meta-search-form.js 2.71 kB
./.nuxt/dist/client/components/v-meta-search-form.modern.js 2.69 kB
./.nuxt/dist/client/components/v-meta-source-list.js 2.06 kB
./.nuxt/dist/client/components/v-meta-source-list.modern.js 2.03 kB
./.nuxt/dist/client/components/v-modal.js 876 B
./.nuxt/dist/client/components/v-no-results.js 2.26 kB
./.nuxt/dist/client/components/v-no-results.modern.js 2.23 kB
./.nuxt/dist/client/components/v-radio.js 1.52 kB
./.nuxt/dist/client/components/v-radio.modern.js 1.48 kB
./.nuxt/dist/client/components/v-related-audio.js 1.25 kB
./.nuxt/dist/client/components/v-related-audio.modern.js 1.25 kB
./.nuxt/dist/client/components/v-related-images.js 3.15 kB
./.nuxt/dist/client/components/v-related-images.modern.js 3.03 kB
./.nuxt/dist/client/components/v-report-desc-form.js 960 B
./.nuxt/dist/client/components/v-report-desc-form.modern.js 961 B
./.nuxt/dist/client/components/v-row-layout.js 1.81 kB
./.nuxt/dist/client/components/v-row-layout.modern.js 1.81 kB
./.nuxt/dist/client/components/v-scroll-button.js 807 B
./.nuxt/dist/client/components/v-scroll-button.modern.js 814 B
./.nuxt/dist/client/components/v-search-grid.js 5.06 kB
./.nuxt/dist/client/components/v-search-grid.modern.js 5.01 kB
./.nuxt/dist/client/components/v-search-results-title.js 676 B
./.nuxt/dist/client/components/v-search-results-title.modern.js 668 B
./.nuxt/dist/client/components/v-search-type-radio.js 832 B
./.nuxt/dist/client/components/v-search-type-radio.modern.js 822 B
./.nuxt/dist/client/components/v-server-timeout.js 315 B
./.nuxt/dist/client/components/v-sidebar-content.js 445 B
./.nuxt/dist/client/components/v-sidebar-content.modern.js 449 B
./.nuxt/dist/client/components/v-sketch-fab-viewer.js 997 B
./.nuxt/dist/client/components/v-sketch-fab-viewer.modern.js 893 B
./.nuxt/dist/client/components/v-skip-to-content-container.js 903 B
./.nuxt/dist/client/components/v-skip-to-content-container.modern.js 905 B
./.nuxt/dist/client/components/v-sources-table.js 14.3 kB
./.nuxt/dist/client/components/v-sources-table.modern.js 14.4 kB
./.nuxt/dist/client/components/v-tab-panel.js 689 B
./.nuxt/dist/client/components/v-tab-panel.modern.js 684 B
./.nuxt/dist/client/components/v-tab.js 1.74 kB
./.nuxt/dist/client/components/v-tab.modern.js 1.72 kB
./.nuxt/dist/client/components/v-tabs.js 785 B
./.nuxt/dist/client/components/v-tabs.modern.js 769 B
./.nuxt/dist/client/components/v-warning-suppressor.js 300 B
./.nuxt/dist/client/components/v-warning-suppressor.modern.js 305 B
./.nuxt/dist/client/lang-af.json.js 147 B
./.nuxt/dist/client/lang-af.json.modern.js 154 B
./.nuxt/dist/client/lang-am.json.js 147 B
./.nuxt/dist/client/lang-am.json.modern.js 154 B
./.nuxt/dist/client/lang-an.json.js 147 B
./.nuxt/dist/client/lang-an.json.modern.js 153 B
./.nuxt/dist/client/lang-ar.json.js 251 B
./.nuxt/dist/client/lang-ar.json.modern.js 255 B
./.nuxt/dist/client/lang-arq.json.js 148 B
./.nuxt/dist/client/lang-arq.json.modern.js 155 B
./.nuxt/dist/client/lang-ary.json.js 148 B
./.nuxt/dist/client/lang-ary.json.modern.js 155 B
./.nuxt/dist/client/lang-as.json.js 147 B
./.nuxt/dist/client/lang-as.json.modern.js 154 B
./.nuxt/dist/client/lang-az-tr.json.js 150 B
./.nuxt/dist/client/lang-az-tr.json.modern.js 157 B
./.nuxt/dist/client/lang-az.json.js 147 B
./.nuxt/dist/client/lang-az.json.modern.js 154 B
./.nuxt/dist/client/lang-azb.json.js 148 B
./.nuxt/dist/client/lang-azb.json.modern.js 155 B
./.nuxt/dist/client/lang-ba.json.js 147 B
./.nuxt/dist/client/lang-ba.json.modern.js 154 B
./.nuxt/dist/client/lang-bel.json.js 148 B
./.nuxt/dist/client/lang-bel.json.modern.js 155 B
./.nuxt/dist/client/lang-bg.json.js 147 B
./.nuxt/dist/client/lang-bg.json.modern.js 154 B
./.nuxt/dist/client/lang-bn-in.json.js 150 B
./.nuxt/dist/client/lang-bn-in.json.modern.js 156 B
./.nuxt/dist/client/lang-bn.json.js 147 B
./.nuxt/dist/client/lang-bn.json.modern.js 153 B
./.nuxt/dist/client/lang-bo.json.js 147 B
./.nuxt/dist/client/lang-bo.json.modern.js 154 B
./.nuxt/dist/client/lang-br.json.js 147 B
./.nuxt/dist/client/lang-br.json.modern.js 154 B
./.nuxt/dist/client/lang-bs.json.js 147 B
./.nuxt/dist/client/lang-bs.json.modern.js 154 B
./.nuxt/dist/client/lang-ca.json.js 9.54 kB
./.nuxt/dist/client/lang-ca.json.modern.js 9.54 kB
./.nuxt/dist/client/lang-ckb.json.js 148 B
./.nuxt/dist/client/lang-ckb.json.modern.js 155 B
./.nuxt/dist/client/lang-co.json.js 147 B
./.nuxt/dist/client/lang-co.json.modern.js 154 B
./.nuxt/dist/client/lang-cor.json.js 148 B
./.nuxt/dist/client/lang-cor.json.modern.js 155 B
./.nuxt/dist/client/lang-cs.json.js 10 kB
./.nuxt/dist/client/lang-cs.json.modern.js 10 kB
./.nuxt/dist/client/lang-cy.json.js 9.55 kB
./.nuxt/dist/client/lang-cy.json.modern.js 9.55 kB
./.nuxt/dist/client/lang-da.json.js 9.37 kB
./.nuxt/dist/client/lang-da.json.modern.js 9.37 kB
./.nuxt/dist/client/lang-de-at.json.js 150 B
./.nuxt/dist/client/lang-de-at.json.modern.js 157 B
./.nuxt/dist/client/lang-de-ch.json.js 150 B
./.nuxt/dist/client/lang-de-ch.json.modern.js 157 B
./.nuxt/dist/client/lang-de.json.js 10.1 kB
./.nuxt/dist/client/lang-de.json.modern.js 10.1 kB
./.nuxt/dist/client/lang-dv.json.js 147 B
./.nuxt/dist/client/lang-dv.json.modern.js 154 B
./.nuxt/dist/client/lang-dzo.json.js 148 B
./.nuxt/dist/client/lang-dzo.json.modern.js 155 B
./.nuxt/dist/client/lang-el.json.js 11.9 kB
./.nuxt/dist/client/lang-el.json.modern.js 12 kB
./.nuxt/dist/client/lang-en-au.json.js 791 B
./.nuxt/dist/client/lang-en-au.json.modern.js 795 B
./.nuxt/dist/client/lang-en-ca.json.js 8.56 kB
./.nuxt/dist/client/lang-en-ca.json.modern.js 8.56 kB
./.nuxt/dist/client/lang-en-gb.json.js 8.72 kB
./.nuxt/dist/client/lang-en-gb.json.modern.js 8.73 kB
./.nuxt/dist/client/lang-en-nz.json.js 150 B
./.nuxt/dist/client/lang-en-nz.json.modern.js 157 B
./.nuxt/dist/client/lang-en-za.json.js 5.08 kB
./.nuxt/dist/client/lang-en-za.json.modern.js 5.09 kB
./.nuxt/dist/client/lang-en.json.js 8.62 kB
./.nuxt/dist/client/lang-en.json.modern.js 8.63 kB
./.nuxt/dist/client/lang-eo.json.js 147 B
./.nuxt/dist/client/lang-eo.json.modern.js 154 B
./.nuxt/dist/client/lang-es-ar.json.js 9.61 kB
./.nuxt/dist/client/lang-es-ar.json.modern.js 9.61 kB
./.nuxt/dist/client/lang-es-cl.json.js 150 B
./.nuxt/dist/client/lang-es-co.json.js 9.32 kB
./.nuxt/dist/client/lang-es-co.json.modern.js 9.33 kB
./.nuxt/dist/client/lang-es-cr.json.js 150 B
./.nuxt/dist/client/lang-es-do.json.js 4.86 kB
./.nuxt/dist/client/lang-es-do.json.modern.js 4.87 kB
./.nuxt/dist/client/lang-es-ec.json.js 9.33 kB
./.nuxt/dist/client/lang-es-ec.json.modern.js 9.33 kB
./.nuxt/dist/client/lang-es-gt.json.js 151 B
./.nuxt/dist/client/lang-es-gt.json.modern.js 158 B
./.nuxt/dist/client/lang-es-hn.json.js 151 B
./.nuxt/dist/client/lang-es-hn.json.modern.js 157 B
./.nuxt/dist/client/lang-es-mx.json.js 9.52 kB
./.nuxt/dist/client/lang-es-mx.json.modern.js 9.53 kB
./.nuxt/dist/client/lang-es-pe.json.js 151 B
./.nuxt/dist/client/lang-es-pe.json.modern.js 158 B
./.nuxt/dist/client/lang-es-pr.json.js 151 B
./.nuxt/dist/client/lang-es-pr.json.modern.js 158 B
./.nuxt/dist/client/lang-es-uy.json.js 151 B
./.nuxt/dist/client/lang-es-uy.json.modern.js 158 B
./.nuxt/dist/client/lang-es-ve.json.js 9.33 kB
./.nuxt/dist/client/lang-es-ve.json.modern.js 9.33 kB
./.nuxt/dist/client/lang-es.json.js 9.52 kB
./.nuxt/dist/client/lang-es.json.modern.js 9.52 kB
./.nuxt/dist/client/lang-et.json.js 148 B
./.nuxt/dist/client/lang-et.json.modern.js 155 B
./.nuxt/dist/client/lang-eu.json.js 148 B
./.nuxt/dist/client/lang-eu.json.modern.js 155 B
./.nuxt/dist/client/lang-fa-af.json.js 151 B
./.nuxt/dist/client/lang-fa-af.json.modern.js 158 B
./.nuxt/dist/client/lang-fa.json.js 3.64 kB
./.nuxt/dist/client/lang-fa.json.modern.js 3.64 kB
./.nuxt/dist/client/lang-fi.json.js 148 B
./.nuxt/dist/client/lang-fi.json.modern.js 155 B
./.nuxt/dist/client/lang-fo.json.js 148 B
./.nuxt/dist/client/lang-fo.json.modern.js 155 B
./.nuxt/dist/client/lang-fr-be.json.js 151 B
./.nuxt/dist/client/lang-fr-be.json.modern.js 158 B
./.nuxt/dist/client/lang-fr-ca.json.js 151 B
./.nuxt/dist/client/lang-fr.json.js 7.12 kB
./.nuxt/dist/client/lang-fr.json.modern.js 7.13 kB
./.nuxt/dist/client/lang-fuc.json.js 149 B
./.nuxt/dist/client/lang-fuc.json.modern.js 156 B
./.nuxt/dist/client/lang-fy.json.js 148 B
./.nuxt/dist/client/lang-fy.json.modern.js 155 B
./.nuxt/dist/client/lang-ga.json.js 148 B
./.nuxt/dist/client/lang-ga.json.modern.js 155 B
./.nuxt/dist/client/lang-gd.json.js 148 B
./.nuxt/dist/client/lang-gd.json.modern.js 155 B
./.nuxt/dist/client/lang-gl.json.js 9.38 kB
./.nuxt/dist/client/lang-gl.json.modern.js 9.38 kB
./.nuxt/dist/client/lang-gu.json.js 148 B
./.nuxt/dist/client/lang-gu.json.modern.js 155 B
./.nuxt/dist/client/lang-hau.json.js 149 B
./.nuxt/dist/client/lang-hau.json.modern.js 156 B
./.nuxt/dist/client/lang-he.json.js 148 B
./.nuxt/dist/client/lang-he.json.modern.js 155 B
./.nuxt/dist/client/lang-hi.json.modern.js 210 B
./.nuxt/dist/client/lang-hr.json.js 148 B
./.nuxt/dist/client/lang-hr.json.modern.js 155 B
./.nuxt/dist/client/lang-hu.json.js 148 B
./.nuxt/dist/client/lang-hu.json.modern.js 155 B
./.nuxt/dist/client/lang-hy.json.js 148 B
./.nuxt/dist/client/lang-hy.json.modern.js 155 B
./.nuxt/dist/client/lang-ibo.json.js 149 B
./.nuxt/dist/client/lang-ibo.json.modern.js 156 B
./.nuxt/dist/client/lang-id.json.js 8.22 kB
./.nuxt/dist/client/lang-id.json.modern.js 8.22 kB
./.nuxt/dist/client/lang-ido.json.js 149 B
./.nuxt/dist/client/lang-ido.json.modern.js 156 B
./.nuxt/dist/client/lang-is.json.js 148 B
./.nuxt/dist/client/lang-is.json.modern.js 155 B
./.nuxt/dist/client/lang-it.json.js 9.5 kB
./.nuxt/dist/client/lang-it.json.modern.js 9.5 kB
./.nuxt/dist/client/lang-ja.json.js 4.49 kB
./.nuxt/dist/client/lang-ja.json.modern.js 4.5 kB
./.nuxt/dist/client/lang-jv.json.js 148 B
./.nuxt/dist/client/lang-jv.json.modern.js 155 B
./.nuxt/dist/client/lang-ka.json.js 148 B
./.nuxt/dist/client/lang-ka.json.modern.js 155 B
./.nuxt/dist/client/lang-kal.json.js 149 B
./.nuxt/dist/client/lang-kal.json.modern.js 156 B
./.nuxt/dist/client/lang-kin.json.js 149 B
./.nuxt/dist/client/lang-kin.json.modern.js 155 B
./.nuxt/dist/client/lang-kir.json.js 881 B
./.nuxt/dist/client/lang-kir.json.modern.js 886 B
./.nuxt/dist/client/lang-kk.json.js 148 B
./.nuxt/dist/client/lang-kk.json.modern.js 155 B
./.nuxt/dist/client/lang-kmr.json.js 149 B
./.nuxt/dist/client/lang-kmr.json.modern.js 156 B
./.nuxt/dist/client/lang-kn.json.js 3.28 kB
./.nuxt/dist/client/lang-kn.json.modern.js 3.28 kB
./.nuxt/dist/client/lang-ko.json.js 148 B
./.nuxt/dist/client/lang-ko.json.modern.js 155 B
./.nuxt/dist/client/lang-lb.json.js 148 B
./.nuxt/dist/client/lang-lb.json.modern.js 155 B
./.nuxt/dist/client/lang-li.json.js 148 B
./.nuxt/dist/client/lang-li.json.modern.js 155 B
./.nuxt/dist/client/lang-lo.json.js 148 B
./.nuxt/dist/client/lang-lo.json.modern.js 155 B
./.nuxt/dist/client/lang-lt.json.js 148 B
./.nuxt/dist/client/lang-lt.json.modern.js 155 B
./.nuxt/dist/client/lang-lug.json.js 149 B
./.nuxt/dist/client/lang-lug.json.modern.js 156 B
./.nuxt/dist/client/lang-lv.json.js 6.52 kB
./.nuxt/dist/client/lang-lv.json.modern.js 6.52 kB
./.nuxt/dist/client/lang-mg.json.js 148 B
./.nuxt/dist/client/lang-mg.json.modern.js 155 B
./.nuxt/dist/client/lang-mk.json.js 148 B
./.nuxt/dist/client/lang-mk.json.modern.js 155 B
./.nuxt/dist/client/lang-mn.json.js 148 B
./.nuxt/dist/client/lang-mn.json.modern.js 154 B
./.nuxt/dist/client/lang-mr.json.js 148 B
./.nuxt/dist/client/lang-mr.json.modern.js 155 B
./.nuxt/dist/client/lang-mri.json.js 149 B
./.nuxt/dist/client/lang-mri.json.modern.js 156 B
./.nuxt/dist/client/lang-ms.json.js 148 B
./.nuxt/dist/client/lang-ms.json.modern.js 155 B
./.nuxt/dist/client/lang-mya.json.js 149 B
./.nuxt/dist/client/lang-mya.json.modern.js 156 B
./.nuxt/dist/client/lang-nb.json.js 5.01 kB
./.nuxt/dist/client/lang-nb.json.modern.js 5.02 kB
./.nuxt/dist/client/lang-ne.json.js 330 B
./.nuxt/dist/client/lang-ne.json.modern.js 335 B
./.nuxt/dist/client/lang-nl.json.js 6.3 kB
./.nuxt/dist/client/lang-nl.json.modern.js 6.31 kB
./.nuxt/dist/client/lang-nn.json.js 148 B
./.nuxt/dist/client/lang-nn.json.modern.js 154 B
./.nuxt/dist/client/lang-oci.json.js 149 B
./.nuxt/dist/client/lang-oci.json.modern.js 156 B
./.nuxt/dist/client/lang-ory.json.js 149 B
./.nuxt/dist/client/lang-ory.json.modern.js 156 B
./.nuxt/dist/client/lang-os.json.js 148 B
./.nuxt/dist/client/lang-os.json.modern.js 155 B
./.nuxt/dist/client/lang-pl.json.js 148 B
./.nuxt/dist/client/lang-pl.json.modern.js 155 B
./.nuxt/dist/client/lang-ps.json.js 148 B
./.nuxt/dist/client/lang-ps.json.modern.js 155 B
./.nuxt/dist/client/lang-pt-br.json.js 5.39 kB
./.nuxt/dist/client/lang-pt-br.json.modern.js 5.39 kB
./.nuxt/dist/client/lang-pt.json.modern.js 415 B
./.nuxt/dist/client/lang-ro.json.js 9.63 kB
./.nuxt/dist/client/lang-ro.json.modern.js 9.64 kB
./.nuxt/dist/client/lang-roh.json.js 149 B
./.nuxt/dist/client/lang-roh.json.modern.js 156 B
./.nuxt/dist/client/lang-ru.json.js 4.29 kB
./.nuxt/dist/client/lang-sa-in.json.js 151 B
./.nuxt/dist/client/lang-sa-in.json.modern.js 157 B
./.nuxt/dist/client/lang-si.json.js 148 B
./.nuxt/dist/client/lang-si.json.modern.js 155 B
./.nuxt/dist/client/lang-sk.json.modern.js 271 B
./.nuxt/dist/client/lang-sna.json.js 149 B
./.nuxt/dist/client/lang-sna.json.modern.js 156 B
./.nuxt/dist/client/lang-snd.json.js 149 B
./.nuxt/dist/client/lang-snd.json.modern.js 156 B
./.nuxt/dist/client/lang-so.json.js 148 B
./.nuxt/dist/client/lang-so.json.modern.js 155 B
./.nuxt/dist/client/lang-sq-xk.json.js 151 B
./.nuxt/dist/client/lang-sq-xk.json.modern.js 158 B
./.nuxt/dist/client/lang-sq.json.js 9.95 kB
./.nuxt/dist/client/lang-sq.json.modern.js 9.95 kB
./.nuxt/dist/client/lang-sr.json.js 148 B
./.nuxt/dist/client/lang-sr.json.modern.js 155 B
./.nuxt/dist/client/lang-srd.json.js 149 B
./.nuxt/dist/client/lang-srd.json.modern.js 156 B
./.nuxt/dist/client/lang-ssw.json.js 149 B
./.nuxt/dist/client/lang-ssw.json.modern.js 156 B
./.nuxt/dist/client/lang-sv.json.modern.js 5.12 kB
./.nuxt/dist/client/lang-sw.json.js 148 B
./.nuxt/dist/client/lang-sw.json.modern.js 155 B
./.nuxt/dist/client/lang-ta-lk.json.js 151 B
./.nuxt/dist/client/lang-ta-lk.json.modern.js 158 B
./.nuxt/dist/client/lang-ta.json.js 148 B
./.nuxt/dist/client/lang-ta.json.modern.js 155 B
./.nuxt/dist/client/lang-te.json.js 3.48 kB
./.nuxt/dist/client/lang-te.json.modern.js 3.48 kB
./.nuxt/dist/client/lang-tg.json.js 148 B
./.nuxt/dist/client/lang-tg.json.modern.js 155 B
./.nuxt/dist/client/lang-th.json.js 148 B
./.nuxt/dist/client/lang-th.json.modern.js 155 B
./.nuxt/dist/client/lang-tir.json.js 149 B
./.nuxt/dist/client/lang-tir.json.modern.js 156 B
./.nuxt/dist/client/lang-tl.json.js 148 B
./.nuxt/dist/client/lang-tl.json.modern.js 155 B
./.nuxt/dist/client/lang-tt.json.js 148 B
./.nuxt/dist/client/lang-tt.json.modern.js 155 B
./.nuxt/dist/client/lang-tuk.json.js 149 B
./.nuxt/dist/client/lang-tuk.json.modern.js 156 B
./.nuxt/dist/client/lang-uk.json.js 148 B
./.nuxt/dist/client/lang-uk.json.modern.js 155 B
./.nuxt/dist/client/lang-ur.json.js 148 B
./.nuxt/dist/client/lang-ur.json.modern.js 155 B
./.nuxt/dist/client/lang-uz.json.js 148 B
./.nuxt/dist/client/lang-uz.json.modern.js 155 B
./.nuxt/dist/client/lang-vi.json.js 148 B
./.nuxt/dist/client/lang-vi.json.modern.js 155 B
./.nuxt/dist/client/lang-wol.json.js 149 B
./.nuxt/dist/client/lang-wol.json.modern.js 156 B
./.nuxt/dist/client/lang-xho.json.js 149 B
./.nuxt/dist/client/lang-xho.json.modern.js 156 B
./.nuxt/dist/client/lang-zh-hk.json.js 151 B
./.nuxt/dist/client/lang-zh-hk.json.modern.js 158 B
./.nuxt/dist/client/lang-zh-tw.json.modern.js 4.24 kB
./.nuxt/dist/client/lang-zul.json.js 149 B
./.nuxt/dist/client/lang-zul.json.modern.js 156 B
./.nuxt/dist/client/pages/audio/_id.modern.js 6.23 kB
./.nuxt/dist/client/pages/extension.js 2.19 kB
./.nuxt/dist/client/pages/extension.modern.js 2.2 kB
./.nuxt/dist/client/pages/feedback.js 3.23 kB
./.nuxt/dist/client/pages/index.js 5.08 kB
./.nuxt/dist/client/pages/index.modern.js 4.96 kB
./.nuxt/dist/client/pages/meta-search.js 1.67 kB
./.nuxt/dist/client/pages/meta-search.modern.js 1.68 kB
./.nuxt/dist/client/pages/preferences.js 1.26 kB
./.nuxt/dist/client/pages/preferences.modern.js 1.26 kB
./.nuxt/dist/client/pages/search-help.js 1.53 kB
./.nuxt/dist/client/pages/search.js 2.73 kB
./.nuxt/dist/client/pages/search.modern.js 2.57 kB
./.nuxt/dist/client/pages/search/image.modern.js 2.84 kB
./.nuxt/dist/client/pages/search/model-3d.modern.js 263 B
./.nuxt/dist/client/pages/search/search-page.types.js 266 B
./.nuxt/dist/client/pages/search/search-page.types.modern.js 271 B
./.nuxt/dist/client/pages/search/video.js 257 B
./.nuxt/dist/client/pages/search/video.modern.js 261 B
./.nuxt/dist/client/vendors/app.js 48.9 kB
./.nuxt/dist/client/vendors/app.modern.js 48.5 kB

compressed-size-action

@@ -9,8 +9,8 @@ export PLAYWRIGHT_ARGS=$@
export PLAYWRIGHT_VERSION=$(version)
export TEST_COMMAND=${TEST_COMMAND:-test:playwright:local}

echo Running Playwright v$PLAYWRIGHT_VERSION as $USER_ID with Playwright arguments $PLAYWRIGHT_ARGS
cp -r test/locales/* src/locales
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if it's worth doing this in the Dockerfile.playwright instead of in here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed it because we actually need the matching locale file in other tests, not only the Playwright ones.
When the valid-locales.json is not copied in setup-env step in other tests such as Storybook, the app fails to build. Also, simply copying the valid-locales.json is not enough because the app requires all of the translation json listed in valid-locales.json to build.


docker-compose -f docker-compose.playwright.yml down
docker-compose -f docker-compose.playwright.yml up --build --force-recreate --exit-code-from playwright --remove-orphans
Copy link
Contributor

Choose a reason for hiding this comment

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

So was it the docker-compose down that was causing this not to fail because the script continued to the dc down command after the failure of the test run? If so, an alternative fix (assuming the down is necessary) would be to add set -x to the top of the script so that any command failure causes the script to exit with the failure exit code.

Copy link
Contributor Author

@obulat obulat Aug 11, 2022

Choose a reason for hiding this comment

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

Well, if you remove the dc down line, the tests start to fail again. But I'm not very clear as to what exactly happens. I'll try your suggestion.

Copy link
Contributor

@sarayourfriend sarayourfriend Aug 11, 2022

Choose a reason for hiding this comment

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

If that is the case then I think it is what I said. The default behavior with shell scripts is not to bail out the entire script if a command fails unless the e option is set.

I had remembered it wrong, btw, it should be set -e. set -x prints the commands as they're run. e bails on the script if any error occurs. https://linuxcommand.org/lc3_man_pages/seth.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It worked! Thank you :)
How did you see that the Docker container was still running after tests in GitHub actions, by the way?

Copy link
Contributor

Choose a reason for hiding this comment

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

How did you see that the Docker container was still running after tests in GitHub actions, by the way?

What do you mean?

Copy link
Member

Choose a reason for hiding this comment

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

I was going to suggest using docker-compose run --rm ... instead but glad to see it's working now! :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't remember why but dc run did not work for me when I tried it when originally developing the dockerized Playwright tests. There was something strange about it where it would never end the containers, IIRC.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What do you mean?

The dc down line was added to solve the problem where a Playwright container wouldn't stop, right? I have never known that it didn't stop in the CI. How did you understand that that was, indeed, happening?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think @krysal added it (IIRC) upon noticing that the containers weren't stopping locally. I don't think it matters if the containers continue to run in CI, as far as I know.

Copy link
Member

Choose a reason for hiding this comment

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

I think @krysal added it (IIRC) upon noticing that the containers weren't stopping locally.

That is correct. The machines running the GH actions are a big black box, so that would have been much more difficult to identify, though locally it was a coincidence 🙂

@obulat obulat marked this pull request as ready for review August 11, 2022 14:37
@obulat obulat requested a review from a team as a code owner August 11, 2022 14:37
@obulat obulat requested review from krysal and dhruvkb August 11, 2022 14:37
Copy link
Member

@dhruvkb dhruvkb left a comment

Choose a reason for hiding this comment

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

Looks good to me! Couldn't have foreseen the set -e fix.

Copy link
Contributor

@sarayourfriend sarayourfriend left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@sarayourfriend sarayourfriend merged commit ee5e7eb into main Aug 11, 2022
@sarayourfriend sarayourfriend deleted the fix/e2e_tests branch August 11, 2022 15:19
github-actions bot pushed a commit that referenced this pull request Aug 11, 2022
@krysal
Copy link
Member

krysal commented Aug 11, 2022

I was going to ask why are we marking all the tests to run in parallel mode? I did that for the slowest tests in my PR, those that triggered warnings after the test execution. If we want to do that we can set it up in the Playwright config file (test/playwright/playwright.config.ts) instead of repeating the line in every test file.

@obulat
Copy link
Contributor Author

obulat commented Aug 12, 2022

@krysal, I first marked the e2e tests that were triggering the 'slow test' warning, and then just went ahead and added that line in every file.
What is the downside to setting up the parallel execution for all files in the Playwright config file? Adding or removing the line manually based on the test logs seems tedious and we might forget to do it.
Should I open an issue for removing this line from fast tests, or for adding the comment to the Playwright config file?

@dhruvkb dhruvkb mentioned this pull request Aug 18, 2022
7 tasks
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: critical Must be addressed ASAP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Playwright CI does not fail when Playwright fails with status 1
5 participants