File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -43,4 +43,27 @@ describe('Viewing Home page', () => {
43
43
} )
44
44
} )
45
45
} )
46
- } )
46
+
47
+ context ( 'home page components are loading successfully, &' , ( ) => {
48
+ before ( ( ) => {
49
+ featuredServices = true
50
+ loading =
51
+ error = false
52
+ } )
53
+ it ( 'should show the search bar.' , ( ) => {
54
+ cy . get ( "[data-cy='search-bar']" ) . should ( 'exist' ) . then ( ( ) => {
55
+ cy . log ( 'Search bar renders successfully.' )
56
+ } )
57
+ } )
58
+ it ( 'should show the about text.' , ( ) => {
59
+ cy . get ( 'TitledTextBox[data-cy="about-us"]' ) . should ( 'exist' ) . then ( ( ) => {
60
+ cy . log ( 'Abouttext renders successfully.' )
61
+ } )
62
+ } )
63
+ it ( 'should show the featured services cards.' , ( ) => {
64
+ cy . get ( "row[data-cy='item-group']" ) . should ( 'exist' ) . then ( ( ) => {
65
+ cy . log ( 'Status bar renders successfully.' )
66
+ } )
67
+ } )
68
+ } )
69
+ } )
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const Home = () => {
44
44
/>
45
45
< div className = 'container' >
46
46
< SearchBar onSubmit = { handleOnSubmit } />
47
- < TitledTextBox title = { ABOUT_US_TITLE } text = { ABOUT_US_TEXT } />
47
+ < TitledTextBox title = { ABOUT_US_TITLE } text = { ABOUT_US_TEXT } data-cy = 'about-us' />
48
48
{ isError ? (
49
49
< Notice
50
50
alert = { configureErrors ( [ isError ] ) }
You can’t perform that action at this time.
0 commit comments