rbin-task-flow 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -797,6 +797,37 @@ export const useAuth = () => useContext(AuthContext)
|
|
|
797
797
|
- Test files: `[feature].spec.ts` (Playwright) or `[feature].cy.ts` (Cypress)
|
|
798
798
|
- Cover critical user flows: auth, main feature interactions, form submissions
|
|
799
799
|
|
|
800
|
+
### Playwright — single root folder (e2e/)
|
|
801
|
+
|
|
802
|
+
Do **not** create `playwright-report/` or `test-results/` at project root. Use **only** `e2e/` at root; put all Playwright outputs inside it:
|
|
803
|
+
|
|
804
|
+
- **`e2e/`** — tests, helpers, and outputs (single folder at root)
|
|
805
|
+
- **`e2e/.results/`** — test artifacts (traces, screenshots; replaces default `test-results/`)
|
|
806
|
+
- **`e2e/.report/`** — HTML report (replaces default `playwright-report/`)
|
|
807
|
+
|
|
808
|
+
**playwright.config.ts:**
|
|
809
|
+
|
|
810
|
+
```typescript
|
|
811
|
+
import { defineConfig } from '@playwright/test'
|
|
812
|
+
|
|
813
|
+
export default defineConfig({
|
|
814
|
+
testDir: './e2e',
|
|
815
|
+
outputDir: './e2e/.results',
|
|
816
|
+
fullyParallel: true,
|
|
817
|
+
forbidOnly: !!process.env.CI,
|
|
818
|
+
retries: process.env.CI ? 2 : 0,
|
|
819
|
+
workers: process.env.CI ? 1 : undefined,
|
|
820
|
+
reporter: [['html', { outputFolder: './e2e/.report' }]],
|
|
821
|
+
use: {
|
|
822
|
+
baseURL: 'http://localhost:3000',
|
|
823
|
+
trace: 'on-first-retry',
|
|
824
|
+
// ...
|
|
825
|
+
},
|
|
826
|
+
})
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
**.gitignore:** add `e2e/.results/` and `e2e/.report/` so outputs stay untracked. The leading `.` keeps the folders collapsed in the editor.
|
|
830
|
+
|
|
800
831
|
### Mobile (Expo / React Native)
|
|
801
832
|
- **E2E**: Detox
|
|
802
833
|
- Tests live in `e2e/` at project root
|