File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,17 @@ describe('Viewing Home page', () => {
51
51
error = false
52
52
} )
53
53
it ( 'should show the search bar.' , ( ) => {
54
- cy . get ( "[data-cy='search-bar']" ) . should ( 'exist' ) . then ( ( ) => {
54
+ cy . get ( "form [data-cy='search-bar']" ) . should ( 'exist' ) . then ( ( ) => {
55
55
cy . log ( 'Search bar renders successfully.' )
56
56
} )
57
57
} )
58
58
it ( 'should show the about text.' , ( ) => {
59
- cy . get ( 'TitledTextBox [data-cy=" about-us"]' ) . should ( 'exist' ) . then ( ( ) => {
59
+ cy . get ( "section [data-cy=' about-us-section']" ) . should ( 'exist' ) . then ( ( ) => {
60
60
cy . log ( 'Abouttext renders successfully.' )
61
61
} )
62
62
} )
63
63
it ( 'should show the featured services cards.' , ( ) => {
64
- cy . get ( "row [data-cy='item-group']" ) . should ( 'exist' ) . then ( ( ) => {
64
+ cy . get ( "div [data-cy='item-group']" ) . should ( 'exist' ) . then ( ( ) => {
65
65
cy . log ( 'Status bar renders successfully.' )
66
66
} )
67
67
} )
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 } data-cy = 'about-us' />
47
+ < TitledTextBox title = { ABOUT_US_TITLE } text = { ABOUT_US_TEXT } dataCy = 'about-us-section ' />
48
48
{ isError ? (
49
49
< Notice
50
50
alert = { configureErrors ( [ isError ] ) }
You can’t perform that action at this time.
0 commit comments