Skip to content

Commit

Permalink
Let dummy test start first, name step in client.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicgamedeveloper committed Aug 26, 2024
1 parent 12e0848 commit 0641730
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ jobs:
run: |
yarn test:e2e
- uses: actions/upload-artifact@v4
- name: Upload Playwright Report
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
Expand Down
6 changes: 6 additions & 0 deletions client/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@ export default defineConfig({
},
projects: [
// Setup project
{
name: 'dummy-test',
testMatch: /Pass.dummy.ts/,
use: { browserName: 'chromium' },
},
{
name: 'setup',
testMatch: /.*\.setup\.ts/,
use: { browserName: 'firefox' },
dependencies: ['dummy-test'],
},
{
name: 'chromium',
Expand Down
7 changes: 0 additions & 7 deletions client/test/e2e/tests/Auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ test.describe('Tests on Authentication Flow', () => {
await page.goto('./');
});

test('Passing test', async ({ page }) => {
const loginElement = await page.getByRole('button', {
name: 'GitLab logo Sign In with GitLab',
});
await expect(loginElement).toBeVisible();
});

test('Homepage has correct title and signin link', async ({ page }) => {
await page
.getByRole('button', { name: 'GitLab logo Sign In with GitLab' })
Expand Down
10 changes: 10 additions & 0 deletions client/test/e2e/tests/Pass.dummy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { expect } from '@playwright/test';
import test from 'test/e2e/setup/fixtures';

test('Website loads', async ({ page }) => {
await page.goto('./');
const loginElement = await page.getByRole('button', {
name: 'GitLab logo Sign In with GitLab',
});
await expect(loginElement).toBeVisible();
});

0 comments on commit 0641730

Please sign in to comment.