Complete the code to scope the query inside the element with class 'form'.
cy.get('.form').[1](() => { cy.get('input[name="email"]').type('user@example.com') })
The within command scopes all subsequent queries inside the matched element, here the element with class 'form'.
Complete the code to check that the button inside the '.modal' is visible using scoped queries.
cy.get('.modal').[1](() => { cy.get('button.submit').should('be.visible') })
within scopes the query to the '.modal' element, so the button is searched only inside it.
Fix the error in the code by choosing the correct command to scope queries inside '#container'.
cy.get('#container').[1](() => { cy.get('input').type('Hello') })
The within command scopes the queries inside '#container'. Using 'get' again would search the whole document.
Fill both blanks to scope queries inside '.card' and check the text of the header.
cy.get('.card').[1](() => { cy.get('h2').[2]('contain', 'Welcome') })
within scopes queries inside '.card'. Then should('contain', 'Welcome') checks the header text.
Fill all three blanks to scope queries inside '#list', find list items, and assert the count is 3.
cy.get('#list').[1](() => { cy.get('li').[2]('have.length', [3]) })
within scopes queries inside '#list'. Then should('have.length', 3) asserts the number of li elements.