* draft for tablet view * adapt sidebar to tablet view * split menubar to handle tablet and desktop separatly * split sidebar to handle tablet and desktop separatly * prettier day navigationin tablet view * added missing translations * coderabbit comments * fix UI of view switcher on tablet, remove hard text * fix style of selected view option * fix wrong I18n key * extracted menubar recurring components to own files * adjust test case of calendar component * refactor function change calendar view Co-authored-by: Camille Moussu <cmoussu@linagora.com> Co-authored-by: lethemanh <lethemanh@lethemanhs-MacBook-Pro.local>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import CalendarLayout from '@/components/Calendar/CalendarLayout'
|
||||
import { CALENDAR_VIEWS } from '@/components/Calendar/utils/constants'
|
||||
import { act, waitFor } from '@testing-library/react'
|
||||
import { renderWithProviders } from '../utils/Renderwithproviders'
|
||||
|
||||
@@ -51,7 +52,7 @@ describe('Calendar – dayHeaderContent respects selected timezone', () => {
|
||||
await waitFor(() => expect(calendarRef?.current).not.toBeNull())
|
||||
|
||||
await act(async () => {
|
||||
calendarRef.current?.changeView('timeGridWeek')
|
||||
calendarRef.current?.changeView(CALENDAR_VIEWS.timeGridWeek)
|
||||
})
|
||||
|
||||
await waitFor(() => {
|
||||
|
||||
Reference in New Issue
Block a user