mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-18 19:30:27 +08:00
Move build smoke tests to a separate folder
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Build app
|
||||
run: npm run build
|
||||
- name: Run Playwright build smoke test
|
||||
run: npm run test:e2e -- --project chromium --config playwright.buildSmoke.config.ts tests/e2e/buildSmoke.spec.ts
|
||||
run: npm run test:e2e -- --project chromium --config playwright.buildSmoke.config.ts
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
with:
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
build/
|
||||
/build/
|
||||
node_modules/
|
||||
NOTES
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import base from "./playwright.config.js";
|
||||
|
||||
const config: PlaywrightTestConfig = {
|
||||
...base,
|
||||
testDir: "./tests/build",
|
||||
use: {
|
||||
...base.use,
|
||||
baseURL: "http://localhost:4173",
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
import { test, expect } from "@tests/support/fixtures.js";
|
||||
|
||||
test("exceptions in production build", async ({ page, browserName }) => {
|
||||
// It's enough to check this once.
|
||||
if (browserName !== "chromium") {
|
||||
test.skip();
|
||||
}
|
||||
|
||||
test("exceptions in production build", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
// Wait for scripts to finish executing, there might be exceptions that
|
||||
// happen after the page has been painted.
|
||||
Reference in New Issue
Block a user