Skip to content

Commit 4750a39

Browse files
07souravkundafrancisf
authored andcommitted
update: local test
1 parent 4336041 commit 4750a39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

features/local.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Feature: 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"

features/step_definitions/local-steps.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
var assert = require('assert');
44
const { When, Then } = require("@cucumber/cucumber");
55

6-
When(/^I open health check$/, async function () {
7-
await this.driver.get('http://bs-local.com:45691/check');
6+
When(/^I open dashboard$/, async function () {
7+
await this.driver.get('http://bs-local.com:45454/');
88
});
99

1010
Then(/^I should see "([^"]*)"$/, 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
});

0 commit comments

Comments
 (0)