Skip to content
Snippets Groups Projects
Commit 92294b13 authored by Artur Carvalho's avatar Artur Carvalho
Browse files

Add ci initial configuration

parent e0afaebc
No related branches found
No related tags found
1 merge request!1Add initial libraries
Pipeline #67665 failed
stages:
- build
- test
build app:
stage: build
image: node:16-alpine
script:
- npm ci
- npm run build
- echo "ENV URL $CI_ENVIRONMENT_URL"
artifacts:
paths:
- build
unit tests:
stage: test
image: node:16-alpine
script:
- npm ci
- npm run test
......@@ -4,5 +4,5 @@ import { test, expect } from "@playwright/test";
// https://playwright.dev/docs/intro
test("visits the app root url", async ({ page }) => {
await page.goto("/");
await expect(page.locator("div.greetings > h1")).toHaveText("You did it!");
await expect(page.locator("#app > div > main")).toHaveText("This is a Vvue playground.");
});
......@@ -34,7 +34,7 @@ const config: PlaywrightTestConfig = {
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout: 0,
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:5173",
baseURL: process.env.CI_ENVIRONMENT_URL || "http://localhost:5173",
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment