mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
feat(dialogs): Vacay, Collections, Atlas and Journey in the new dialog look
Every popup of the four pages moves to the shared dialog frame the trip uses: head band with its icon, the scrolling body, the footer with its actions, and ConfirmDialog for the questions. - Vacay: settings, removing a year (now says so when it fails), the fusion request, inviting a person, a person's colour and sharing the calendar. - Collections: new and edited lists, adding a place, importing a file and a trip's places, sharing, labels and assigning them, copying to a trip, moving or duplicating, saving a trip's places and deleting a list. The stylesheet of the old import view goes. - Atlas: the country popup with the flag in its head, its choices as rows and the wishlist step; Dawarich's Atlas dialog and its accept dialog on the desktop. - Journey: creating a journey, its settings, linking a trip, inviting a contributor, the entry editor (discarding asks in a dialog) and the photo provider picker; the entry card's menu is the shared one. The phone keeps its own sheets: where a dialog is shared with it (Dawarich, the contributor invite, the provider picker) only the desktop frame changes.
This commit is contained in:
@@ -65,10 +65,10 @@ describe('BulkAssignLabelModal', () => {
|
||||
const berlinRow = screen.getByRole('button', { name: 'Berlin' });
|
||||
|
||||
await user.click(berlinRow);
|
||||
expect(berlinRow).toHaveClass('border-accent');
|
||||
expect(berlinRow).toHaveAttribute('aria-pressed', 'true');
|
||||
|
||||
await user.click(berlinRow);
|
||||
expect(berlinRow).not.toHaveClass('border-accent');
|
||||
expect(berlinRow).toHaveAttribute('aria-pressed', 'false');
|
||||
expect(screen.getByRole('button', { name: /^Assign label$/ })).toBeDisabled();
|
||||
});
|
||||
|
||||
@@ -83,7 +83,7 @@ describe('BulkAssignLabelModal', () => {
|
||||
await waitFor(() => expect(props.onAssign).toHaveBeenCalledWith([2, 1]));
|
||||
// Selection resets so the modal is ready for the next batch.
|
||||
await waitFor(() => expect(screen.getByRole('button', { name: /^Assign label$/ })).toBeDisabled());
|
||||
expect(screen.getByRole('button', { name: 'Berlin' })).not.toHaveClass('border-accent');
|
||||
expect(screen.getByRole('button', { name: 'Berlin' })).toHaveAttribute('aria-pressed', 'false');
|
||||
});
|
||||
|
||||
it('FE-COMP-BULKLABEL-006: a second click while the assign is pending is ignored', async () => {
|
||||
|
||||
Reference in New Issue
Block a user