Mediascherm: vaste hoogte van de bulkbalk, hele tegel selecteert, kleinere tegels, 0 dagen bij opruimen
Continuous Integration / config-sls (pull_request) Successful in 9s
Continuous Integration / config-asf (pull_request) Successful in 7s
Continuous Integration / changes (pull_request) Successful in 20s
Continuous Integration / frontend-prepare (pull_request) Successful in 30s
Continuous Integration / backend-build (pull_request) Successful in 1m40s
Continuous Integration / vulnerability-scan (pull_request) Successful in 1m48s
Continuous Integration / frontend-build (pull_request) Successful in 56s
Continuous Integration / frontend-test (pull_request) Successful in 2m48s
Continuous Integration / frontend-lint (pull_request) Successful in 42s
Continuous Integration / backend-test (pull_request) Successful in 4m37s
Continuous Integration / publish-sls-test (pull_request) Skipped
Continuous Integration / publish-sls-production (pull_request) Skipped
Continuous Integration / deploy-sls-test (pull_request) Skipped
Continuous Integration / deploy-sls-production (pull_request) Skipped
Continuous Integration / publish-asf-test (pull_request) Skipped
Continuous Integration / deploy-asf-test (pull_request) Skipped
Continuous Integration / smoke-sls-test (pull_request) Skipped
Continuous Integration / smoke-asf-test (pull_request) Skipped
Continuous Integration / compile-sites (pull_request) Successful in 10m43s
Continuous Integration / config-sls (pull_request) Successful in 9s
Continuous Integration / config-asf (pull_request) Successful in 7s
Continuous Integration / changes (pull_request) Successful in 20s
Continuous Integration / frontend-prepare (pull_request) Successful in 30s
Continuous Integration / backend-build (pull_request) Successful in 1m40s
Continuous Integration / vulnerability-scan (pull_request) Successful in 1m48s
Continuous Integration / frontend-build (pull_request) Successful in 56s
Continuous Integration / frontend-test (pull_request) Successful in 2m48s
Continuous Integration / frontend-lint (pull_request) Successful in 42s
Continuous Integration / backend-test (pull_request) Successful in 4m37s
Continuous Integration / publish-sls-test (pull_request) Skipped
Continuous Integration / publish-sls-production (pull_request) Skipped
Continuous Integration / deploy-sls-test (pull_request) Skipped
Continuous Integration / deploy-sls-production (pull_request) Skipped
Continuous Integration / publish-asf-test (pull_request) Skipped
Continuous Integration / deploy-asf-test (pull_request) Skipped
Continuous Integration / smoke-sls-test (pull_request) Skipped
Continuous Integration / smoke-asf-test (pull_request) Skipped
Continuous Integration / compile-sites (pull_request) Successful in 10m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it } from 'vitest';
|
||||
import { http, HttpResponse } from 'msw';
|
||||
import { screen, waitFor, within } from '@testing-library/react';
|
||||
import { fireEvent, screen, waitFor, within } from '@testing-library/react';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import i18n from '@/i18n/config';
|
||||
import { server } from '@/mocks/server';
|
||||
@@ -323,6 +323,22 @@ describe('MediaLibraryPage', () => {
|
||||
expect(screen.getByTestId('layout-list')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('allows 0 days in the clean-up and says what that means', async () => {
|
||||
renderPage();
|
||||
await screen.findByTestId('photo-selection-list');
|
||||
await userEvent.click(screen.getByTestId('cleanup-open'));
|
||||
const dialog = await screen.findByTestId('cleanup-dialog');
|
||||
const slider = within(dialog).getByTestId('cleanup-days');
|
||||
expect(slider).toHaveAttribute('min', '0');
|
||||
|
||||
fireEvent.change(slider, { target: { value: '0' } });
|
||||
|
||||
expect(await within(dialog).findByTestId('cleanup-zero-note')).toHaveTextContent('direct in aanmerking');
|
||||
expect(within(dialog).getByText('Direct: elke ongebruikte foto')).toBeInTheDocument();
|
||||
await waitFor(() => expect(within(dialog).getByTestId('cleanup-summary')).toBeInTheDocument());
|
||||
expect(within(dialog).getByTestId('cleanup-confirm')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('shows an error when the library cannot be loaded', async () => {
|
||||
server.use(http.get('*/media-library/photos', () => new HttpResponse(null, { status: 500 })));
|
||||
renderPage();
|
||||
|
||||
Reference in New Issue
Block a user