From 40fc308d4124b70c69665233352c254af836ca92 Mon Sep 17 00:00:00 2001 From: sushobhit Date: Thu, 12 Jan 2023 22:28:16 +0530 Subject: [PATCH 1/3] update gridURL key --- tests/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test.js b/tests/test.js index 3c86dafb..95c9a090 100644 --- a/tests/test.js +++ b/tests/test.js @@ -10,10 +10,11 @@ const USERNAME = process.env.LT_USERNAME || "username"; const KEY = process.env.LT_ACCESS_KEY || "accessKey"; // gridUrl: gridUrl can be found at automation dashboard -//const GRID_HOST = process.env.GRID_HOST || "@hub.sushobhit.dev.lambdatest.io/wd/hub"; //dev const GRID_HOST = process.env.GRID_HOST || "@hub.lambdatest.com/wd/hub"; //connect to lambdatest hub +const GRID_URL = process.env.GRID_URL || "GRID_URL"; + async function searchTextOnGoogle() { var keys = process.argv; console.log(keys); @@ -44,10 +45,9 @@ async function searchTextOnGoogle() { capabilities.tunnel = true; } - var gridUrl = "https://" + USERNAME + ":" + KEY + GRID_HOST; + var gridUrl = GRID_URL; console.log("gridUrl : ", gridUrl); console.log("GITHUB_REPOSITORY : ", process.env.GITHUB_REPOSITORY); - console.log("GITHUB_URL : ", process.env.GITHUB_URL); console.log(capabilities); console.log("Running " + parallelCount + " parallel tests "); From 5146b82a105c78064056db81b663d429d631f59b Mon Sep 17 00:00:00 2001 From: sushobhit Date: Thu, 12 Jan 2023 22:31:33 +0530 Subject: [PATCH 2/3] update URL --- tests/test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test.js b/tests/test.js index 95c9a090..71e16666 100644 --- a/tests/test.js +++ b/tests/test.js @@ -74,6 +74,7 @@ async function startTest(gridUrl, capabilities, name) { // navigate to a url let url = "https://www.lambdatest.com"; + url = "https://www.lambdatest.com/enterprise"; console.log(url); await driver .get(url) From 50be5605d0ca1c1dab4397e3bde956b2e9007c51 Mon Sep 17 00:00:00 2001 From: sushobhit Date: Fri, 13 Jan 2023 18:03:17 +0530 Subject: [PATCH 3/3] update CI --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7dd3e01f..c6ffc44f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,8 +11,8 @@ env: GRID_URL: ${{ secrets.GRID_URL }} jobs: - Find-GitSHA: - name: find Git Sha + SmartUI-Gihub-Action: + name: Execute SmartUI Test with Github App Integration runs-on: ubuntu-latest steps: - uses: actions/checkout@v1