Skip to content

chore: Reduce amount of live stylesheets loaded in tests#7656

Open
mbergen wants to merge 34 commits into
mainfrom
mbergen-patch-1
Open

chore: Reduce amount of live stylesheets loaded in tests#7656
mbergen wants to merge 34 commits into
mainfrom
mbergen-patch-1

Conversation

@mbergen

@mbergen mbergen commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Sometimes, loading stylesheets seems to (partially) fail in CI.
This removes loading of skin-specific styles from the live server, loading only fontawesome styles.

Styles used in snapshot tests are (roughly) added to Main.scss, which is only used in tests.

Further, this introduces the #snapshot tag to only execute snapshot tests when using npm run update-snapshots.

How did you test this change?

N/A

@mbergen mbergen changed the title chore: Do not load live stylesheets in tests chore: Reduce amount of live stylesheets loaded in tests Jun 14, 2026
@mbergen mbergen added stylesheets Changes to stylesheets CI/CD labels Jun 14, 2026
@mbergen mbergen marked this pull request as ready for review June 14, 2026 18:31
@mbergen mbergen requested review from a team as code owners June 14, 2026 18:31
@mbergen

mbergen commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator Author

Topics for discussion/review:

  • Is copying CSS bits into Main.scss for use in CI the way to go? Or do we want to wait until the missing CSS is ported to this repo?
  • If no, do we still want to remove fetching it and live with the non-optimal display until CSS is ported?
  • If yes, is the current approximation fine, or should this PR aim for pixel-perfect match of current snapshots?

@hjpalpha hjpalpha left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm on phone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD stylesheets Changes to stylesheets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants