Skip to content

Commit

Permalink
Fix deployed playground (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeguerin committed Aug 29, 2022
1 parent ab758a7 commit 5e29ad9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 19 deletions.
30 changes: 15 additions & 15 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion packages/playground/e2e/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type PlaywrightTestConfig } from "@playwright/test";
import { devices, type PlaywrightTestConfig } from "@playwright/test";
import { dirname, resolve } from "path";
import { fileURLToPath } from "url";

Expand All @@ -18,6 +18,16 @@ const config: PlaywrightTestConfig = {
baseURL: resolve(root, "dist"),
trace: "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
{
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},
],
testMatch: "*.e2e.ts",
};
export default config;
2 changes: 1 addition & 1 deletion packages/playground/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script async src="./node_modules/es-module-shims/dist/es-module-shims.js"></script>
<script type="module" async src="./node_modules/es-module-shims"></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cadl Playground</title>
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
"mocha-junit-reporter": "~2.0.2",
"mocha-multi-reporters": "~1.5.1",
"c8": "~7.11.0",
"@playwright/test": "~1.22.2",
"playwright": "~1.22.2",
"@playwright/test": "~1.25.1",
"playwright": "~1.25.1",
"rimraf": "~3.0.2",
"cross-env": "~7.0.3",
"typescript": "~4.7.2",
Expand Down

0 comments on commit 5e29ad9

Please sign in to comment.