Describe the issue. What is the expected and unexpected behavior?
The DecadeView is working properly test fails due to the snapshot.
It seems related to the decade change (from 201X to 202X).
FAIL packages/patternfly-3/patternfly-react/src/components/DateTimePicker/DateComponents/DecadeView.test.js
● DecadeView is working properly
expect(received).toMatchSnapshot()
Snapshot name: `DecadeView is working properly 1`
- Snapshot
+ Received
@@ -16,11 +16,11 @@
<th
class="picker-switch"
colspan="5"
data-action="pickerSwitch"
>
- 2010-2021
+ 2020-2031
</th>
<th
class="next"
>
<span
@@ -33,68 +33,68 @@
<tr>
<td
colspan="7"
>
<span
- class="year "
+ class="year active"
>
- 2010
+ 2020
</span>
<span
class="year "
>
- 2011
+ 2021
</span>
<span
class="year "
>
- 2012
+ 2022
</span>
<span
class="year "
>
- 2013
+ 2023
</span>
<span
class="year "
>
- 2014
+ 2024
</span>
<span
class="year "
>
- 2015
+ 2025
</span>
<span
class="year "
>
- 2016
+ 2026
</span>
<span
class="year "
>
- 2017
+ 2027
</span>
<span
class="year "
>
- 2018
+ 2028
</span>
<span
- class="year active"
+ class="year "
>
- 2019
+ 2029
</span>
<span
class="year "
>
- 2020
+ 2030
</span>
<span
class="year "
>
- 2021
+ 2031
</span>
</td>
</tr>
</tbody>
</table>
6 | const component = shallow(<DecadeView />);
7 |
> 8 | expect(component.render()).toMatchSnapshot();
| ^
9 | });
10 |
11 | test('Edit year DecadeView', () => {
at Object.toMatchSnapshot (packages/patternfly-3/patternfly-react/src/components/DateTimePicker/DateComponents/DecadeView.test.js:8:30)
Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
yarn test:pf3 will reproduce the error. You can even filter by the test name: DecadeView
Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Not a bug.
What is your product and what release version are you targeting?
Reactions are currently unavailable
Describe the issue. What is the expected and unexpected behavior?
The DecadeView is working properly test fails due to the snapshot.
It seems related to the decade change (from 201X to 202X).
FAIL packages/patternfly-3/patternfly-react/src/components/DateTimePicker/DateComponents/DecadeView.test.js ● DecadeView is working properly expect(received).toMatchSnapshot() Snapshot name: `DecadeView is working properly 1` - Snapshot + Received @@ -16,11 +16,11 @@ <th class="picker-switch" colspan="5" data-action="pickerSwitch" > - 2010-2021 + 2020-2031 </th> <th class="next" > <span @@ -33,68 +33,68 @@ <tr> <td colspan="7" > <span - class="year " + class="year active" > - 2010 + 2020 </span> <span class="year " > - 2011 + 2021 </span> <span class="year " > - 2012 + 2022 </span> <span class="year " > - 2013 + 2023 </span> <span class="year " > - 2014 + 2024 </span> <span class="year " > - 2015 + 2025 </span> <span class="year " > - 2016 + 2026 </span> <span class="year " > - 2017 + 2027 </span> <span class="year " > - 2018 + 2028 </span> <span - class="year active" + class="year " > - 2019 + 2029 </span> <span class="year " > - 2020 + 2030 </span> <span class="year " > - 2021 + 2031 </span> </td> </tr> </tbody> </table> 6 | const component = shallow(<DecadeView />); 7 | > 8 | expect(component.render()).toMatchSnapshot(); | ^ 9 | }); 10 | 11 | test('Edit year DecadeView', () => { at Object.toMatchSnapshot (packages/patternfly-3/patternfly-react/src/components/DateTimePicker/DateComponents/DecadeView.test.js:8:30)Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
yarn test:pf3 will reproduce the error. You can even filter by the test name: DecadeView
Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Not a bug.
What is your product and what release version are you targeting?