@descope-ui/descope-link 3.5.0 → 3.6.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.
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-link",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
+ "files": [
5
+ "src",
6
+ "stories"
7
+ ],
4
8
  "exports": {
5
9
  ".": {
6
10
  "import": "./src/component/index.js"
@@ -14,12 +18,12 @@
14
18
  },
15
19
  "devDependencies": {
16
20
  "@playwright/test": "1.58.2",
17
- "e2e-utils": "3.5.0",
18
- "@descope-ui/descope-text": "3.5.0"
21
+ "e2e-utils": "3.6.0",
22
+ "@descope-ui/descope-text": "3.6.0"
19
23
  },
20
24
  "dependencies": {
21
- "@descope-ui/common": "3.5.0",
22
- "@descope-ui/theme-globals": "3.5.0"
25
+ "@descope-ui/common": "3.6.0",
26
+ "@descope-ui/theme-globals": "3.6.0"
23
27
  },
24
28
  "publishConfig": {
25
29
  "link-workspace-packages": false
package/CHANGELOG.md DELETED
@@ -1,280 +0,0 @@
1
- # Changelog
2
-
3
- This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
-
5
- ## [3.5.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.4.0...web-components-ui-3.5.0) (2026-05-07)
6
-
7
- ## [3.4.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.5...web-components-ui-3.4.0) (2026-05-07)
8
-
9
- ## [3.3.5](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.4...web-components-ui-3.3.5) (2026-05-06)
10
-
11
- ## [3.3.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.3...web-components-ui-3.3.4) (2026-05-06)
12
-
13
- ## [3.3.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.2...web-components-ui-3.3.3) (2026-05-03)
14
-
15
-
16
- ### Features
17
-
18
- * **descope-link:** add readonly property ([#1010](https://github.com/descope/web-components-ui/issues/1010)) ([3f6613e](https://github.com/descope/web-components-ui/commit/3f6613eaa260207f36f94d16009c82f6a5763001))
19
-
20
- ## [3.3.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.1...web-components-ui-3.3.2) (2026-04-26)
21
-
22
- ## [3.3.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.0...web-components-ui-3.3.1) (2026-04-23)
23
-
24
- ## [3.3.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.2.2...web-components-ui-3.3.0) (2026-04-19)
25
-
26
- ## [3.2.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.2.1...web-components-ui-3.2.2) (2026-04-16)
27
-
28
- ## [3.2.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.2.0...web-components-ui-3.2.1) (2026-04-16)
29
-
30
- ## [3.2.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.13...web-components-ui-3.2.0) (2026-04-16)
31
-
32
- ## [3.1.13](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.12...web-components-ui-3.1.13) (2026-04-15)
33
-
34
- ## [3.1.12](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.11...web-components-ui-3.1.12) (2026-04-15)
35
-
36
- ## [3.1.11](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.10...web-components-ui-3.1.11) (2026-04-15)
37
-
38
- ## [3.1.10](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.9...web-components-ui-3.1.10) (2026-04-14)
39
-
40
- ## [3.1.9](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.8...web-components-ui-3.1.9) (2026-04-13)
41
-
42
- ## [3.1.8](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.7...web-components-ui-3.1.8) (2026-04-13)
43
-
44
- ## [3.1.7](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.6...web-components-ui-3.1.7) (2026-04-13)
45
-
46
- ## [3.1.6](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.5...web-components-ui-3.1.6) (2026-04-13)
47
-
48
- ## [3.1.5](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.4...web-components-ui-3.1.5) (2026-04-07)
49
-
50
- ## [3.1.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.3...web-components-ui-3.1.4) (2026-04-07)
51
-
52
- ## [3.1.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.2...web-components-ui-3.1.3) (2026-04-06)
53
-
54
- ## [3.1.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.1...web-components-ui-3.1.2) (2026-04-06)
55
-
56
- ## [3.1.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.1.0...web-components-ui-3.1.1) (2026-03-31)
57
-
58
- ## [3.1.0](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.10...web-components-ui-3.1.0) (2026-03-31)
59
-
60
- ## [3.0.10](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.9...web-components-ui-3.0.10) (2026-03-30)
61
-
62
- ## [3.0.9](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.8...web-components-ui-3.0.9) (2026-03-26)
63
-
64
- ## [3.0.8](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.7...web-components-ui-3.0.8) (2026-03-26)
65
-
66
- ## [3.0.7](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.6...web-components-ui-3.0.7) (2026-03-25)
67
-
68
- ## [3.0.6](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.5...web-components-ui-3.0.6) (2026-03-23)
69
-
70
- ## [3.0.5](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.4...web-components-ui-3.0.5) (2026-03-22)
71
-
72
- ## [3.0.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.3...web-components-ui-3.0.4) (2026-03-22)
73
-
74
- ## [3.0.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.2...web-components-ui-3.0.3) (2026-03-18)
75
-
76
- ## [3.0.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.1...web-components-ui-3.0.2) (2026-03-08)
77
-
78
- ## [3.0.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.0.0...web-components-ui-3.0.1) (2026-03-08)
79
-
80
- ## [3.0.0](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.3...web-components-ui-3.0.0) (2026-03-08)
81
-
82
- ## [2.3.3](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.2...web-components-ui-2.3.3) (2026-03-05)
83
-
84
- ## [2.3.2](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.1...web-components-ui-2.3.2) (2026-03-05)
85
-
86
- ## [2.3.1](https://github.com/descope/web-components-ui/compare/web-components-ui-2.3.0...web-components-ui-2.3.1) (2026-03-01)
87
-
88
- ## [2.3.0](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.59...web-components-ui-2.3.0) (2026-03-01)
89
-
90
- ## [2.2.59](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.58...web-components-ui-2.2.59) (2026-02-28)
91
-
92
- ## [2.2.58](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.57...web-components-ui-2.2.58) (2026-02-26)
93
-
94
- ## [2.2.57](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.56...web-components-ui-2.2.57) (2026-02-25)
95
-
96
- ## [2.2.56](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.55...web-components-ui-2.2.56) (2026-02-24)
97
-
98
- ## [2.2.55](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.54...web-components-ui-2.2.55) (2026-02-23)
99
-
100
- ## [2.2.54](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.53...web-components-ui-2.2.54) (2026-02-23)
101
-
102
- ## [2.2.53](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.52...web-components-ui-2.2.53) (2026-02-23)
103
-
104
- ## [2.2.52](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.51...web-components-ui-2.2.52) (2026-02-23)
105
-
106
- ## [2.2.51](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.50...web-components-ui-2.2.51) (2026-02-21)
107
-
108
- ## [2.2.50](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.49...web-components-ui-2.2.50) (2026-02-10)
109
-
110
- ## [2.2.49](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.48...web-components-ui-2.2.49) (2026-02-09)
111
-
112
- ## [2.2.48](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.47...web-components-ui-2.2.48) (2026-02-09)
113
-
114
- ## [2.2.47](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.46...web-components-ui-2.2.47) (2026-02-05)
115
-
116
- ### Bug Fixes
117
-
118
- - Migrate to Playwright 1.58.1 ([#873](https://github.com/descope/web-components-ui/issues/873)) ([ff16007](https://github.com/descope/web-components-ui/commit/ff16007b6316abd82050ce9bcbce8180a5660d95))
119
-
120
- ## [2.2.46](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.45...web-components-ui-2.2.46) (2026-02-05)
121
-
122
- ## [2.2.45](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.44...web-components-ui-2.2.45) (2026-02-05)
123
-
124
- ## [2.2.44](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.43...web-components-ui-2.2.44) (2026-02-05)
125
-
126
- ## [2.2.43](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.42...web-components-ui-2.2.43) (2026-02-04)
127
-
128
- ## [2.2.42](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.41...web-components-ui-2.2.42) (2026-02-04)
129
-
130
- ## [2.2.41](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.40...web-components-ui-2.2.41) (2026-02-01)
131
-
132
- ## [2.2.40](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.39...web-components-ui-2.2.40) (2026-01-29)
133
-
134
- ## [2.2.39](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.38...web-components-ui-2.2.39) (2026-01-29)
135
-
136
- ## [2.2.38](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.37...web-components-ui-2.2.38) (2026-01-28)
137
-
138
- ## [2.2.37](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.36...web-components-ui-2.2.37) (2026-01-28)
139
-
140
- ## [2.2.36](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.35...web-components-ui-2.2.36) (2026-01-28)
141
-
142
- ## [2.2.35](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.34...web-components-ui-2.2.35) (2026-01-22)
143
-
144
- ## [2.2.34](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.33...web-components-ui-2.2.34) (2026-01-21)
145
-
146
- ## [2.2.33](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.32...web-components-ui-2.2.33) (2026-01-21)
147
-
148
- ## [2.2.32](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.31...web-components-ui-2.2.32) (2026-01-21)
149
-
150
- ## [2.2.31](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.30...web-components-ui-2.2.31) (2026-01-21)
151
-
152
- ## [2.2.30](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.29...web-components-ui-2.2.30) (2026-01-19)
153
-
154
- ## [2.2.29](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.28...web-components-ui-2.2.29) (2026-01-19)
155
-
156
- ## [2.2.28](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.27...web-components-ui-2.2.28) (2026-01-19)
157
-
158
- ## [2.2.27](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.26...web-components-ui-2.2.27) (2026-01-18)
159
-
160
- ## [2.2.26](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.25...web-components-ui-2.2.26) (2026-01-18)
161
-
162
- ## [2.2.25](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.24...web-components-ui-2.2.25) (2026-01-15)
163
-
164
- ## [2.2.24](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.23...web-components-ui-2.2.24) (2026-01-13)
165
-
166
- ## [2.2.23](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.22...web-components-ui-2.2.23) (2026-01-13)
167
-
168
- ## [2.2.22](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.21...web-components-ui-2.2.22) (2026-01-13)
169
-
170
- ## [2.2.21](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.20...web-components-ui-2.2.21) (2026-01-12)
171
-
172
- ## [2.2.20](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.19...web-components-ui-2.2.20) (2026-01-12)
173
-
174
- ## [2.2.19](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.18...web-components-ui-2.2.19) (2026-01-11)
175
-
176
- ## [2.2.18](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.17...web-components-ui-2.2.18) (2026-01-06)
177
-
178
- ## [2.2.17](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.16...web-components-ui-2.2.17) (2026-01-05)
179
-
180
- ## [2.2.16](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.15...web-components-ui-2.2.16) (2025-12-28)
181
-
182
- ## [2.2.15](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.14...web-components-ui-2.2.15) (2025-12-23)
183
-
184
- ## [2.2.14](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.13...web-components-ui-2.2.14) (2025-12-22)
185
-
186
- ## [2.2.13](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.12...web-components-ui-2.2.13) (2025-12-21)
187
-
188
- ## [2.2.12](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.11...web-components-ui-2.2.12) (2025-12-18)
189
-
190
- ## [2.2.11](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.10...web-components-ui-2.2.11) (2025-12-02)
191
-
192
- ## [2.2.10](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.9...web-components-ui-2.2.10) (2025-11-10)
193
-
194
- ## [2.2.9](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.8...web-components-ui-2.2.9) (2025-11-09)
195
-
196
- ## [2.2.8](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.7...web-components-ui-2.2.8) (2025-11-06)
197
-
198
- ## [2.2.7](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.6...web-components-ui-2.2.7) (2025-11-05)
199
-
200
- ## [2.2.6](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.5...web-components-ui-2.2.6) (2025-11-05)
201
-
202
- ## [2.2.5](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.4...web-components-ui-2.2.5) (2025-10-30)
203
-
204
- ## [2.2.4](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.3...web-components-ui-2.2.4) (2025-10-30)
205
-
206
- ## [2.2.3](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.2...web-components-ui-2.2.3) (2025-10-29)
207
-
208
- ## [2.2.2](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.1...web-components-ui-2.2.2) (2025-10-28)
209
-
210
- ## [2.2.1](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.0...web-components-ui-2.2.1) (2025-10-27)
211
-
212
- ## [2.2.0](https://github.com/descope/web-components-ui/compare/web-components-ui-2.1.18...web-components-ui-2.2.0) (2025-10-26)
213
-
214
- ## [2.1.18](https://github.com/descope/web-components-ui/compare/web-components-ui-2.1.17...web-components-ui-2.1.18) (2025-10-26)
215
-
216
- ## [2.1.17](https://github.com/descope/web-components-ui/compare/web-components-ui-2.1.16...web-components-ui-2.1.17) (2025-10-20)
217
-
218
- ## [2.1.16](https://github.com/descope/web-components-ui/compare/web-components-ui-2.1.15...web-components-ui-2.1.16) (2025-10-19)
219
-
220
- ## [2.1.15](https://github.com/descope/web-components-ui/compare/web-components-ui-2.1.14...web-components-ui-2.1.15) (2025-10-16)
221
-
222
- ## [2.1.14](https://github.com/descope/web-components-ui/compare/web-components-ui-2.1.13...web-components-ui-2.1.14) (2025-10-12)
223
-
224
- ## [1.139.1](https://github.com/descope/web-components-ui/compare/web-components-ui-1.139.0...web-components-ui-1.139.1) (2025-10-08)
225
-
226
- ## [0.1.2](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-link-0.1.1...@descope-ui/descope-link-0.1.2) (2025-09-30)
227
-
228
- ### Dependency Updates
229
-
230
- - `@descope-ui/descope-text` updated to version `0.0.22`
231
- - `@descope-ui/common` updated to version `0.1.2`
232
- - `@descope-ui/theme-globals` updated to version `0.0.22`
233
-
234
- ## [0.1.1](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-link-0.1.0...@descope-ui/descope-link-0.1.1) (2025-09-29)
235
-
236
- ### Dependency Updates
237
-
238
- - `@descope-ui/descope-text` updated to version `0.0.21`
239
- - `@descope-ui/common` updated to version `0.1.1`
240
- - `@descope-ui/theme-globals` updated to version `0.0.21`
241
-
242
- ## [0.1.0](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-link-0.0.3...@descope-ui/descope-link-0.1.0) (2025-09-02)
243
-
244
- ### Dependency Updates
245
-
246
- - `e2e-utils` updated to version `0.1.0`
247
- - `@descope-ui/descope-text` updated to version `0.0.20`
248
- - `@descope-ui/common` updated to version `0.1.0`
249
- - `@descope-ui/theme-globals` updated to version `0.0.20`
250
-
251
- ### Features
252
-
253
- - Trusted Devices ([#697](https://github.com/descope/web-components-ui/issues/697)) ([fb2f0eb](https://github.com/descope/web-components-ui/commit/fb2f0eb6773ed624354ed9f0b97d713bb8b10fce))
254
-
255
- ## [0.0.3](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-link-0.0.2...@descope-ui/descope-link-0.0.3) (2025-07-21)
256
-
257
- ### Dependency Updates
258
-
259
- - `@descope-ui/descope-text` updated to version `0.0.19`
260
- - `@descope-ui/common` updated to version `0.0.18`
261
- - `@descope-ui/theme-globals` updated to version `0.0.19`
262
-
263
- ## [0.0.2](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-link-0.0.1...@descope-ui/descope-link-0.0.2) (2025-07-15)
264
-
265
- ### Dependency Updates
266
-
267
- - `@descope-ui/descope-text` updated to version `0.0.18`
268
- - `@descope-ui/common` updated to version `0.0.17`
269
- - `@descope-ui/theme-globals` updated to version `0.0.18`
270
-
271
- ## 0.0.1 (2025-07-03)
272
-
273
- ### Dependency Updates
274
-
275
- - `e2e-utils` updated to version `0.0.1`
276
- - `@descope-ui/descope-text` updated to version `0.0.17`
277
- - `@descope-ui/common` updated to version `0.0.16`
278
- - `@descope-ui/theme-globals` updated to version `0.0.17`
279
-
280
- # Changelog
@@ -1,80 +0,0 @@
1
- import { test, expect } from '@playwright/test';
2
- import { getStoryUrl, loopConfig } from 'e2e-utils';
3
-
4
- const MOCK_URL = 'https://www.descope.com/';
5
-
6
- const componentAttributes = {
7
- text: 'Test Text',
8
- variant: ['h1', 'h2', 'h3', 'subtitle1', 'subtitle2', 'body1', 'body2'],
9
- mode: ['primary', 'secondary', 'success', 'error'],
10
- tooltip: 'Tooltip',
11
- 'text-align': ['left', 'center', 'right'],
12
- 'full-width': ['true', 'false'],
13
- readonly: ['true', 'false'],
14
- };
15
-
16
- const storyName = 'descope-link';
17
- const componentName = 'descope-link';
18
-
19
- test.describe('theme', () => {
20
- loopConfig(componentAttributes, (attr, value) => {
21
- test(`${attr}: ${value}`, async ({ page }) => {
22
- // we're running all tests with default full-width to allow text-align tests to run properly
23
- await page.goto(getStoryUrl(storyName, { 'full-width': true, [attr]: value }), {
24
- waitUntil: 'networkidle',
25
- });
26
- const component = page.locator(componentName);
27
- expect(await component.screenshot()).toMatchSnapshot();
28
- });
29
- });
30
-
31
- test(`direction: rtl`, async ({ page }) => {
32
- await page.goto(
33
- getStoryUrl(storyName, { direction: 'rtl', text: '-Hello World', 'full-width': true })
34
- );
35
- const component = page.locator(componentName);
36
- expect(await component.screenshot()).toMatchSnapshot();
37
- });
38
- });
39
-
40
- test.describe('logic', () => {
41
- test(`href`, async ({ page }) => {
42
- await page.goto(getStoryUrl(storyName, { href: MOCK_URL }), { waitUntil: 'networkidle' });
43
- await page.waitForSelector(componentName);
44
- page.locator(componentName).click();
45
- await page.waitForURL(MOCK_URL);
46
- });
47
-
48
- test('target', async ({ page, context }) => {
49
- await page.goto(getStoryUrl(storyName, { href: MOCK_URL, target: '_blank' }), {
50
- waitUntil: 'networkidle',
51
- });
52
-
53
- const [newPage] = await Promise.all([
54
- context.waitForEvent('page'),
55
- page.locator(componentName).first().click(),
56
- ]);
57
-
58
- await newPage.waitForLoadState();
59
-
60
- expect(newPage.url()).toBe(MOCK_URL);
61
- });
62
-
63
- test('readonly prevents navigation', async ({ page }) => {
64
- await page.goto(getStoryUrl(storyName, { href: MOCK_URL, readonly: 'true' }), {
65
- waitUntil: 'networkidle',
66
- });
67
- const urlBefore = page.url();
68
- await page.locator(componentName).click();
69
- await page.waitForTimeout(300);
70
- expect(page.url()).toBe(urlBefore);
71
- });
72
-
73
- test('readonly=false allows navigation', async ({ page }) => {
74
- await page.goto(getStoryUrl(storyName, { href: MOCK_URL, readonly: 'false' }), {
75
- waitUntil: 'networkidle',
76
- });
77
- await page.locator(componentName).click();
78
- await page.waitForURL(MOCK_URL);
79
- });
80
- });
package/project.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "name": "@descope-ui/descope-link",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/web-components/components/descope-link/src",
5
- "projectType": "library",
6
- "targets": {},
7
- "tags": []
8
- }