This repository was archived by the owner on Nov 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
containers/CommunitiesBanner Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const CommunitiesBannerContainer = ({ communitiesBanner }) => {
36
36
} = communitiesBanner
37
37
38
38
return (
39
- < BannerContainer >
39
+ < BannerContainer testid = "communities-banner" >
40
40
< BannerContentWrapper >
41
41
< ContentWrapper >
42
42
< SearchBox
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ import styled from 'styled-components'
2
2
3
3
import { theme , cs } from '@utils'
4
4
5
- export const BannerContainer = styled . div `
5
+ export const BannerContainer = styled . div . attrs ( props => ( {
6
+ 'data-testid' : props . testid ,
7
+ } ) ) `
6
8
${ cs . flexColumn ( 'justify-center' ) } ;
7
9
8
10
position: relative;
Original file line number Diff line number Diff line change @@ -18,4 +18,14 @@ describe('basic layout', () => {
18
18
cy . id ( 'header-search' ) . should ( 'be.visible' )
19
19
cy . id ( 'header-search-icon' ) . should ( 'be.visible' )
20
20
} )
21
+
22
+ it ( 'communities page' , ( ) => {
23
+ cy . visit ( '/communities' )
24
+ cy . id ( 'header-search' ) . should ( 'be.visible' )
25
+ cy . id ( 'header-search-icon' ) . should ( 'be.visible' )
26
+
27
+ cy . id ( 'communities-banner' ) . should ( 'be.visible' )
28
+
29
+ cy . id ( 'footer' ) . should ( 'be.visible' )
30
+ } )
21
31
} )
You can’t perform that action at this time.
0 commit comments