-
Notifications
You must be signed in to change notification settings - Fork 13.4k
feat(datetime): add showAdjacentDays to display days from the previous and next months #30209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 33 commits
af7472b
8c2d033
6dd9bc4
7fe2359
4ba73b0
a2b4473
a908402
9cd8a3c
4cef43e
970b52c
37457dd
08119cc
6aca32d
64a92f8
cb835af
d1fed86
2d332d5
2d671d0
e4de5db
e2393a5
9ec10fb
08e2990
0eca20e
e219fc7
185feef
de4c6af
f61d607
8b8ddcb
f4867c4
68f331d
0094648
053843f
b857c1d
624573d
d06803d
516d589
21bad1e
327a033
df33f7b
5961b86
a997c95
1ccd3b7
d231205
9904427
e58dca4
5a3d706
f552628
58894ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What changed here? Can we revert this if nothing? |
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What changed here? Can we revert this if nothing? |
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did the background change? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| import { expect } from '@playwright/test'; | ||
| import { configs, test } from '@utils/test/playwright'; | ||
|
|
||
| configs().forEach(({ title, screenshot, config }) => { | ||
| test.describe(title('datetime: ShowDaysOutsideCustomMonth'), () => { | ||
| test('with custom-grid should not have any visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const customGrid = page.locator('#custom-grid'); | ||
| await expect(customGrid).toHaveScreenshot(screenshot(`customGrid-with-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('should set the first day of the week correctly', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const customDatetime = page.locator('#custom-calendar-days'); | ||
| await expect(customDatetime).toHaveScreenshot(screenshot(`custom-calendar-with-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('with specific date disabled should not have any visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const specificDateDisabled = page.locator('#specificDate'); | ||
| await expect(specificDateDisabled).toHaveScreenshot(screenshot(`specificDate-with-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('with weekends disabled should not have any visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const weekendsDisabled = page.locator('#weekends'); | ||
| await expect(weekendsDisabled).toHaveScreenshot(screenshot(`weekendsDisabled-with-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('with date range disabled should not have any visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const dateRangeDisabled = page.locator('#dateRange'); | ||
| await expect(dateRangeDisabled).toHaveScreenshot(screenshot(`dateRangeDisabled-with-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('with month disabled should not have any visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const monthDisabled = page.locator('#month'); | ||
| await expect(monthDisabled).toHaveScreenshot(screenshot(`monthDisabled-with-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('with specific display should not have any visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const display = page.locator('#display'); | ||
| await expect(display).toHaveScreenshot(screenshot(`display-with-adjacent-days`)); | ||
| }); | ||
| }); | ||
| }); |
Uh oh!
There was an error while loading. Please reload this page.