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
|
- name: Build app
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Run Playwright build smoke test
|
- 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
|
- uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
build/
|
/build/
|
||||||
node_modules/
|
node_modules/
|
||||||
NOTES
|
NOTES
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import base from "./playwright.config.js";
|
|||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
...base,
|
...base,
|
||||||
|
testDir: "./tests/build",
|
||||||
use: {
|
use: {
|
||||||
...base.use,
|
...base.use,
|
||||||
baseURL: "http://localhost:4173",
|
baseURL: "http://localhost:4173",
|
||||||
|
|||||||
@@ -1,11 +1,6 @@
|
|||||||
import { test, expect } from "@tests/support/fixtures.js";
|
import { test, expect } from "@tests/support/fixtures.js";
|
||||||
|
|
||||||
test("exceptions in production build", async ({ page, browserName }) => {
|
test("exceptions in production build", async ({ page }) => {
|
||||||
// It's enough to check this once.
|
|
||||||
if (browserName !== "chromium") {
|
|
||||||
test.skip();
|
|
||||||
}
|
|
||||||
|
|
||||||
await page.goto("/");
|
await page.goto("/");
|
||||||
// Wait for scripts to finish executing, there might be exceptions that
|
// Wait for scripts to finish executing, there might be exceptions that
|
||||||
// happen after the page has been painted.
|
// happen after the page has been painted.
|
||||||
Reference in New Issue
Block a user