Complete the code to check if the element exists on the page.
cy.get('#submit-button').should('[1]')
The exist assertion checks if the element is present in the DOM.
Complete the code to check if the element is visible on the page.
cy.get('.menu').should('[1]')
The be.visible assertion checks if the element is visible to the user.
Fix the error in the code to check if the element has the exact text 'Hello'.
cy.get('h1').should('[1]', 'Hello')
The have.text assertion checks if the element's text exactly matches the given string.
Fill both blanks to check if the element with id 'message' is visible and contains the text 'Success'.
cy.get('#message').should('[1]').and('[2]', 'Success')
First, be.visible checks visibility. Then, contain checks if the text includes 'Success'.
Fill all three blanks to check if the element with class 'alert' exists, is visible, and has the exact text 'Warning!'.
cy.get('.alert').should('[1]').and('[2]').and('[3]', 'Warning!')
The assertions check presence (exist), visibility (be.visible), and exact text (have.text).