Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,25 @@ jobs:

- name: Validate generated site
run: bundle exec htmlproofer ./_site --disable-external --no-enforce-https --allow-missing-href --ignore-urls '/^\/\//'

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm

- name: Install Playwright
run: |
npm ci
npx playwright install --with-deps chromium

- name: Run Playwright tests
run: npm run test:e2e

- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v5
with:
name: playwright-report
path: playwright-report/
retention-days: 14
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ _site
vendor
.env
.vscode
node_modules
playwright-report
test-results

# Script output
tmp/pending_updates.yml
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ Use official sources for event updates:

Do not edit files in ```_site``` directly. That directory is generated by Jekyll; update the source files and regenerate the site instead.

## Testing

The Playwright suite uses HTTP-level checks for page and feed availability, and browser-level checks only for visitor-facing rendering and navigation behavior. After installing the Ruby and Node.js dependencies, install Chromium once and run the suite:

```shell
npx playwright install chromium
npm run test:e2e
```

Playwright starts the local Jekyll server automatically. Set `PLAYWRIGHT_TEST_BASE_URL` to test an already-running or deployed site instead.

## Eligible Conferences and Workshops

Focus is a goal of this project and as a result, only conferences, un-conferences and workshops that are specifically for software testing are listed. That means that if a conference covers software testing, but is not specifically for testers, then it is left out.
Expand Down
58 changes: 58 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "testingconferences.github.io",
"private": true,
"scripts": {
"test:e2e": "playwright test",
"test:e2e:report": "playwright show-report"
},
"devDependencies": {
"@playwright/test": "1.64.1"
}
}
34 changes: 34 additions & 0 deletions playwright.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const { defineConfig, devices } = require('@playwright/test');

const baseURL = process.env.PLAYWRIGHT_TEST_BASE_URL || 'http://127.0.0.1:4000';

module.exports = defineConfig({
testDir: './test/playwright',
fullyParallel: true,
forbidOnly: Boolean(process.env.CI),
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
globalTimeout: 5 * 60 * 1000,
reporter: process.env.CI
? [['github'], ['html', { open: 'never' }]]
: [['list'], ['html', { open: 'never' }]],
use: {
baseURL,
trace: 'retain-on-failure',
screenshot: 'only-on-failure'
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] }
}
],
webServer: process.env.PLAYWRIGHT_TEST_BASE_URL
? undefined
: {
command: 'bundle exec jekyll serve --host 127.0.0.1 --port 4000 --no-watch',
url: baseURL,
reuseExistingServer: !process.env.CI,
timeout: 120 * 1000
}
});
22 changes: 22 additions & 0 deletions test/playwright/site-api.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const { test, expect } = require('@playwright/test');

test.describe('site endpoints', () => {
test('core pages return HTML successfully', async ({ request }) => {
const paths = ['/', '/past/', '/news/', '/videos/', '/about/', '/subscribe/'];

for (const path of paths) {
const response = await request.get(path);

expect(response.ok(), `${path} should return a successful response`).toBe(true);
expect(response.headers()['content-type']).toContain('text/html');
}
});

test('RSS feed returns XML with the site title', async ({ request }) => {
const response = await request.get('/feed.xml');

expect(response.ok()).toBe(true);
expect(response.headers()['content-type']).toMatch(/(?:application|text)\/xml/);
await expect(response.text()).resolves.toContain('<title>Software Testing Conferences</title>');
});
});
28 changes: 28 additions & 0 deletions test/playwright/site-ui.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const { test, expect } = require('@playwright/test');

test.describe('visitor experience', () => {
test('upcoming conferences show their essential details', async ({ page }) => {
await page.goto('/');

await expect(page).toHaveTitle('Software Testing Conferences');

const conferences = page.locator('.post-list > li');
expect(await conferences.count()).toBeGreaterThan(0);

const firstConference = conferences.first();
await expect(firstConference.getByRole('heading').getByRole('link')).toBeVisible();
await expect(firstConference.getByRole('img', { name: 'Dates' })).toBeVisible();
await expect(firstConference.getByRole('img', { name: 'Location' })).toBeVisible();
});

test('primary navigation opens the archive and marks it active', async ({ page }) => {
await page.goto('/');

await expect(page.getByRole('link', { name: 'Upcoming', exact: true })).toHaveClass(/active/);
await page.getByRole('link', { name: 'Past', exact: true }).click();

await expect(page).toHaveURL(/\/past\/$/);
await expect(page).toHaveTitle('Past Software Testing Conferences');
await expect(page.getByRole('link', { name: 'Past', exact: true })).toHaveClass(/active/);
});
});
Loading