Skip to content

Commit

Permalink
Test2
Browse files Browse the repository at this point in the history
  • Loading branch information
vedmaka committed Nov 12, 2023
1 parent 97acb11 commit 475aa31
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
# We could perform the build in a separate job, but why for? let's save some bandwidth on caches
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
Expand All @@ -165,12 +166,13 @@ jobs:

- name: Give containers a moment to init
shell: bash
run: sleep 30s
run: sleep 10s

- name: Wait for wiki
shell: bash
run: curl --head -X GET --retry 10 --retry-connrefused --retry-delay 10 http://localhost:8000

# todo, migrate to docker image? https://playwright.dev/docs/docker
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
5 changes: 2 additions & 3 deletions e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
/* Run tests in files in parallel */
fullyParallel: true,
fullyParallel: false,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
Expand All @@ -24,8 +24,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://127.0.0.1:3000',

baseURL: 'http://localhost:8000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
Expand Down
3 changes: 1 addition & 2 deletions e2e/tests/example.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { test, expect } from '@playwright/test';

test('has title', async ({ page }) => {
await page.goto('http://localhost:8000/');

await page.goto('/');
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/MediaWiki/);
});

0 comments on commit 475aa31

Please sign in to comment.