Skip to content

Commit 124af79

Browse files
authored
Merge pull request #8 from wordingone/codex/implement-separated-e2e-architecture-ky1cil
Install dependencies for Playwright E2E tests
2 parents dbb15fc + 6ceae9d commit 124af79

40 files changed

Lines changed: 427 additions & 1 deletion

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: 20
16+
codex/implement-separated-e2e-architecture-ky1cil
17+
- run: cd LumenIO/core && npm test
1618
- run: cd core && npm test
19+
main
1720

1821
variants:
1922
needs: core
@@ -26,7 +29,10 @@ jobs:
2629
- uses: actions/setup-node@v4
2730
with:
2831
node-version: 20
32+
codex/implement-separated-e2e-architecture-ky1cil
33+
- run: cd LumenIO/variants/${{ matrix.variant }} && npm test
2934
- run: cd variants/${{ matrix.variant }} && npm test
35+
main
3036

3137
e2e:
3238
needs: variants
@@ -39,4 +45,11 @@ jobs:
3945
- uses: actions/setup-node@v4
4046
with:
4147
node-version: 20
42-
- run: cd e2e/${{ matrix.package }} && npm test
48+
codex/implement-separated-e2e-architecture-ky1cil
49+
- run: |
50+
cd LumenIO/e2e/${{ matrix.package }}
51+
npm install
52+
npx playwright install
53+
npm test
54+
- run: cd e2e/${{ matrix.package
55+
main

LumenIO/core/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@lumenio/core",
3+
"private": true,
4+
"scripts": {
5+
"test": "vitest"
6+
},
7+
"devDependencies": {
8+
"vitest": "^1.0.0"
9+
}
10+
}

LumenIO/core/tests/sample.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { describe, it, expect } from 'vitest';
2+
3+
describe('sample', () => {
4+
it('works', () => {
5+
expect(true).toBe(true);
6+
});
7+
});
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@lumenio/e2e-mobile",
3+
"private": true,
4+
"devDependencies": {
5+
"@playwright/test": "^1.41.1"
6+
},
7+
"scripts": {
8+
"test": "playwright test"
9+
}
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig, devices } from '@playwright/test';
2+
3+
export default defineConfig({
4+
testDir: './tests',
5+
projects: [
6+
{ name: 'Pixel 5', use: { ...devices['Pixel 5'] } }
7+
]
8+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('smoke', async () => {
4+
expect(true).toBeTruthy();
5+
});
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@lumenio/e2e-mobileproj",
3+
"private": true,
4+
"devDependencies": {
5+
"@playwright/test": "^1.41.1"
6+
},
7+
"scripts": {
8+
"test": "playwright test"
9+
}
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig, devices } from '@playwright/test';
2+
3+
export default defineConfig({
4+
testDir: './tests',
5+
projects: [
6+
{ name: 'Pixel 5', use: { ...devices['Pixel 5'] } }
7+
]
8+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { test, expect } from '@playwright/test';
2+
3+
test('smoke', async () => {
4+
expect(true).toBeTruthy();
5+
});

LumenIO/e2e/e2e-pc/package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"name": "@lumenio/e2e-pc",
3+
"private": true,
4+
"devDependencies": {
5+
"@playwright/test": "^1.41.1"
6+
},
7+
"scripts": {
8+
"test": "playwright test"
9+
}
10+
}

0 commit comments

Comments
 (0)