1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 04:35:25 +00:00
code-server-2/test/e2e/browser.test.ts

16 lines
509 B
TypeScript
Raw Normal View History

import { test, expect } from "./baseFixture"
2021-03-30 18:35:36 +00:00
2021-04-14 19:03:47 +00:00
// This is a "gut-check" test to make sure playwright is working as expected
test.describe("browser", () => {
test("browser should display correct userAgent", async ({ codeServerPage, browserName }) => {
const displayNames = {
chromium: "Chrome",
firefox: "Firefox",
webkit: "Safari",
}
const userAgent = await codeServerPage.page.evaluate("navigator.userAgent")
expect(userAgent).toContain(displayNames[browserName])
})
2021-03-30 18:35:36 +00:00
})