Cypressには値が確かかどうかを調べるための様々なassertionが用意されている
docs.cypress.io
その中でもパッと出てこなかったassertionをメモっておく
- セレクトボックスで選択されている値
- URLに含まれているクエリ
セレクトボックスで選択されている値
https://docs.cypress.io/api/commands/select.html#Examples
cy.get('select') .select('apples').should('have.value', '456')
URLに含まれているクエリ
https://hashrocket.com/blog/posts/where-am-i-url-assertions-with-cypress
cy.url().should('contain', '/pokemon');