I have a problem in clicking in a select element using cypress.
This is the element to click:

And i receive this error.
cy.click() cannot be called on a <select> element. Use the cy.select() command instead to change the value.
This is my code:
cy.get('[name^=shopveg]').click()
After searching some people advise using the trigger command. Changed the code to:
cy.get('[name^=shopveg]').trigger('click')
The step pass in the cypress execution but the click was not executed.
As the message says,
.select()is the command to useThat's because
<select>behavior is implemented by a web component (seeslottag), not javascript, so there's no click handler available.