Skip to content

Migrate Firebase compat usages to modular API#616

Merged
rzueger merged 14 commits intodevelopfrom
pr/fb-compat-migration
Mar 3, 2026
Merged

Migrate Firebase compat usages to modular API#616
rzueger merged 14 commits intodevelopfrom
pr/fb-compat-migration

Conversation

@rzueger
Copy link
Copy Markdown
Member

@rzueger rzueger commented Mar 3, 2026

No description provided.

rzueger added 14 commits March 3, 2026 09:45
Add behavioral tests to saveLockDate (firebase set + resolve),
replace the trivial "should be a function" assertion.

Add addMovementToState happy path (admin, not last element),
last-element skip path, createDelegate, and monitorAssociation
direct function tests to movements/sagas.spec.js.
- Action: dataCy prop forwarded to StyledAction as data-cy
- Movement: dataCy="action-edit" and "action-delete" on edit/delete Actions
- MovementDeleteConfirmationDialog: dataCy="delete-confirm" on DeleteButton
- AdminNavigation: data-cy={item.key} on each MenuItem
- LockMovementsForm: dataCy="lock-date" passed to DatePicker
- MessageForm/renderField: data-cy={input.name} on Input and TextArea
- MessageForm: dataCy="send" on submit Button
The location-confirmation dialog is shown only after an async Firebase
check resolves. The previous `cy.get('body').then()` ran synchronously
before the response arrived, missing the dialog and causing the test to
time out waiting for the page-5 remarks field.

Replace with a combined-selector `cy.get()` that waits up to 8 s for
either the dialog confirm button or the remarks field to appear, then
conditionally clicks the dialog if it was shown.
@rzueger rzueger changed the title Pr/fb compat migration Migrate Firebase compat usages to modular API Mar 3, 2026
@rzueger rzueger merged commit 1f3a88e into develop Mar 3, 2026
2 checks passed
@rzueger rzueger deleted the pr/fb-compat-migration branch March 3, 2026 10:41
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