File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11Feature : BrowserStack Local Testing
22
33 Scenario : Can check tunnel working
4- When I open health check
5- Then I should see "Up and running "
4+ When I open dashboard
5+ Then I should see "BrowserStack Local "
Original file line number Diff line number Diff line change 33var assert = require ( 'assert' ) ;
44const { When, Then } = require ( "@cucumber/cucumber" ) ;
55
6- When ( / ^ I o p e n h e a l t h c h e c k $ / , async function ( ) {
7- await this . driver . get ( 'http://bs-local.com:45691/check ' ) ;
6+ When ( / ^ I o p e n d a s h b o a r d $ / , async function ( ) {
7+ await this . driver . get ( 'http://bs-local.com:45454/ ' ) ;
88} ) ;
99
1010Then ( / ^ I s h o u l d s e e " ( [ ^ " ] * ) " $ / , async function ( sourceMatch ) {
11- let source = await this . driver . getPageSource ( ) ;
12- assert . equal ( source . indexOf ( sourceMatch ) > - 1 , true , 'Expected source to contain ' + sourceMatch ) ;
11+ let title = await this . driver . getTitle ( ) ;
12+ assert . equal ( title . indexOf ( sourceMatch ) > - 1 , true , 'Expected source to contain ' + sourceMatch ) ;
1313} ) ;
You can’t perform that action at this time.
0 commit comments