File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
describe ( 'Header' , ( ) => {
2
2
beforeEach ( ( ) => {
3
+ cy . log ( 'ENV:' , Cypress . env ( 'ENV' ) ) ;
4
+ cy . log ( 'HOST:' , Cypress . env ( 'HOST' ) ) ;
5
+
3
6
if ( Cypress . env ( 'ENV' ) == 'dev' ) {
4
7
cy . visit ( `http://${ Cypress . env ( 'HOST' ) } /` ) ;
5
8
} else {
@@ -13,17 +16,12 @@ describe('Header', () => {
13
16
. should ( 'be.visible' )
14
17
} ) ;
15
18
16
- it ( 'checks environment variables' , ( ) => {
17
- cy . log ( 'ENV:' , Cypress . env ( 'ENV' ) ) ;
18
- cy . log ( 'HOST:' , Cypress . env ( 'HOST' ) ) ;
19
- } ) ;
20
-
21
19
it ( 'should have a complete header' , ( ) => {
22
20
cy . get ( '[aria-label="logo"]' ) . should ( 'be.visible' ) ;
23
21
cy . get ( '[aria-label="search-field"]' ) . should ( 'be.visible' ) ;
24
22
cy . get ( '[aria-label="documentation-button"]' ) . should ( 'be.visible' ) ;
25
23
26
- if ( Cypress . env ( 'ENV' ) = = 'dev' ) {
24
+ if ( Cypress . env ( 'ENV' ) ! = 'dev' ) {
27
25
cy . get ( '[aria-label="user-menu"]' ) . should ( 'be.visible' ) ;
28
26
}
29
27
} ) ;
You can’t perform that action at this time.
0 commit comments