mirror of
https://github.com/CorentinTh/it-tools.git
synced 2024-08-16 08:40:44 +03:00
Compare commits
3 Commits
6be371be72
...
2bd17e94cc
Author | SHA1 | Date | |
---|---|---|---|
|
2bd17e94cc | ||
|
f19aeaf418 | ||
|
2ef2b39fbc |
@ -138,5 +138,6 @@
|
|||||||
"vitest": "^0.34.0",
|
"vitest": "^0.34.0",
|
||||||
"workbox-window": "^7.0.0",
|
"workbox-window": "^7.0.0",
|
||||||
"zx": "^7.2.1"
|
"zx": "^7.2.1"
|
||||||
}
|
},
|
||||||
|
"packageManager": "pnpm@8.15.3"
|
||||||
}
|
}
|
||||||
|
15
src/tools/all-tools.e2e.spec.ts
Normal file
15
src/tools/all-tools.e2e.spec.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { expect, test } from '@playwright/test';
|
||||||
|
import _ from 'lodash';
|
||||||
|
import { toolsByCategory } from './index';
|
||||||
|
|
||||||
|
for (const tool of _.flatten(toolsByCategory.map(category => category.components))) {
|
||||||
|
test.describe(`Tool - ${tool.name}`, () => {
|
||||||
|
test.beforeEach(async ({ page }) => {
|
||||||
|
await page.goto(tool.path);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Loads correctly (has correct title)', async ({ page }) => {
|
||||||
|
await expect(page).toHaveTitle(`${tool.name} - IT Tools`);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
8
src/tsconfig.json
Normal file
8
src/tsconfig.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./*"]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user