quasar 2.11.6 → 2.11.8
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/dist/api/BottomSheet.json +13 -0
- package/dist/api/QCarousel.json +9 -0
- package/dist/api/QEditor.json +49 -0
- package/dist/api/QTable.json +9 -0
- package/dist/icon-set/bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +1 -1
- package/dist/icon-set/fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/material-icons.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v3.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v4.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v5.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-eva-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +1 -1
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-line-awesome.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-icons.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +1 -1
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +1 -1
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +1 -1
- package/dist/icon-set/svg-themify.umd.prod.js +1 -1
- package/dist/icon-set/themify.umd.prod.js +1 -1
- package/dist/lang/ar-TN.umd.prod.js +1 -1
- package/dist/lang/ar.umd.prod.js +1 -1
- package/dist/lang/az-Latn.umd.prod.js +1 -1
- package/dist/lang/bg.umd.prod.js +1 -1
- package/dist/lang/bn.umd.prod.js +1 -1
- package/dist/lang/ca.umd.prod.js +1 -1
- package/dist/lang/cs.umd.prod.js +1 -1
- package/dist/lang/da.umd.prod.js +1 -1
- package/dist/lang/de.umd.prod.js +1 -1
- package/dist/lang/el.umd.prod.js +1 -1
- package/dist/lang/en-GB.umd.prod.js +1 -1
- package/dist/lang/en-US.umd.prod.js +1 -1
- package/dist/lang/eo.umd.prod.js +1 -1
- package/dist/lang/es.umd.prod.js +1 -1
- package/dist/lang/et.umd.prod.js +1 -1
- package/dist/lang/eu.umd.prod.js +1 -1
- package/dist/lang/fa-IR.umd.prod.js +1 -1
- package/dist/lang/fa.umd.prod.js +1 -1
- package/dist/lang/fi.umd.prod.js +1 -1
- package/dist/lang/fr.umd.prod.js +1 -1
- package/dist/lang/gn.umd.prod.js +1 -1
- package/dist/lang/he.umd.prod.js +1 -1
- package/dist/lang/hr.umd.prod.js +1 -1
- package/dist/lang/hu.umd.prod.js +1 -1
- package/dist/lang/id.umd.prod.js +1 -1
- package/dist/lang/is.umd.prod.js +1 -1
- package/dist/lang/it.umd.prod.js +1 -1
- package/dist/lang/ja.umd.prod.js +2 -2
- package/dist/lang/kk.umd.prod.js +1 -1
- package/dist/lang/km.umd.prod.js +1 -1
- package/dist/lang/ko-KR.umd.prod.js +1 -1
- package/dist/lang/kur-CKB.umd.prod.js +1 -1
- package/dist/lang/lt.umd.prod.js +1 -1
- package/dist/lang/lu.umd.prod.js +1 -1
- package/dist/lang/lv.umd.prod.js +1 -1
- package/dist/lang/ml.umd.prod.js +1 -1
- package/dist/lang/mm.umd.prod.js +1 -1
- package/dist/lang/ms.umd.prod.js +1 -1
- package/dist/lang/my.umd.prod.js +1 -1
- package/dist/lang/nb-NO.umd.prod.js +1 -1
- package/dist/lang/nl.umd.prod.js +1 -1
- package/dist/lang/pl.umd.prod.js +1 -1
- package/dist/lang/pt-BR.umd.prod.js +1 -1
- package/dist/lang/pt.umd.prod.js +1 -1
- package/dist/lang/ro.umd.prod.js +1 -1
- package/dist/lang/ru.umd.prod.js +1 -1
- package/dist/lang/sk.umd.prod.js +1 -1
- package/dist/lang/sl.umd.prod.js +1 -1
- package/dist/lang/sm.umd.prod.js +1 -1
- package/dist/lang/sr-CYR.umd.prod.js +1 -1
- package/dist/lang/sr.umd.prod.js +1 -1
- package/dist/lang/sv.umd.prod.js +1 -1
- package/dist/lang/ta.umd.prod.js +1 -1
- package/dist/lang/th.umd.prod.js +1 -1
- package/dist/lang/tr.umd.prod.js +1 -1
- package/dist/lang/ug.umd.prod.js +1 -1
- package/dist/lang/uk.umd.prod.js +1 -1
- package/dist/lang/uz-Cyrl.umd.prod.js +1 -1
- package/dist/lang/uz-Latn.umd.prod.js +1 -1
- package/dist/lang/vi.umd.prod.js +1 -1
- package/dist/lang/zh-CN.umd.prod.js +1 -1
- package/dist/lang/zh-TW.umd.prod.js +1 -1
- package/dist/quasar.cjs.prod.js +2 -2
- package/dist/quasar.css +2 -2
- package/dist/quasar.esm.js +127 -75
- package/dist/quasar.esm.prod.js +2 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +2 -2
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +17 -5
- package/dist/quasar.umd.js +127 -75
- package/dist/quasar.umd.prod.js +2 -2
- package/dist/transforms/auto-import.json +47 -3
- package/dist/transforms/import-map.json +22 -0
- package/dist/types/index.d.ts +43 -0
- package/dist/web-types/web-types.json +92 -1
- package/lang/ja.js +1 -1
- package/lang/ja.mjs +1 -1
- package/package.json +9 -6
- package/src/components/avatar/__tests__/{QAvatar.spec.js → QAvatar.cy.js} +7 -8
- package/src/components/badge/__tests__/{QBadge.spec.js → QBadge.cy.js} +1 -2
- package/src/components/banner/__tests__/{QBanner.spec.js → QBanner.cy.js} +7 -8
- package/src/components/bar/__tests__/{QBar.spec.js → QBar.cy.js} +3 -4
- package/src/components/breadcrumbs/__tests__/{QBreadcrumbs.spec.js → QBreadcrumbs.cy.js} +8 -9
- package/src/components/breadcrumbs/__tests__/{QBreadcrumbsEl.spec.js → QBreadcrumbsEl.cy.js} +5 -6
- package/src/components/btn/__tests__/{QBtn.spec.js → QBtn.cy.js} +4 -5
- package/src/components/btn/__tests__/{use-btn.spec.js → use-btn.cy.js} +1 -2
- package/src/components/chip/__tests__/{QChip.spec.js → QChip.cy.js} +1 -2
- package/src/components/date/QDate.js +10 -9
- package/src/components/dialog-bottom-sheet/BottomSheet.js +2 -0
- package/src/components/editor/QEditor.js +6 -1
- package/src/components/editor/QEditor.json +40 -0
- package/src/components/editor/editor-utils.js +5 -1
- package/src/components/field/QField.sass +16 -4
- package/src/components/input/QInput.js +24 -7
- package/src/components/input/use-mask.js +72 -50
- package/src/components/menu/__tests__/{QMenu.spec.js → QMenu.cy.js} +29 -30
- package/src/components/select/QSelect.js +2 -1
- package/src/components/select/__tests__/{QSelect.spec.js → QSelect.cy.js} +2 -3
- package/src/components/table/QTable.js +1 -1
- package/src/components/tree/QTree.js +2 -2
- package/src/components/uploader/__tests__/{QUploader.spec.js → QUploader.cy.js} +1 -2
- package/src/composables/private/__tests__/{use-anchor.spec.js → use-anchor.cy.js} +7 -8
- package/src/composables/private/__tests__/{use-field.spec.js → use-field.cy.js} +7 -8
- package/src/composables/private/__tests__/{use-model-toggle.spec.js → use-model-toggle.cy.js} +17 -18
- package/src/composables/private/__tests__/{use-size.spec.js → use-size.cy.js} +4 -5
- package/src/composables/private/__tests__/{use-transition.spec.js → use-transition.cy.js} +9 -10
- package/src/composables/private/__tests__/{use-validate.spec.js → use-validate.cy.js} +5 -6
- package/src/composables/private/use-fullscreen.json +12 -0
- package/src/plugins/BottomSheet.json +8 -0
- /package/src/components/date/__tests__/{QDate.spec.js → QDate.cy.js} +0 -0
- /package/src/components/dialog/__tests__/{QDialog.spec.js → QDialog.cy.js} +0 -0
- /package/src/components/editor/__tests__/{QEditor.spec.js → QEditor.cy.js} +0 -0
- /package/src/components/input/__tests__/{QInput.spec.js → QInput.cy.js} +0 -0
- /package/src/components/input/__tests__/{use-mask.spec.js → use-mask.cy.js} +0 -0
- /package/src/components/table/__tests__/{QTable.spec.js → QTable.cy.js} +0 -0
- /package/src/components/table/__tests__/{QTd.spec.js → QTd.cy.js} +0 -0
- /package/src/components/table/__tests__/{QTh.spec.js → QTh.cy.js} +0 -0
- /package/src/components/table/__tests__/{QTr.spec.js → QTr.cy.js} +0 -0
- /package/src/components/tabs/__tests__/{QRouteTab.spec.js → QRouteTab.cy.js} +0 -0
- /package/src/components/tabs/__tests__/{QTab.spec.js → QTab.cy.js} +0 -0
- /package/src/components/tabs/__tests__/{QTabs.spec.js → QTabs.cy.js} +0 -0
- /package/src/composables/private/__tests__/{use-file.spec.js → use-file.cy.js} +0 -0
- /package/src/composables/private/__tests__/{use-form.spec.js → use-form.cy.js} +0 -0
- /package/src/composables/private/__tests__/{use-fullscreen.spec.js → use-fullscreen.cy.js} +0 -0
- /package/src/composables/private/__tests__/{use-portal.spec.js → use-portal.cy.js} +0 -0
- /package/src/composables/private/__tests__/{use-router-link.spec.js → use-router-link.cy.js} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* eslint-disable no-unused-expressions */
|
|
2
|
-
import { mount } from '@cypress/vue'
|
|
3
2
|
import WrapperOne from './WrapperOne.vue'
|
|
4
3
|
import WrapperTwo from './WrapperTwo.vue'
|
|
5
4
|
|
|
@@ -14,7 +13,7 @@ describe('Menu API', () => {
|
|
|
14
13
|
|
|
15
14
|
describe('(prop): touch-position', () => {
|
|
16
15
|
it('should show menu at the position of the click', () => {
|
|
17
|
-
mount(WrapperOne, {
|
|
16
|
+
cy.mount(WrapperOne, {
|
|
18
17
|
props: {
|
|
19
18
|
'touch-position': true
|
|
20
19
|
}
|
|
@@ -44,7 +43,7 @@ describe('Menu API', () => {
|
|
|
44
43
|
|
|
45
44
|
describe('(prop): persistent', () => {
|
|
46
45
|
it('should close the menu when clicking outside the menu', () => {
|
|
47
|
-
mount(WrapperOne)
|
|
46
|
+
cy.mount(WrapperOne)
|
|
48
47
|
|
|
49
48
|
cy.dataCy('wrapper')
|
|
50
49
|
.click()
|
|
@@ -57,7 +56,7 @@ describe('Menu API', () => {
|
|
|
57
56
|
})
|
|
58
57
|
|
|
59
58
|
it('should close the menu when hitting the escape key', () => {
|
|
60
|
-
mount(WrapperOne)
|
|
59
|
+
cy.mount(WrapperOne)
|
|
61
60
|
|
|
62
61
|
cy.dataCy('wrapper')
|
|
63
62
|
.click()
|
|
@@ -70,7 +69,7 @@ describe('Menu API', () => {
|
|
|
70
69
|
})
|
|
71
70
|
|
|
72
71
|
it('should not close the menu when clicking outside the menu when persistent', () => {
|
|
73
|
-
mount(WrapperOne, {
|
|
72
|
+
cy.mount(WrapperOne, {
|
|
74
73
|
props: {
|
|
75
74
|
persistent: true
|
|
76
75
|
}
|
|
@@ -89,7 +88,7 @@ describe('Menu API', () => {
|
|
|
89
88
|
})
|
|
90
89
|
|
|
91
90
|
it('should not close the menu when hitting the escape key when persistent', () => {
|
|
92
|
-
mount(WrapperOne, {
|
|
91
|
+
cy.mount(WrapperOne, {
|
|
93
92
|
props: {
|
|
94
93
|
persistent: true
|
|
95
94
|
}
|
|
@@ -116,7 +115,7 @@ describe('Menu API', () => {
|
|
|
116
115
|
|
|
117
116
|
describe('(prop): auto-close', () => {
|
|
118
117
|
it('should not close the menu when clicking a menu child without v-close-popup', () => {
|
|
119
|
-
mount(WrapperOne)
|
|
118
|
+
cy.mount(WrapperOne)
|
|
120
119
|
|
|
121
120
|
cy.dataCy('wrapper')
|
|
122
121
|
.click()
|
|
@@ -131,7 +130,7 @@ describe('Menu API', () => {
|
|
|
131
130
|
})
|
|
132
131
|
|
|
133
132
|
it('should close the menu when clicking a menu child without v-close-popup when auto-close is true', () => {
|
|
134
|
-
mount(WrapperOne, {
|
|
133
|
+
cy.mount(WrapperOne, {
|
|
135
134
|
props: {
|
|
136
135
|
'auto-close': true
|
|
137
136
|
}
|
|
@@ -159,7 +158,7 @@ describe('Menu API', () => {
|
|
|
159
158
|
describe('(prop): no-refocus', () => {
|
|
160
159
|
// TODO: it is not clear from the docs that refocussing does not happen when clicking outside or closing by escape/programatticaly. Should this be added?
|
|
161
160
|
it('should switch focus back to parent element when closing', () => {
|
|
162
|
-
mount(WrapperOne)
|
|
161
|
+
cy.mount(WrapperOne)
|
|
163
162
|
|
|
164
163
|
cy.dataCy('wrapper')
|
|
165
164
|
.focus()
|
|
@@ -178,7 +177,7 @@ describe('Menu API', () => {
|
|
|
178
177
|
})
|
|
179
178
|
|
|
180
179
|
it('should not switch focus back to parent element when closing if no-refocus is true', () => {
|
|
181
|
-
mount(WrapperOne, {
|
|
180
|
+
cy.mount(WrapperOne, {
|
|
182
181
|
props: {
|
|
183
182
|
'no-refocus': true
|
|
184
183
|
}
|
|
@@ -203,7 +202,7 @@ describe('Menu API', () => {
|
|
|
203
202
|
|
|
204
203
|
describe('(prop): no-focus', () => {
|
|
205
204
|
it('should switch focus to the menu when opening', () => {
|
|
206
|
-
mount(WrapperOne)
|
|
205
|
+
cy.mount(WrapperOne)
|
|
207
206
|
|
|
208
207
|
cy.dataCy('wrapper')
|
|
209
208
|
.click()
|
|
@@ -213,7 +212,7 @@ describe('Menu API', () => {
|
|
|
213
212
|
})
|
|
214
213
|
|
|
215
214
|
it('should no switch focus to the menu when opening with no-focus is true', () => {
|
|
216
|
-
mount(WrapperOne, {
|
|
215
|
+
cy.mount(WrapperOne, {
|
|
217
216
|
props: {
|
|
218
217
|
'no-focus': true
|
|
219
218
|
}
|
|
@@ -231,7 +230,7 @@ describe('Menu API', () => {
|
|
|
231
230
|
describe('Category: position', () => {
|
|
232
231
|
describe('(prop): fit', () => {
|
|
233
232
|
it('should show a menu that matches the full with of the target when fit is supplied', () => {
|
|
234
|
-
mount(WrapperOne, {
|
|
233
|
+
cy.mount(WrapperOne, {
|
|
235
234
|
props: {
|
|
236
235
|
target: '.other-target',
|
|
237
236
|
fit: true
|
|
@@ -250,7 +249,7 @@ describe('Menu API', () => {
|
|
|
250
249
|
})
|
|
251
250
|
|
|
252
251
|
it('should show a menu that not matches the full with of the target when fit is false', () => {
|
|
253
|
-
mount(WrapperOne, {
|
|
252
|
+
cy.mount(WrapperOne, {
|
|
254
253
|
props: {
|
|
255
254
|
target: '.other-target',
|
|
256
255
|
fit: false
|
|
@@ -271,7 +270,7 @@ describe('Menu API', () => {
|
|
|
271
270
|
|
|
272
271
|
describe('(prop): cover', () => {
|
|
273
272
|
it('should show a menu that overlays the target when using cover', () => {
|
|
274
|
-
mount(WrapperOne, {
|
|
273
|
+
cy.mount(WrapperOne, {
|
|
275
274
|
props: {
|
|
276
275
|
cover: true
|
|
277
276
|
}
|
|
@@ -284,7 +283,7 @@ describe('Menu API', () => {
|
|
|
284
283
|
})
|
|
285
284
|
|
|
286
285
|
it('should show a menu that overlays the target when using cover', () => {
|
|
287
|
-
mount(WrapperOne, {
|
|
286
|
+
cy.mount(WrapperOne, {
|
|
288
287
|
props: {
|
|
289
288
|
cover: true,
|
|
290
289
|
target: '.other-target'
|
|
@@ -298,7 +297,7 @@ describe('Menu API', () => {
|
|
|
298
297
|
})
|
|
299
298
|
|
|
300
299
|
it('should ignore self property when using cover', () => {
|
|
301
|
-
mount(WrapperOne, {
|
|
300
|
+
cy.mount(WrapperOne, {
|
|
302
301
|
props: {
|
|
303
302
|
cover: true,
|
|
304
303
|
self: 'center right',
|
|
@@ -315,7 +314,7 @@ describe('Menu API', () => {
|
|
|
315
314
|
|
|
316
315
|
describe('(prop): anchor & self', () => {
|
|
317
316
|
it('should show a menu at anchor: bottom left and self: top left by default', () => {
|
|
318
|
-
mount(WrapperOne)
|
|
317
|
+
cy.mount(WrapperOne)
|
|
319
318
|
|
|
320
319
|
cy.dataCy('wrapper')
|
|
321
320
|
.click()
|
|
@@ -333,7 +332,7 @@ describe('Menu API', () => {
|
|
|
333
332
|
verticalSelf.forEach((vS) => {
|
|
334
333
|
horizontalSelf.forEach((hS) => {
|
|
335
334
|
it(`should position Anchor(${ vA } ${ hA }) & Self(${ vS } ${ hS }) correctly`, () => {
|
|
336
|
-
mount(WrapperOne, {
|
|
335
|
+
cy.mount(WrapperOne, {
|
|
337
336
|
props: {
|
|
338
337
|
anchor: `${ vA } ${ hA }`,
|
|
339
338
|
self: `${ vS } ${ hS }`
|
|
@@ -362,7 +361,7 @@ describe('Menu API', () => {
|
|
|
362
361
|
verticalAnchor.forEach((vA) => {
|
|
363
362
|
verticalSelf.forEach((vS) => {
|
|
364
363
|
it(`should offset vertical position Anchor(${ vA } left) & Self(${ vS } left) correctly`, () => {
|
|
365
|
-
mount(WrapperOne, {
|
|
364
|
+
cy.mount(WrapperOne, {
|
|
366
365
|
props: {
|
|
367
366
|
anchor: `${ vA } left`,
|
|
368
367
|
self: `${ vS } left`,
|
|
@@ -383,7 +382,7 @@ describe('Menu API', () => {
|
|
|
383
382
|
horizontalAnchor.forEach((hA) => {
|
|
384
383
|
horizontalSelf.forEach((hS) => {
|
|
385
384
|
it(`should offset horizontal position Anchor(top ${ hA }) & Self(top ${ hS }) correctly`, () => {
|
|
386
|
-
mount(WrapperOne, {
|
|
385
|
+
cy.mount(WrapperOne, {
|
|
387
386
|
props: {
|
|
388
387
|
anchor: `top ${ hA }`,
|
|
389
388
|
self: `top ${ hS }`,
|
|
@@ -404,7 +403,7 @@ describe('Menu API', () => {
|
|
|
404
403
|
describe('Category: style', () => {
|
|
405
404
|
describe('(prop): dark', () => {
|
|
406
405
|
it('should set the --q-dark color as background and white text color', () => {
|
|
407
|
-
mount(WrapperOne, {
|
|
406
|
+
cy.mount(WrapperOne, {
|
|
408
407
|
props: {
|
|
409
408
|
dark: true
|
|
410
409
|
}
|
|
@@ -419,7 +418,7 @@ describe('Menu API', () => {
|
|
|
419
418
|
|
|
420
419
|
describe('(prop): square', () => {
|
|
421
420
|
it('should not have border-radius when using this prop', () => {
|
|
422
|
-
mount(WrapperOne, {
|
|
421
|
+
cy.mount(WrapperOne, {
|
|
423
422
|
props: {
|
|
424
423
|
square: true
|
|
425
424
|
}
|
|
@@ -434,7 +433,7 @@ describe('Menu API', () => {
|
|
|
434
433
|
describe('(prop): max-height', () => {
|
|
435
434
|
it('should specify a max-height when setting this prop', () => {
|
|
436
435
|
const maxHeight = '30px'
|
|
437
|
-
mount(WrapperOne, {
|
|
436
|
+
cy.mount(WrapperOne, {
|
|
438
437
|
props: {
|
|
439
438
|
maxHeight
|
|
440
439
|
}
|
|
@@ -449,7 +448,7 @@ describe('Menu API', () => {
|
|
|
449
448
|
describe('(prop): max-width', () => {
|
|
450
449
|
it('should specify a max-width when setting this prop', () => {
|
|
451
450
|
const maxWidth = '30px'
|
|
452
|
-
mount(WrapperOne, {
|
|
451
|
+
cy.mount(WrapperOne, {
|
|
453
452
|
props: {
|
|
454
453
|
maxWidth
|
|
455
454
|
}
|
|
@@ -475,7 +474,7 @@ describe('Menu API', () => {
|
|
|
475
474
|
describe('(event): escape-key', () => {
|
|
476
475
|
it('should emit @escape-key event when escape key is pressed', () => {
|
|
477
476
|
const fn = cy.stub()
|
|
478
|
-
mount(WrapperOne, {
|
|
477
|
+
cy.mount(WrapperOne, {
|
|
479
478
|
props: {
|
|
480
479
|
onEscapeKey: fn
|
|
481
480
|
}
|
|
@@ -498,7 +497,7 @@ describe('Menu API', () => {
|
|
|
498
497
|
|
|
499
498
|
it('should not emit @escape-key event when menu is persistent', () => {
|
|
500
499
|
const fn = cy.stub()
|
|
501
|
-
mount(WrapperOne, {
|
|
500
|
+
cy.mount(WrapperOne, {
|
|
502
501
|
props: {
|
|
503
502
|
onEscapeKey: fn,
|
|
504
503
|
persistent: true
|
|
@@ -525,7 +524,7 @@ describe('Menu API', () => {
|
|
|
525
524
|
describe('Methods', () => {
|
|
526
525
|
describe('(method): updatePosition', () => {
|
|
527
526
|
it('should reposition the menu when it is no longer in correct position', () => {
|
|
528
|
-
mount(WrapperTwo, {
|
|
527
|
+
cy.mount(WrapperTwo, {
|
|
529
528
|
props: {
|
|
530
529
|
anchor: 'bottom left',
|
|
531
530
|
self: 'bottom left'
|
|
@@ -570,7 +569,7 @@ describe('Menu API', () => {
|
|
|
570
569
|
|
|
571
570
|
describe('(method): focus', () => {
|
|
572
571
|
it('should focus the menu', () => {
|
|
573
|
-
mount(WrapperOne, {
|
|
572
|
+
cy.mount(WrapperOne, {
|
|
574
573
|
props: {
|
|
575
574
|
'no-focus': true
|
|
576
575
|
}
|
|
@@ -592,7 +591,7 @@ describe('Menu API', () => {
|
|
|
592
591
|
})
|
|
593
592
|
|
|
594
593
|
it('should focus the autofocus element inside the menu', () => {
|
|
595
|
-
mount(WrapperTwo, {
|
|
594
|
+
cy.mount(WrapperTwo, {
|
|
596
595
|
props: {
|
|
597
596
|
'no-focus': true
|
|
598
597
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-unused-expressions */
|
|
2
|
-
import {
|
|
2
|
+
import { vModelAdapter } from '@quasar/quasar-app-extension-testing-e2e-cypress'
|
|
3
3
|
import { h, ref } from 'vue'
|
|
4
|
-
import { vModelAdapter } from '../../../../test/cypress/helpers/v-model-adapter.js'
|
|
5
4
|
import QSelect from '../QSelect.js'
|
|
6
5
|
|
|
7
6
|
function getHostElement (extendedSelector = '') {
|
|
@@ -16,7 +15,7 @@ function mountQSelect (options = {}) {
|
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
17
|
|
|
19
|
-
return mount(QSelect, options)
|
|
18
|
+
return cy.mount(QSelect, options)
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
// QSelect does not set the `data-cy` attribute on the root element, but on the `.q-field__native` element
|
|
@@ -626,7 +626,7 @@ export default createComponent({
|
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
function onClick (node, meta, e, keyboard) {
|
|
629
|
-
keyboard !== true && blur(meta.key)
|
|
629
|
+
keyboard !== true && meta.selectable !== false && blur(meta.key)
|
|
630
630
|
|
|
631
631
|
if (hasSelection.value && meta.selectable) {
|
|
632
632
|
if (props.noSelectionUnset === false) {
|
|
@@ -649,7 +649,7 @@ export default createComponent({
|
|
|
649
649
|
if (e !== void 0) {
|
|
650
650
|
stopAndPrevent(e)
|
|
651
651
|
}
|
|
652
|
-
keyboard !== true && blur(meta.key)
|
|
652
|
+
keyboard !== true && meta.selectable !== false && blur(meta.key)
|
|
653
653
|
setExpanded(meta.key, !meta.expanded, node, meta)
|
|
654
654
|
}
|
|
655
655
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { mount } from '@cypress/vue'
|
|
2
1
|
import QUploader from '../QUploader'
|
|
3
2
|
|
|
4
3
|
describe('Uploader API', () => {
|
|
@@ -111,7 +110,7 @@ describe('Uploader API', () => {
|
|
|
111
110
|
</template>
|
|
112
111
|
`
|
|
113
112
|
|
|
114
|
-
mount(QUploader, {
|
|
113
|
+
cy.mount(QUploader, {
|
|
115
114
|
slots: {
|
|
116
115
|
header: headerSlot
|
|
117
116
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import WrapperOne from './../../../components/menu/__tests__/WrapperOne.vue'
|
|
1
|
+
import WrapperOne from '../../../components/menu/__tests__/WrapperOne.vue'
|
|
3
2
|
|
|
4
3
|
describe('use-anchor API', () => {
|
|
5
4
|
describe('Props', () => {
|
|
6
5
|
describe('Category: behavior', () => {
|
|
7
6
|
describe('(prop): target', () => {
|
|
8
7
|
it('should use another target using a CSS selector', () => {
|
|
9
|
-
mount(WrapperOne, {
|
|
8
|
+
cy.mount(WrapperOne, {
|
|
10
9
|
props: {
|
|
11
10
|
target: '.other-target'
|
|
12
11
|
}
|
|
@@ -26,7 +25,7 @@ describe('use-anchor API', () => {
|
|
|
26
25
|
})
|
|
27
26
|
|
|
28
27
|
it('should not show when target is false', () => {
|
|
29
|
-
mount(WrapperOne, {
|
|
28
|
+
cy.mount(WrapperOne, {
|
|
30
29
|
props: {
|
|
31
30
|
target: false
|
|
32
31
|
}
|
|
@@ -41,7 +40,7 @@ describe('use-anchor API', () => {
|
|
|
41
40
|
|
|
42
41
|
describe('(prop): no-parent-event', () => {
|
|
43
42
|
it('should not show when clicking parent with no-parent-event true', () => {
|
|
44
|
-
mount(WrapperOne, {
|
|
43
|
+
cy.mount(WrapperOne, {
|
|
45
44
|
props: {
|
|
46
45
|
'no-parent-event': true
|
|
47
46
|
}
|
|
@@ -54,7 +53,7 @@ describe('use-anchor API', () => {
|
|
|
54
53
|
})
|
|
55
54
|
|
|
56
55
|
it('should show when clicking parent with no-parent-event false', () => {
|
|
57
|
-
mount(WrapperOne, {
|
|
56
|
+
cy.mount(WrapperOne, {
|
|
58
57
|
props: {
|
|
59
58
|
'no-parent-event': false
|
|
60
59
|
}
|
|
@@ -69,7 +68,7 @@ describe('use-anchor API', () => {
|
|
|
69
68
|
|
|
70
69
|
describe('(prop): context-menu', () => {
|
|
71
70
|
it('should not show when left clicking parent', () => {
|
|
72
|
-
mount(WrapperOne, {
|
|
71
|
+
cy.mount(WrapperOne, {
|
|
73
72
|
props: {
|
|
74
73
|
'context-menu': true
|
|
75
74
|
}
|
|
@@ -82,7 +81,7 @@ describe('use-anchor API', () => {
|
|
|
82
81
|
})
|
|
83
82
|
|
|
84
83
|
it('should show when right clicking parent', () => {
|
|
85
|
-
mount(WrapperOne, {
|
|
84
|
+
cy.mount(WrapperOne, {
|
|
86
85
|
props: {
|
|
87
86
|
'context-menu': true
|
|
88
87
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { mount } from '@cypress/vue'
|
|
2
1
|
import FieldWrapper from './FieldWrapper.vue'
|
|
3
2
|
|
|
4
3
|
describe('use-field API', () => {
|
|
@@ -41,7 +40,7 @@ describe('use-field API', () => {
|
|
|
41
40
|
describe('(prop): label', () => {
|
|
42
41
|
it('should show the label when supplied', () => {
|
|
43
42
|
const label = 'Select something'
|
|
44
|
-
mount(FieldWrapper, {
|
|
43
|
+
cy.mount(FieldWrapper, {
|
|
45
44
|
props: {
|
|
46
45
|
label
|
|
47
46
|
}
|
|
@@ -52,7 +51,7 @@ describe('use-field API', () => {
|
|
|
52
51
|
|
|
53
52
|
it('should show the label centered when not focused', () => {
|
|
54
53
|
const label = 'Select something'
|
|
55
|
-
mount(FieldWrapper, {
|
|
54
|
+
cy.mount(FieldWrapper, {
|
|
56
55
|
props: {
|
|
57
56
|
label
|
|
58
57
|
}
|
|
@@ -65,7 +64,7 @@ describe('use-field API', () => {
|
|
|
65
64
|
|
|
66
65
|
it('should show the label stacked when focused', () => {
|
|
67
66
|
const label = 'Select something'
|
|
68
|
-
mount(FieldWrapper, {
|
|
67
|
+
cy.mount(FieldWrapper, {
|
|
69
68
|
props: {
|
|
70
69
|
label
|
|
71
70
|
}
|
|
@@ -81,7 +80,7 @@ describe('use-field API', () => {
|
|
|
81
80
|
describe('(prop): stack-label', () => {
|
|
82
81
|
it('should show the label stacked', () => {
|
|
83
82
|
const label = 'Select something'
|
|
84
|
-
mount(FieldWrapper, {
|
|
83
|
+
cy.mount(FieldWrapper, {
|
|
85
84
|
props: {
|
|
86
85
|
label,
|
|
87
86
|
stackLabel: true
|
|
@@ -96,7 +95,7 @@ describe('use-field API', () => {
|
|
|
96
95
|
describe('(prop): hint', () => {
|
|
97
96
|
it('should show a hint text', () => {
|
|
98
97
|
const hint = 'Select something'
|
|
99
|
-
mount(FieldWrapper, {
|
|
98
|
+
cy.mount(FieldWrapper, {
|
|
100
99
|
props: {
|
|
101
100
|
hint
|
|
102
101
|
}
|
|
@@ -109,7 +108,7 @@ describe('use-field API', () => {
|
|
|
109
108
|
describe('(prop): hide-hint', () => {
|
|
110
109
|
it('should not show a hint text when not focused', () => {
|
|
111
110
|
const hint = 'Select something'
|
|
112
|
-
mount(FieldWrapper, {
|
|
111
|
+
cy.mount(FieldWrapper, {
|
|
113
112
|
props: {
|
|
114
113
|
hint,
|
|
115
114
|
hideHint: true
|
|
@@ -120,7 +119,7 @@ describe('use-field API', () => {
|
|
|
120
119
|
})
|
|
121
120
|
it('should show a hint text when focused', () => {
|
|
122
121
|
const hint = 'Select something'
|
|
123
|
-
mount(FieldWrapper, {
|
|
122
|
+
cy.mount(FieldWrapper, {
|
|
124
123
|
props: {
|
|
125
124
|
hint,
|
|
126
125
|
hideHint: true
|
package/src/composables/private/__tests__/{use-model-toggle.spec.js → use-model-toggle.cy.js}
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/* eslint-disable no-unused-expressions */
|
|
2
|
-
import {
|
|
3
|
-
import WrapperOne from './../../../components/menu/__tests__/WrapperOne.vue'
|
|
4
|
-
import WrapperTwo from './../../../components/menu/__tests__/WrapperTwo.vue'
|
|
2
|
+
import { vModelAdapter } from '@quasar/quasar-app-extension-testing-e2e-cypress'
|
|
5
3
|
import { ref } from 'vue'
|
|
6
|
-
import
|
|
4
|
+
import WrapperOne from '../../../components/menu/__tests__/WrapperOne.vue'
|
|
5
|
+
import WrapperTwo from '../../../components/menu/__tests__/WrapperTwo.vue'
|
|
7
6
|
|
|
8
7
|
describe('use-model-toggle API', () => {
|
|
9
8
|
describe('Props', () => {
|
|
@@ -11,7 +10,7 @@ describe('use-model-toggle API', () => {
|
|
|
11
10
|
describe('(prop): model-value', () => {
|
|
12
11
|
it('should open the dialog when modifying the model-value', () => {
|
|
13
12
|
const model = ref(false)
|
|
14
|
-
mount(WrapperOne, {
|
|
13
|
+
cy.mount(WrapperOne, {
|
|
15
14
|
props: {
|
|
16
15
|
...vModelAdapter(model)
|
|
17
16
|
}
|
|
@@ -28,7 +27,7 @@ describe('use-model-toggle API', () => {
|
|
|
28
27
|
|
|
29
28
|
it('should close the dialog when modifying the model-value', () => {
|
|
30
29
|
const model = ref(true)
|
|
31
|
-
mount(WrapperOne, {
|
|
30
|
+
cy.mount(WrapperOne, {
|
|
32
31
|
props: {
|
|
33
32
|
...vModelAdapter(model)
|
|
34
33
|
}
|
|
@@ -50,7 +49,7 @@ describe('use-model-toggle API', () => {
|
|
|
50
49
|
describe('(event): update:model-value', () => {
|
|
51
50
|
it('should emit @update:model-value event when state changes', () => {
|
|
52
51
|
const fn = cy.stub()
|
|
53
|
-
mount(WrapperOne, {
|
|
52
|
+
cy.mount(WrapperOne, {
|
|
54
53
|
props: {
|
|
55
54
|
'onUpdate:modelValue': fn
|
|
56
55
|
}
|
|
@@ -70,7 +69,7 @@ describe('use-model-toggle API', () => {
|
|
|
70
69
|
describe('(event): show', () => {
|
|
71
70
|
it('should emit @show event when menu is triggered by parent', () => {
|
|
72
71
|
const fn = cy.stub()
|
|
73
|
-
mount(WrapperOne, {
|
|
72
|
+
cy.mount(WrapperOne, {
|
|
74
73
|
props: {
|
|
75
74
|
onShow: fn
|
|
76
75
|
}
|
|
@@ -90,7 +89,7 @@ describe('use-model-toggle API', () => {
|
|
|
90
89
|
|
|
91
90
|
it('should emit @show event when component is triggered with the show() method', () => {
|
|
92
91
|
const fn = cy.stub()
|
|
93
|
-
mount(WrapperOne, {
|
|
92
|
+
cy.mount(WrapperOne, {
|
|
94
93
|
props: {
|
|
95
94
|
onShow: fn
|
|
96
95
|
}
|
|
@@ -113,7 +112,7 @@ describe('use-model-toggle API', () => {
|
|
|
113
112
|
describe('(event): before-show', () => {
|
|
114
113
|
it('should emit @before-show event when menu is triggered by parent', () => {
|
|
115
114
|
const fn = cy.stub()
|
|
116
|
-
mount(WrapperOne, {
|
|
115
|
+
cy.mount(WrapperOne, {
|
|
117
116
|
props: {
|
|
118
117
|
onBeforeShow: fn
|
|
119
118
|
}
|
|
@@ -131,7 +130,7 @@ describe('use-model-toggle API', () => {
|
|
|
131
130
|
|
|
132
131
|
it('should emit @before-show event when component is triggered with the show() method', () => {
|
|
133
132
|
const fn = cy.stub()
|
|
134
|
-
mount(WrapperOne, {
|
|
133
|
+
cy.mount(WrapperOne, {
|
|
135
134
|
props: {
|
|
136
135
|
onBeforeShow: fn
|
|
137
136
|
}
|
|
@@ -152,7 +151,7 @@ describe('use-model-toggle API', () => {
|
|
|
152
151
|
describe('(event): hide', () => {
|
|
153
152
|
it('should emit @hide event when menu is triggered by parent', () => {
|
|
154
153
|
const fn = cy.stub()
|
|
155
|
-
mount(WrapperOne, {
|
|
154
|
+
cy.mount(WrapperOne, {
|
|
156
155
|
props: {
|
|
157
156
|
onHide: fn
|
|
158
157
|
}
|
|
@@ -177,7 +176,7 @@ describe('use-model-toggle API', () => {
|
|
|
177
176
|
|
|
178
177
|
it('should emit @hide event when component is triggered with the show() method', () => {
|
|
179
178
|
const fn = cy.stub()
|
|
180
|
-
mount(WrapperOne, {
|
|
179
|
+
cy.mount(WrapperOne, {
|
|
181
180
|
props: {
|
|
182
181
|
onHide: fn
|
|
183
182
|
}
|
|
@@ -205,7 +204,7 @@ describe('use-model-toggle API', () => {
|
|
|
205
204
|
describe('(event): before-hide', () => {
|
|
206
205
|
it('should emit @before-hide event when menu is triggered by parent', () => {
|
|
207
206
|
const fn = cy.stub()
|
|
208
|
-
mount(WrapperOne, {
|
|
207
|
+
cy.mount(WrapperOne, {
|
|
209
208
|
props: {
|
|
210
209
|
onBeforeHide: fn
|
|
211
210
|
}
|
|
@@ -230,7 +229,7 @@ describe('use-model-toggle API', () => {
|
|
|
230
229
|
|
|
231
230
|
it('should emit @before-hide event when component is triggered with the show() method', () => {
|
|
232
231
|
const fn = cy.stub()
|
|
233
|
-
mount(WrapperOne, {
|
|
232
|
+
cy.mount(WrapperOne, {
|
|
234
233
|
props: {
|
|
235
234
|
onBeforeHide: fn
|
|
236
235
|
}
|
|
@@ -259,7 +258,7 @@ describe('use-model-toggle API', () => {
|
|
|
259
258
|
describe('Methods', () => {
|
|
260
259
|
describe('(method): show', () => {
|
|
261
260
|
it('should trigger the menu to show', () => {
|
|
262
|
-
mount(WrapperOne)
|
|
261
|
+
cy.mount(WrapperOne)
|
|
263
262
|
|
|
264
263
|
cy.dataCy('wrapper')
|
|
265
264
|
cy.dataCy('method-show')
|
|
@@ -271,7 +270,7 @@ describe('use-model-toggle API', () => {
|
|
|
271
270
|
|
|
272
271
|
describe('(method): hide', () => {
|
|
273
272
|
it('should trigger the menu to hide', () => {
|
|
274
|
-
mount(WrapperOne)
|
|
273
|
+
cy.mount(WrapperOne)
|
|
275
274
|
|
|
276
275
|
cy.dataCy('wrapper')
|
|
277
276
|
.click()
|
|
@@ -286,7 +285,7 @@ describe('use-model-toggle API', () => {
|
|
|
286
285
|
|
|
287
286
|
describe('(method): toggle', () => {
|
|
288
287
|
it('should toggle the menu', () => {
|
|
289
|
-
mount(WrapperTwo)
|
|
288
|
+
cy.mount(WrapperTwo)
|
|
290
289
|
|
|
291
290
|
cy.dataCy('wrapper')
|
|
292
291
|
.then(() => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import QAvatar from '
|
|
2
|
-
import {
|
|
3
|
-
import { useSizeDefaults } from './../use-size.js'
|
|
1
|
+
import QAvatar from '../../../components/avatar/QAvatar.js'
|
|
2
|
+
import { useSizeDefaults } from '../use-size.js'
|
|
4
3
|
|
|
5
4
|
describe('use-size API', () => {
|
|
6
5
|
describe('Props', () => {
|
|
@@ -8,7 +7,7 @@ describe('use-size API', () => {
|
|
|
8
7
|
describe('(prop): size', () => {
|
|
9
8
|
it('should set the size', () => {
|
|
10
9
|
const size = '24px'
|
|
11
|
-
mount(QAvatar, {
|
|
10
|
+
cy.mount(QAvatar, {
|
|
12
11
|
props: {
|
|
13
12
|
size,
|
|
14
13
|
color: 'grey'
|
|
@@ -21,7 +20,7 @@ describe('use-size API', () => {
|
|
|
21
20
|
|
|
22
21
|
it('should set the size with standard size names', () => {
|
|
23
22
|
const size = 'sm'
|
|
24
|
-
mount(QAvatar, {
|
|
23
|
+
cy.mount(QAvatar, {
|
|
25
24
|
props: {
|
|
26
25
|
size,
|
|
27
26
|
color: 'grey'
|