stocky-insurance-27750
01/31/2023, 3:58 PMelement.trigger('click') but it was a mistake. We're using storybook to display the page. I'm using the 'full screen' mode so it's not iframe related.
Very simple test
cy.get('element').click()
cy.url().should('include', '/stores')
I've tried using .wait(5000).click() - focus().click() - click({force:true}) and variations with `trigger('click')`too
If I use the cypress ui - the test closes as soon as the click event is finished, it won't wait or anything, so I can't debug it.
If I use the CLI in any way, the test hangs on the click() and doesn't do anything. If I use the trigger('click') the test runs but fails because the url doesn't change. Which makes me think the click isn't working there, either.
Any ideas anyone? I've been trying this for a few hours now.stocky-insurance-27750
01/31/2023, 4:04 PMstocky-insurance-27750
01/31/2023, 4:42 PMstocky-insurance-27750
01/31/2023, 4:45 PMwonderful-match-15836
01/31/2023, 5:59 PMstocky-insurance-27750
02/01/2023, 9:33 AMstocky-insurance-27750
02/01/2023, 9:50 AMvueRouter from 'storybook-vue3-router' . So when we manually click the element in storybook, it basically goes back to root/home.wonderful-match-15836
02/01/2023, 4:40 PMstocky-insurance-27750
02/01/2023, 4:45 PMstocky-insurance-27750
02/01/2023, 4:46 PM