Move build smoke tests to a separate folder

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-12-16 15:06:05 +01:00
parent 836b0ccc09
commit d5f690926e
4 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -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
View File
@@ -1,4 +1,4 @@
build/
/build/
node_modules/
NOTES
+1
View File
@@ -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.