-
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 37 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,51 @@ | ||
| import { expect } from '@playwright/test'; | ||
| import { configs, test } from '@utils/test/playwright'; | ||
|
|
||
| /** | ||
| * This behavior does not vary across directions | ||
| */ | ||
| configs({ directions: ['ltr'] }).forEach(({ title, screenshot, config }) => { | ||
| test.describe(title('datetime: show adjacent days'), () => { | ||
| test('should not have visual regressions', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#default'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days`)); | ||
| }); | ||
|
|
||
| test('should not have visual regressions with a custom styled calendar', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#custom-calendar-days'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-custom-calendar`)); | ||
| }); | ||
|
|
||
| test('should not have visual regressions with specific date disabled', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#specificDate'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-specific-date-disabled`)); | ||
| }); | ||
|
|
||
| test('should not have visual regressions with weekends disabled', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#weekends'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-weekends-disabled`)); | ||
| }); | ||
|
|
||
| test('should not have visual regressions with date range disabled', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#dateRange'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-date-range-disabled`)); | ||
| }); | ||
|
|
||
| test('should not have visual regressions with month disabled', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#month'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-month-disabled`)); | ||
| }); | ||
|
|
||
| test('should not have visual regressions with display specified', async ({ page }) => { | ||
| await page.goto('/src/components/datetime/test/show-adjacent-days', config); | ||
| const datetime = page.locator('#display'); | ||
| await expect(datetime).toHaveScreenshot(screenshot(`datetime-show-adjacent-days-display`)); | ||
| }); | ||
| }); | ||
| }); |
Uh oh!
There was an error while loading. Please reload this page.