@designcrowd/fe-shared-lib 1.8.4-edge-fallback-0 → 1.8.4-edge-fallback-2

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.
Files changed (41) hide show
  1. package/CLAUDE.md +12 -4
  2. package/package.json +1 -1
  3. package/scripts/publish-uat.sh +120 -0
  4. package/.claude/scheduled_tasks.lock +0 -1
  5. package/.claude/settings.local.json +0 -54
  6. package/.claude/skills/playwright-cli/SKILL.md +0 -278
  7. package/.claude/skills/playwright-cli/references/request-mocking.md +0 -87
  8. package/.claude/skills/playwright-cli/references/running-code.md +0 -232
  9. package/.claude/skills/playwright-cli/references/session-management.md +0 -169
  10. package/.claude/skills/playwright-cli/references/storage-state.md +0 -275
  11. package/.claude/skills/playwright-cli/references/test-generation.md +0 -88
  12. package/.claude/skills/playwright-cli/references/tracing.md +0 -139
  13. package/.claude/skills/playwright-cli/references/video-recording.md +0 -43
  14. package/.playwright-cli/page-2026-04-27T23-43-18-200Z.yml +0 -68
  15. package/.playwright-cli/page-2026-04-28T01-20-32-525Z.yml +0 -451
  16. package/.playwright-cli/page-2026-05-05T01-37-40-892Z.yml +0 -68
  17. package/.playwright-cli/page-2026-05-05T01-37-44-367Z.yml +0 -448
  18. package/.playwright-cli/page-2026-05-05T01-37-54-274Z.yml +0 -445
  19. package/.playwright-cli/page-2026-05-05T01-38-02-746Z.yml +0 -448
  20. package/.playwright-cli/page-2026-05-05T01-38-11-519Z.yml +0 -68
  21. package/.playwright-cli/page-2026-05-05T01-38-30-060Z.yml +0 -440
  22. package/.playwright-cli/page-2026-05-05T01-38-42-137Z.yml +0 -68
  23. package/.playwright-cli/page-2026-05-05T01-38-45-269Z.yml +0 -445
  24. package/.playwright-cli/page-2026-05-05T01-43-09-147Z.yml +0 -68
  25. package/.playwright-cli/page-2026-05-05T01-43-14-323Z.yml +0 -448
  26. package/.playwright-cli/page-2026-05-05T01-43-31-765Z.png +0 -0
  27. package/.playwright-cli/page-2026-05-05T01-43-41-236Z.yml +0 -445
  28. package/.playwright-cli/page-2026-05-05T01-43-45-996Z.png +0 -0
  29. package/.playwright-cli/page-2026-05-05T01-43-55-336Z.yml +0 -448
  30. package/.playwright-cli/page-2026-05-05T01-43-59-714Z.png +0 -0
  31. package/.playwright-cli/page-2026-05-05T01-44-09-967Z.yml +0 -445
  32. package/.playwright-cli/page-2026-05-05T01-44-11-884Z.yml +0 -68
  33. package/.playwright-cli/page-2026-05-05T01-44-18-229Z.yml +0 -440
  34. package/.playwright-cli/page-2026-05-05T01-44-54-928Z.png +0 -0
  35. package/.playwright-cli/page-2026-05-05T01-45-20-437Z.yml +0 -0
  36. package/.playwright-cli/page-2026-05-05T01-45-23-521Z.yml +0 -438
  37. package/.playwright-cli/page-2026-05-05T01-45-39-082Z.yml +0 -438
  38. package/.playwright-cli/page-2026-05-05T01-45-55-158Z.yml +0 -435
  39. package/.playwright-cli/page-2026-05-05T01-46-09-528Z.png +0 -0
  40. package/force-unsupported-hidden.png +0 -0
  41. package/force-unsupported-with-button.png +0 -0
