quasarframework / quasar-testing

Testing Harness App Extensions for the Quasar Framework 2.0+
https://testing.quasar.dev
MIT License
179 stars 66 forks source link

Options param is not forwarded to click method (quasar-app-extension-testing-e2e-cypress) #351

Closed tomukasas closed 6 months ago

tomukasas commented 7 months ago

Software version

OS: Windows 10 Node: 16.20.2 NPM: 8.19.4 Any other software related to your bug: @quasar/quasar-app-extension-testing-e2e-cypress: ^5.2.0-alpha.3

What did you get as the error?

Timed out retrying after 4050ms: cy.click() failed because this element XXX is being covered by another element XXX

What were you expecting?

To be able to pass force: true as an option. Doesn't seem like options param is being forwarded to the click from line 59 to line 62 inside cypress-overrides.ts:

image

What steps did you take, to get the error?

cy.dataCy('radio').check({ force: true })

IlCallo commented 7 months ago

Hey there, yes, this behaviour is documented here: https://github.com/quasarframework/quasar-testing/tree/dev/packages/e2e-cypress#caveats

If I recall correctly, I couldn't make it work by passing the options due to typing or scope of the command In particular, the options provided there are for check command, but since we don't always have a native checkbox, we're using click command internally, which have different options than check command of course

If you want to give a shot, manually wiring check options that could map to similar click options, go on! I'd gladly review a PR

IlCallo commented 6 months ago

Closing due to lack of response, but do send a PR, if you get the chance