diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dcb13886eb..123a9dd7b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -112,7 +112,7 @@ jobs: - name: Run tests run: | cd ./apps/frontend - pnpm test -- ./__tests__/browser-tests + pnpm test -- ./__tests__/browser-tests -t "chrome webdriver installed correctly" @@ -253,3 +253,13 @@ jobs: echo "WebSocket for Signalling Service is live" fi # We can add more tests here + + - Name: Install Chrome WebDriver + uses: nanasess/setup-chromedriver@v2 + with: + chromedriver-version: '130.0.6723.116' + + - name: Run Browser Test + run: | + cd ./apps/frontend + pnpm test -- ./__tests__/browser-tests diff --git a/apps/frontend/__tests__/browser-tests/browser.test.ts b/apps/frontend/__tests__/browser-tests/browser.test.ts index b3550af901..b715255fbd 100644 --- a/apps/frontend/__tests__/browser-tests/browser.test.ts +++ b/apps/frontend/__tests__/browser-tests/browser.test.ts @@ -6,7 +6,7 @@ const ETERNAL_JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3OD describe("chrome browser", () => { const options = new Chrome.Options() - .addArguments("--headless=new") as Chrome.Options; + .addArguments("--headless=new") as Chrome.Options; // uncomment locally to see the steps in action const builder = new Builder().forBrowser(Browser.CHROME).setChromeOptions(options); let driver: WebDriver; @@ -18,7 +18,7 @@ describe("chrome browser", () => { await driver.quit(); }) - describe.skip("chrome webdriver installed correctly", () => { + describe("chrome webdriver installed correctly", () => { it("does google search", async () => { await driver.get('http://www.google.com'); await driver.findElement(By.name('q')).sendKeys('webdriver', Key.RETURN);