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

test: mock system time for snowfall #4760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Schwehn42
Copy link
Collaborator

Description

In the months of December and January, snowfall is rendered including a setting in the Appearance component.
An accompanying test would compare the rendered component to a snapshot. However, since the test is reliant on time, the test will fail if the time's not right. Additionally, CI/CD runners don't necessarily synchronize their time with the real world, leading to more confusion. Hence, these tests mock the system time in order to achieve consistent results.

Changelog

  • Appearance.test.tsx
    • set mocked system time
    • add test to test both with and without snowfall
  • Appearance.test.tsx.snap: update snapshot

renders with/without snowfall
@Schwehn42 Schwehn42 self-assigned this Jan 10, 2025
@Schwehn42 Schwehn42 changed the title test: mock system time test: mock system time for snowfall Jan 10, 2025
Copy link

The deployment to the dev cluster was successful. You can find the deployment here: https://4760.development.scrumlr.fra.ics.inovex.io
This deployment is only for testing purposes and will be deleted after 1 week.
To redeploy rerun the workflow.
DO NOT STORE IMPORTANT DATA ON THIS DEPLOYMENT

Deployed Images
  • ghcr.io/inovex/scrumlr.io/scrumlr-frontend:sha-037720c

  • ghcr.io/inovex/scrumlr.io/scrumlr-server:sha-037720c

Copy link

octomind-dev bot commented Jan 10, 2025

🐙 Octomind

Test Report: 0/14 successful.

description status details
About Section Visibility Test Failed ❌ click
change avatar Failed ❌ click
check Privacy Policy Failed ❌ click
check terms & conditions Failed ❌ click
close cookie banner - front page Failed ❌ click
close cookie banner - sign-in Failed ❌ click
create and delete board columns Failed ❌ click
create_and_delete_notes_and_actions_v2 Failed ❌ click
create lean coffee board Failed ❌ click
edit_notes_and_actions_v5 Failed ❌ click
get started Failed ❌ click
share_session Failed ❌ click
sign-in Failed ❌ click
test all ways to open the setup flow Failed ❌ click

commit sha: 037720c

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.

1 participant