mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
fix(ci): repair mobile tests and lint diagnostics
Restore the saved-list filter import and test the actual sheet backdrop. Remove unsafe fixture assertions and apply formatting reported by CI. Reuse the current lint results and compare base files in sequence so warning diagnostics can finish without exhausting the heap.
This commit is contained in:
@@ -178,7 +178,8 @@ describe('IcsSubscribeModal on the phone', () => {
|
||||
fireEvent.click(screen.getByRole('button', { name: 'Close' }));
|
||||
expect(onClose).toHaveBeenCalledTimes(1);
|
||||
|
||||
const backdrop = document.querySelector('[data-m-scrim]')!.parentElement!;
|
||||
const backdrop = screen.getByRole('dialog', { name: defaultProps.title }).closest('[role="presentation"]');
|
||||
if (!backdrop) throw new Error('Expected the sheet backdrop');
|
||||
fireEvent.click(backdrop);
|
||||
expect(onClose).toHaveBeenCalledTimes(2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user