Skip to content

Commit 4163f1e

Browse files
authored
Merge pull request #7 from LambdaTest/stage
update gridURL key
2 parents 8515ca7 + 50be560 commit 4163f1e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ env:
1111
GRID_URL: ${{ secrets.GRID_URL }}
1212

1313
jobs:
14-
Find-GitSHA:
15-
name: find Git Sha
14+
SmartUI-Gihub-Action:
15+
name: Execute SmartUI Test with Github App Integration
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v1

tests/test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ const USERNAME = process.env.LT_USERNAME || "username";
1010
const KEY = process.env.LT_ACCESS_KEY || "accessKey";
1111

1212
// gridUrl: gridUrl can be found at automation dashboard
13-
//const GRID_HOST = process.env.GRID_HOST || "@hub.sushobhit.dev.lambdatest.io/wd/hub"; //dev
1413
const GRID_HOST =
1514
process.env.GRID_HOST || "@hub.lambdatest.com/wd/hub"; //connect to lambdatest hub
1615

16+
const GRID_URL = process.env.GRID_URL || "GRID_URL";
17+
1718
async function searchTextOnGoogle() {
1819
var keys = process.argv;
1920
console.log(keys);
@@ -44,10 +45,9 @@ async function searchTextOnGoogle() {
4445
capabilities.tunnel = true;
4546
}
4647

47-
var gridUrl = "https://" + USERNAME + ":" + KEY + GRID_HOST;
48+
var gridUrl = GRID_URL;
4849
console.log("gridUrl : ", gridUrl);
4950
console.log("GITHUB_REPOSITORY : ", process.env.GITHUB_REPOSITORY);
50-
console.log("GITHUB_URL : ", process.env.GITHUB_URL);
5151

5252
console.log(capabilities);
5353
console.log("Running " + parallelCount + " parallel tests ");
@@ -74,6 +74,7 @@ async function startTest(gridUrl, capabilities, name) {
7474

7575
// navigate to a url
7676
let url = "https://www.lambdatest.com";
77+
url = "https://www.lambdatest.com/enterprise";
7778
console.log(url);
7879
await driver
7980
.get(url)

0 commit comments

Comments
 (0)