craftcms / spoke-and-chain

Craft CMS + Craft Commerce demo site.
https://craftcms.com/demo?kind=spokeandchain
BSD Zero Clause License
54 stars 28 forks source link

Cypress tests do not pass #122

Closed piotrpog closed 2 years ago

piotrpog commented 2 years ago

For example - checkout.spec.js file.

It checks for cy.get('form#guest-checkout input[type=text]'), but no such element exists, template uses button instead input.

Or there are errors because of sticky header, cypress complains that it covers buttons:

Timed out retrying after 4050ms: cy.click() failed because this element:

<button class="button w-full sm:w-auto" type="submit" name="submit">Add to ...</button>

is being covered by another element:

<div class="relative lg:container lg:flex lg:items-center lg:justify-between">...</div>

This could be fixed by using { scrollBehavior: 'center' }.

nfourtythree commented 2 years ago

This is now fixed on stable.

Thanks!