Complete the code to check if an element is hidden using Cypress.
cy.get('.menu').should('[1]')
The not.be.visible assertion checks that the element is hidden.
Complete the code to force click a hidden button in Cypress.
cy.get('#submit-btn').click({ [1]: true })
The force: true option allows clicking even if the element is hidden.
Fix the error in the code to check that a hidden element does not exist.
cy.get('.popup').should('[1]')
The not.exist assertion checks that the element is not present in the DOM at all.
Fill both blanks to wait for a hidden element to appear and then verify it is visible.
cy.get('.loading', { [1]: 10000 }).should('[2]')
Set a longer timeout to wait for the element, then assert it is be.visible.
Fill all three blanks to check a hidden element's text after forcing a click to reveal it.
cy.get('#toggle-btn').click({ [1]: true }); cy.get('#secret-message').should('[2]').and('contain', [3])
Force the click with force: true, then check the element is visible and contains the expected text.