Skip to content

Commit 6adef22

Browse files
committed
Update tests
1 parent d8a8750 commit 6adef22

File tree

3 files changed

+168
-163
lines changed

3 files changed

+168
-163
lines changed

packages/module/src/DataView/DataView.test.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@ import DataView from './DataView';
55
const layoutItemStyling = {
66
width: '100%',
77
height: '5rem',
8-
padding: 'var(--pf-t--global--spacer--md)',
9-
border: 'var(--pf-t--global--border--width--box--default) dashed var(--pf-t--global--border--color--default)'
8+
padding: 'var(--pf-v5-global--spacer--md)',
9+
borderStyle: 'dashed',
10+
borderWidth: '2px',
1011
};
1112

1213
describe('DataView component', () => {
1314
test('should render correctly', () => {
1415
expect(render(
1516
<DataView>
1617
<div style={layoutItemStyling}>Header</div>
17-
<div style={layoutItemStyling}>Data representation</div>
18+
<div style={{ ...layoutItemStyling, borderTopWidth: 0, borderBottomWidth: 0 }}>Data representation</div>
1819
<div style={layoutItemStyling}>Footer</div>
1920
</DataView>)).toMatchSnapshot();
2021
});

packages/module/src/DataView/__snapshots__/DataView.test.tsx.snap

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,35 @@ exports[`DataView component should render correctly 1`] = `
66
"baseElement": <body>
77
<div>
88
<div
9-
class="pf-v6-l-stack"
9+
class="pf-v5-l-stack"
1010
data-ouia-component-id="DataView-stack}"
1111
>
1212
<div
13-
class="pf-v6-l-stack__item"
13+
class="pf-v5-l-stack__item"
1414
data-ouia-component-id="DataView-stack-item-0"
1515
>
1616
<div
17-
style="width: 100%; height: 5rem;"
17+
style="width: 100%; height: 5rem; border-style: dashed; border-width: 2px;"
1818
>
1919
Header
2020
</div>
2121
</div>
2222
<div
23-
class="pf-v6-l-stack__item"
23+
class="pf-v5-l-stack__item"
2424
data-ouia-component-id="DataView-stack-item-1"
2525
>
2626
<div
27-
style="width: 100%; height: 5rem;"
27+
style="width: 100%; height: 5rem; border-style: dashed; border-width: 2px; border-top-width: 0; border-bottom-width: 0;"
2828
>
2929
Data representation
3030
</div>
3131
</div>
3232
<div
33-
class="pf-v6-l-stack__item"
33+
class="pf-v5-l-stack__item"
3434
data-ouia-component-id="DataView-stack-item-2"
3535
>
3636
<div
37-
style="width: 100%; height: 5rem;"
37+
style="width: 100%; height: 5rem; border-style: dashed; border-width: 2px;"
3838
>
3939
Footer
4040
</div>
@@ -44,35 +44,35 @@ exports[`DataView component should render correctly 1`] = `
4444
</body>,
4545
"container": <div>
4646
<div
47-
class="pf-v6-l-stack"
47+
class="pf-v5-l-stack"
4848
data-ouia-component-id="DataView-stack}"
4949
>
5050
<div
51-
class="pf-v6-l-stack__item"
51+
class="pf-v5-l-stack__item"
5252
data-ouia-component-id="DataView-stack-item-0"
5353
>
5454
<div
55-
style="width: 100%; height: 5rem;"
55+
style="width: 100%; height: 5rem; border-style: dashed; border-width: 2px;"
5656
>
5757
Header
5858
</div>
5959
</div>
6060
<div
61-
class="pf-v6-l-stack__item"
61+
class="pf-v5-l-stack__item"
6262
data-ouia-component-id="DataView-stack-item-1"
6363
>
6464
<div
65-
style="width: 100%; height: 5rem;"
65+
style="width: 100%; height: 5rem; border-style: dashed; border-width: 2px; border-top-width: 0; border-bottom-width: 0;"
6666
>
6767
Data representation
6868
</div>
6969
</div>
7070
<div
71-
class="pf-v6-l-stack__item"
71+
class="pf-v5-l-stack__item"
7272
data-ouia-component-id="DataView-stack-item-2"
7373
>
7474
<div
75-
style="width: 100%; height: 5rem;"
75+
style="width: 100%; height: 5rem; border-style: dashed; border-width: 2px;"
7676
>
7777
Footer
7878
</div>

0 commit comments

Comments
 (0)