File tree Expand file tree Collapse file tree 1 file changed +8
-26
lines changed
src/components/Ui/IllustratedBanner Expand file tree Collapse file tree 1 file changed +8
-26
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ describe('<IllustratedBanner />', () => {
1414 < IllustratedBanner
1515 title = "With Help"
1616 subtitle = "Subtitle"
17- helpButtonText = "Need Help?"
18- helpLink = "https://example.com"
17+ help = { {
18+ link : 'https://example.com' ,
19+ buttonText : 'Need Help?' ,
20+ } }
1921 /> ,
2022 ) ;
2123
@@ -27,28 +29,6 @@ describe('<IllustratedBanner />', () => {
2729 ) ;
2830 } ) ;
2931
30- it ( 'does not render button when props are missing' , ( ) => {
31- cy . mount (
32- < IllustratedBanner
33- title = "No Button"
34- subtitle = "Nothing here"
35- helpButtonText = "Help"
36- /> ,
37- ) ;
38-
39- cy . get ( 'ui5-button' ) . should ( 'not.exist' ) ;
40-
41- cy . mount (
42- < IllustratedBanner
43- title = "Still No Button"
44- subtitle = "Still nothing"
45- helpLink = "https://example.com"
46- /> ,
47- ) ;
48-
49- cy . get ( 'ui5-button' ) . should ( 'not.exist' ) ;
50- } ) ;
51-
5232 it ( 'opens a new tab when button is clicked' , ( ) => {
5333 // Stub window.open
5434 cy . window ( ) . then ( ( win ) => {
@@ -59,8 +39,10 @@ describe('<IllustratedBanner />', () => {
5939 < IllustratedBanner
6040 title = "Click Test"
6141 subtitle = "Check window.open"
62- helpButtonText = "Go"
63- helpLink = "https://example.com"
42+ help = { {
43+ link : 'https://example.com' ,
44+ buttonText : 'Go' ,
45+ } }
6446 /> ,
6547 ) ;
6648
You can’t perform that action at this time.
0 commit comments