Skip to content

Commit f4ea3a2

Browse files
LukasTyclaudeCopilotMBilalShafi
authored
[test] Remove v7 suffix from test helpers and stale comments (#22023)
Signed-off-by: Lukas Tyla <llukas.tyla@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Bilal Shafi <bilalshafidev@gmail.com>
1 parent b296bce commit f4ea3a2

9 files changed

Lines changed: 160 additions & 260 deletions

File tree

packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/editing.SingleInputDateRangeField.test.tsx

Lines changed: 54 additions & 76 deletions
Large diffs are not rendered by default.

packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/selection.SingleInputDateRangeField.test.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
1717

1818
describe('Focus', () => {
1919
it('should select 1st section on mount focus (`autoFocus = true`)', () => {
20-
// Test with accessible DOM structure
2120
const view = renderWithProps({
2221
autoFocus: true,
2322
});
@@ -30,7 +29,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
3029

3130
describe('Click', () => {
3231
it('should select the clicked selection when the input is already focused', async () => {
33-
// Test with accessible DOM structure
3432
const view = renderWithProps({
3533
value: [null, adapterToUse.date('2022-02-24')],
3634
});
@@ -53,7 +51,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
5351
});
5452

5553
it('should not change the selection when clicking on the only already selected section', async () => {
56-
// Test with accessible DOM structure
5754
const view = renderWithProps({
5855
value: [null, adapterToUse.date('2022-02-24')],
5956
});
@@ -78,7 +75,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
7875

7976
describe('key: ArrowRight', () => {
8077
it('should allow to move from left to right with ArrowRight', async () => {
81-
// Test with accessible DOM structure
8278
const view = renderWithProps({});
8379

8480
await view.selectSectionAsync('month');
@@ -103,7 +99,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
10399
});
104100

105101
it('should stay on the current section when the last section is selected', async () => {
106-
// Test with accessible DOM structure
107102
const view = renderWithProps({});
108103

109104
await view.selectSectionAsync('year', 'last');
@@ -117,7 +112,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
117112

118113
describe('key: ArrowLeft', () => {
119114
it('should allow to move from right to left with ArrowLeft', async () => {
120-
// Test with accessible DOM structure
121115
const view = renderWithProps({});
122116

123117
await view.selectSectionAsync('year', 'last');
@@ -141,7 +135,6 @@ describe('<SingleInputDateRangeField /> - Selection', () => {
141135
});
142136

143137
it('should stay on the current section when the first section is selected', async () => {
144-
// Test with accessible DOM structure
145138
const view = renderWithProps({});
146139

147140
await view.selectSectionAsync('month');

0 commit comments

Comments
 (0)