@@ -7,7 +7,7 @@ import { DialogHeader } from "../DialogHeader";
7
7
describe ( "Dialog component" , ( ) => {
8
8
it ( "should render the basic dialog without header, footer and body" , ( ) => {
9
9
render (
10
- < Dialog >
10
+ < Dialog isOpen = { true } >
11
11
< p > This is some dialog content</ p >
12
12
</ Dialog > ,
13
13
) ;
@@ -19,7 +19,7 @@ describe("Dialog component", () => {
19
19
20
20
it ( "should render dialog header" , ( ) => {
21
21
render (
22
- < Dialog >
22
+ < Dialog isOpen = { true } >
23
23
< Dialog . Header hideCloseIcon = { false } title = { "Dialog Title" } />
24
24
</ Dialog > ,
25
25
) ;
@@ -33,7 +33,7 @@ describe("Dialog component", () => {
33
33
34
34
it ( "should render the dialog header without close icon " , ( ) => {
35
35
render (
36
- < Dialog >
36
+ < Dialog isOpen = { true } >
37
37
< Dialog . Header hideCloseIcon = { true } title = { "Dialog Title" } />
38
38
</ Dialog > ,
39
39
) ;
@@ -48,7 +48,7 @@ describe("Dialog component", () => {
48
48
49
49
it ( "should render dialog Footer" , ( ) => {
50
50
render (
51
- < Dialog >
51
+ < Dialog isOpen = { true } >
52
52
< Dialog . Footer > Dialog Footer</ Dialog . Footer >
53
53
</ Dialog > ,
54
54
) ;
@@ -60,7 +60,7 @@ it("should render dialog Footer", () => {
60
60
61
61
it ( "should close the modal when the close button in header is clicked" , async ( ) => {
62
62
render (
63
- < Dialog >
63
+ < Dialog isOpen = { true } >
64
64
< DialogHeader title = { " Modal Title" } hideCloseIcon = { false } > </ DialogHeader >
65
65
< Dialog . Body >
66
66
< p > This is some dialog content</ p >
0 commit comments