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 diff --git a/tests/test.js b/tests/test.js index 3c86dafb..71e16666 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 "); @@ -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)