Skip to content

Commit

Permalink
test(QDialog): apply vModelAdapter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IlCallo committed Feb 23, 2024
1 parent e26f9ee commit a7d5a1f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
"devDependencies": {
"@quasar/app-vite": "^2.0.0-beta.1",
"@quasar/extras": "^1.16.4",
"@quasar/quasar-app-extension-testing-e2e-cypress": "^5.2.0",
"@quasar/quasar-app-extension-testing-e2e-cypress": "^5.2.1",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"autoprefixer": "^10.4.17",
"babel-preset-es2015-rollup": "^3.0.0",
"cli-highlight": "^2.1.11",
"cross-env": "^7.0.3",
"cssnano": "^5.1.14",
"cypress": "^13.6.4",
"cypress": "^13.6.6",
"cypress-json-results": "^1.2.1",
"diff": "^5.2.0",
"eslint": "^8.56.0",
Expand Down
7 changes: 2 additions & 5 deletions ui/src/components/dialog/__tests__/QDialog.cy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import DialogWrapper from './DialogWrapper.vue'
import { nextTick, ref } from 'vue'
import { ref } from 'vue'
import { vModelAdapter } from '@quasar/quasar-app-extension-testing-e2e-cypress'

function mountQDialogWrapper (options) {
Expand Down Expand Up @@ -162,9 +162,8 @@ describe('Dialog API', () => {
cy.dataCy('input-field')
.focus()
cy.dataCy('input-field')
.then(async () => {
.then(() => {
model.value = true
await nextTick()
})
cy.withinDialog(() => {
closeDialogViaBackdrop()
Expand All @@ -178,7 +177,6 @@ describe('Dialog API', () => {
.then(async () => {
await Cypress.vueWrapper.setProps({ noRefocus: true })
model.value = true
await nextTick()
})

cy.withinDialog(() => {
Expand Down Expand Up @@ -208,7 +206,6 @@ describe('Dialog API', () => {
cy.wrap().then(async () => {
await Cypress.vueWrapper.setProps({ noFocus: true })
model.value = true
await nextTick()
})

cy.withinDialog(() => {
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1687,10 +1687,10 @@
resolved "https://registry.yarnpkg.com/@quasar/extras/-/extras-1.16.9.tgz#6cdf9d34862e6f58009443a2d1e34b84a5e73ad0"
integrity sha512-SlOhwzXyPQHWgQIS2ncyDdYdksCJvUYNtgsDQqzAKEG3r3d/ejOxvThle79HTK3Q6HB+gQWFG21Ux00Osr5XSw==

"@quasar/quasar-app-extension-testing-e2e-cypress@^5.2.0":
version "5.2.0"
resolved "https://registry.yarnpkg.com/@quasar/quasar-app-extension-testing-e2e-cypress/-/quasar-app-extension-testing-e2e-cypress-5.2.0.tgz#a2ee0f91b07fc1a2b2b7c7fd30bec05fba74881b"
integrity sha512-Fb8TXPo3uG2tRoSjxNb+3VnKXKZDU+lf8hkKWpzlbDUiMAqZYvHCgXKIaC+Kwm2L1+y9ky4+Pg1nPpfNIBpfcg==
"@quasar/quasar-app-extension-testing-e2e-cypress@^5.2.1":
version "5.2.1"
resolved "https://registry.yarnpkg.com/@quasar/quasar-app-extension-testing-e2e-cypress/-/quasar-app-extension-testing-e2e-cypress-5.2.1.tgz#0f801e945535d4b96e55429f17a73895287a1837"
integrity sha512-GrXw6/vP72u0Ia9XGOC1YotHpm+bAHJNOgOu9oX4R8xJccWNpGBX6/aktTEbVDaY3+TSgS0ce7J6hoIMwzu7zA==
dependencies:
"@cypress/code-coverage" "^3.12.15"
cross-env "^7.0.3"
Expand Down Expand Up @@ -4008,10 +4008,10 @@ cypress@^12.10.0:
untildify "^4.0.0"
yauzl "^2.10.0"

cypress@^13.6.4:
version "13.6.5"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.6.5.tgz#d8ab22dda3b9a8abeebcb65dc8a2707cb73bf925"
integrity sha512-2NxSDcO2zHw5kTcosc6dzv2zppEqiXrFFhZw5cx/EWrSNZABTzpr/EyvYzGgrWm46o5173JUfuJfDQcaiZZPVQ==
cypress@^13.6.6:
version "13.6.6"
resolved "https://registry.yarnpkg.com/cypress/-/cypress-13.6.6.tgz#5133f231ed1c6e57dc8dcbf60aade220bcd6884b"
integrity sha512-S+2S9S94611hXimH9a3EAYt81QM913ZVA03pUmGDfLTFa5gyp85NJ8dJGSlEAEmyRsYkioS1TtnWtbv/Fzt11A==
dependencies:
"@cypress/request" "^3.0.0"
"@cypress/xvfb" "^1.2.4"
Expand Down

0 comments on commit a7d5a1f

Please sign in to comment.