@@ -1,88 +0,0 @@
1
- # Test Generation
2
-
3
- Generate Playwright test code automatically as you interact with the browser.
4
-
5
- ## How It Works
6
-
7
- Every action you perform with `playwright-cli` generates corresponding Playwright TypeScript code.
8
- This code appears in the output and can be copied directly into your test files.
9
-
10
- ## Example Workflow
11
-
12
- ```bash
13
- # Start a session
14
- playwright-cli open https://example.com/login
15
-
16
- # Take a snapshot to see elements
17
- playwright-cli snapshot
18
- # Output shows: e1 [textbox "Email"], e2 [textbox "Password"], e3 [button "Sign In"]
19
-
20
- # Fill form fields - generates code automatically
21
- playwright-cli fill e1 "user@example.com"
22
- # Ran Playwright code:
23
- # await page.getByRole('textbox', { name: 'Email' }).fill('user@example.com');
24
-
25
- playwright-cli fill e2 "password123"
26
- # Ran Playwright code:
27
- # await page.getByRole('textbox', { name: 'Password' }).fill('password123');
28
-
29
- playwright-cli click e3
30
- # Ran Playwright code:
31
- # await page.getByRole('button', { name: 'Sign In' }).click();
32
- ```
33
-
34
- ## Building a Test File
35
-
36
- Collect the generated code into a Playwright test:
37
-
38
- ```typescript
39
- import { test, expect } from '@playwright/test';
40
-
41
- test('login flow', async ({ page }) => {
42
- // Generated code from playwright-cli session:
43
- await page.goto('https://example.com/login');
44
- await page.getByRole('textbox', { name: 'Email' }).fill('user@example.com');
45
- await page.getByRole('textbox', { name: 'Password' }).fill('password123');
46
- await page.getByRole('button', { name: 'Sign In' }).click();
47
-
48
- // Add assertions
49
- await expect(page).toHaveURL(/.*dashboard/);
50
- });
51
- ```
52
-
53
- ## Best Practices
54
-
55
- ### 1. Use Semantic Locators
56
-
57
- The generated code uses role-based locators when possible, which are more resilient:
58
-
59
- ```typescript
60
- // Generated (good - semantic)
61
- await page.getByRole('button', { name: 'Submit' }).click();
62
-
63
- // Avoid (fragile - CSS selectors)
64
- await page.locator('#submit-btn').click();
65
- ```
66
-
67
- ### 2. Explore Before Recording
68
-
69
- Take snapshots to understand the page structure before recording actions:
70
-
71
- ```bash
72
- playwright-cli open https://example.com
73
- playwright-cli snapshot
74
- # Review the element structure
75
- playwright-cli click e5
76
- ```
77
-
78
- ### 3. Add Assertions Manually
79
-
80
- Generated code captures actions but not assertions. Add expectations in your test:
81
-
82
- ```typescript
83
- // Generated action
84
- await page.getByRole('button', { name: 'Submit' }).click();
85
-
86
- // Manual assertion
87
- await expect(page.getByText('Success')).toBeVisible();
88
- ```
@@ -1,139 +0,0 @@
1
- # Tracing
2
-
3
- Capture detailed execution traces for debugging and analysis. Traces include DOM snapshots, screenshots, network activity, and console logs.
4
-
5
- ## Basic Usage
6
-
7
- ```bash
8
- # Start trace recording
9
- playwright-cli tracing-start
10
-
11
- # Perform actions
12
- playwright-cli open https://example.com
13
- playwright-cli click e1
14
- playwright-cli fill e2 "test"
15
-
16
- # Stop trace recording
17
- playwright-cli tracing-stop
18
- ```
19
-
20
- ## Trace Output Files
21
-
22
- When you start tracing, Playwright creates a `traces/` directory with several files:
23
-
24
- ### `trace-{timestamp}.trace`
25
-
26
- **Action log** - The main trace file containing:
27
- - Every action performed (clicks, fills, navigations)
28
- - DOM snapshots before and after each action
29
- - Screenshots at each step
30
- - Timing information
31
- - Console messages
32
- - Source locations
33
-
34
- ### `trace-{timestamp}.network`
35
-
36
- **Network log** - Complete network activity:
37
- - All HTTP requests and responses
38
- - Request headers and bodies
39
- - Response headers and bodies
40
- - Timing (DNS, connect, TLS, TTFB, download)
41
- - Resource sizes
42
- - Failed requests and errors
43
-
44
- ### `resources/`
45
-
46
- **Resources directory** - Cached resources:
47
- - Images, fonts, stylesheets, scripts
48
- - Response bodies for replay
49
- - Assets needed to reconstruct page state
50
-
51
- ## What Traces Capture
52
-
53
- | Category | Details |
54
- |----------|---------|
55
- | **Actions** | Clicks, fills, hovers, keyboard input, navigations |
56
- | **DOM** | Full DOM snapshot before/after each action |
57
- | **Screenshots** | Visual state at each step |
58
- | **Network** | All requests, responses, headers, bodies, timing |
59
- | **Console** | All console.log, warn, error messages |
60
- | **Timing** | Precise timing for each operation |
61
-
62
- ## Use Cases
63
-
64
- ### Debugging Failed Actions
65
-
66
- ```bash
67
- playwright-cli tracing-start
68
- playwright-cli open https://app.example.com
69
-
70
- # This click fails - why?
71
- playwright-cli click e5
72
-
73
- playwright-cli tracing-stop
74
- # Open trace to see DOM state when click was attempted
75
- ```
76
-
77
- ### Analyzing Performance
78
-
79
- ```bash
80
- playwright-cli tracing-start
81
- playwright-cli open https://slow-site.com
82
- playwright-cli tracing-stop
83
-
84
- # View network waterfall to identify slow resources
85
- ```
86
-
87
- ### Capturing Evidence
88
-
89
- ```bash
90
- # Record a complete user flow for documentation
91
- playwright-cli tracing-start
92
-
93
- playwright-cli open https://app.example.com/checkout
94
- playwright-cli fill e1 "4111111111111111"
95
- playwright-cli fill e2 "12/25"
96
- playwright-cli fill e3 "123"
97
- playwright-cli click e4
98
-
99
- playwright-cli tracing-stop
100
- # Trace shows exact sequence of events
101
- ```
102
-
103
- ## Trace vs Video vs Screenshot
104
-
105
- | Feature | Trace | Video | Screenshot |
106
- |---------|-------|-------|------------|
107
- | **Format** | .trace file | .webm video | .png/.jpeg image |
108
- | **DOM inspection** | Yes | No | No |
109
- | **Network details** | Yes | No | No |
110
- | **Step-by-step replay** | Yes | Continuous | Single frame |
111
- | **File size** | Medium | Large | Small |
112
- | **Best for** | Debugging | Demos | Quick capture |
113
-
114
- ## Best Practices
115
-
116
- ### 1. Start Tracing Before the Problem
117
-
118
- ```bash
119
- # Trace the entire flow, not just the failing step
120
- playwright-cli tracing-start
121
- playwright-cli open https://example.com
122
- # ... all steps leading to the issue ...
123
- playwright-cli tracing-stop
124
- ```
125
-
126
- ### 2. Clean Up Old Traces
127
-
128
- Traces can consume significant disk space:
129
-
130
- ```bash
131
- # Remove traces older than 7 days
132
- find .playwright-cli/traces -mtime +7 -delete
133
- ```
134
-
135
- ## Limitations
136
-
137
- - Traces add overhead to automation
138
- - Large traces can consume significant disk space
139
- - Some dynamic content may not replay perfectly
@@ -1,43 +0,0 @@
1
- # Video Recording
2
-
3
- Capture browser automation sessions as video for debugging, documentation, or verification. Produces WebM (VP8/VP9 codec).
4
-
5
- ## Basic Recording
6
-
7
- ```bash
8
- # Start recording
9
- playwright-cli video-start
10
-
11
- # Perform actions
12
- playwright-cli open https://example.com
13
- playwright-cli snapshot
14
- playwright-cli click e1
15
- playwright-cli fill e2 "test input"
16
-
17
- # Stop and save
18
- playwright-cli video-stop demo.webm
19
- ```
20
-
21
- ## Best Practices
22
-
23
- ### 1. Use Descriptive Filenames
24
-
25
- ```bash
26
- # Include context in filename
27
- playwright-cli video-stop recordings/login-flow-2024-01-15.webm
28
- playwright-cli video-stop recordings/checkout-test-run-42.webm
29
- ```
30
-
31
- ## Tracing vs Video
32
-
33
- | Feature | Video | Tracing |
34
- |---------|-------|---------|
35
- | Output | WebM file | Trace file (viewable in Trace Viewer) |
36
- | Shows | Visual recording | DOM snapshots, network, console, actions |
37
- | Use case | Demos, documentation | Debugging, analysis |
38
- | Size | Larger | Smaller |
39
-
40
- ## Limitations
41
-
42
- - Recording adds slight overhead to automation
43
- - Large recordings can consume significant disk space
@@ -1,68 +0,0 @@
1
- - generic [ref=e3]:
2
- - navigation "Global" [ref=e6]:
3
- - generic [ref=e10]:
4
- - generic [ref=e11]:
5
- - link "Skip to canvas" [ref=e12] [cursor=pointer]:
6
- - /url: "#storybook-preview-wrapper"
7
- - link "Storybook" [ref=e14] [cursor=pointer]:
8
- - /url: ./
9
- - img "Storybook" [ref=e15]
10
- - button "Shortcuts" [ref=e21] [cursor=pointer]:
11
- - img [ref=e22]
12
- - generic [ref=e25]: Search for components
13
- - combobox "Search for components" [ref=e27]:
14
- - generic:
15
- - img
16
- - searchbox "Search for components" [ref=e28]
17
- - code: ⌃ K
18
- - main [ref=e52]:
19
- - generic [ref=e54]:
20
- - generic [ref=e55]:
21
- - button "Remount component" [ref=e56] [cursor=pointer]:
22
- - img [ref=e57]
23
- - button "Zoom in" [ref=e59] [cursor=pointer]:
24
- - img [ref=e60]
25
- - button "Zoom out" [ref=e63] [cursor=pointer]:
26
- - img [ref=e64]
27
- - button "Reset zoom" [ref=e67] [cursor=pointer]:
28
- - img [ref=e68]
29
- - button "Enable measure" [ref=e71] [cursor=pointer]:
30
- - img [ref=e72]
31
- - button "Apply outlines to the preview" [ref=e75] [cursor=pointer]:
32
- - img [ref=e76]
33
- - button "Change the size of the preview" [ref=e79] [cursor=pointer]:
34
- - img [ref=e80]
35
- - button "Vision simulator" [ref=e85] [cursor=pointer]:
36
- - img [ref=e86]
37
- - generic:
38
- - img
39
- - generic [ref=e90]:
40
- - button "Go full screen" [ref=e91] [cursor=pointer]:
41
- - img [ref=e92]
42
- - link "Open canvas in new tab" [ref=e94] [cursor=pointer]:
43
- - /url: iframe.html?id=components-voicetotextbutton--prompt-input-demo
44
- - img [ref=e95]
45
- - button "Copy canvas link" [ref=e98] [cursor=pointer]:
46
- - img [ref=e99]
47
- - generic [ref=e103]:
48
- - progressbar "Content is loading..." [ref=e105]
49
- - generic [ref=e106]:
50
- - link "Skip to sidebar" [ref=e107] [cursor=pointer]:
51
- - /url: "#components-voicetotextbutton--prompt-input-demo"
52
- - iframe [ref=e108]:
53
-
54
- - generic [ref=e113]:
55
- - tablist [ref=e115]:
56
- - tab "Controls" [ref=e116] [cursor=pointer]:
57
- - generic [ref=e118]: Controls
58
- - tab "Actions" [ref=e119] [cursor=pointer]:
59
- - generic [ref=e121]: Actions
60
- - tab "Interactions" [ref=e122] [cursor=pointer]:
61
- - generic [ref=e124]: Interactions
62
- - tab "Accessibility" [ref=e125] [cursor=pointer]:
63
- - generic [ref=e127]: Accessibility
64
- - generic [ref=e130]:
65
- - button "Change addon orientation [alt D]" [ref=e131] [cursor=pointer]:
66
- - img [ref=e132]
67
- - button "Hide addons [alt A]" [ref=e135] [cursor=pointer]:
68
- - img [ref=e136]