then in the test you will use cy.get("@itemList")....
# e2e-testing
a
then in the test you will use cy.get("@itemList").then((itemList) => {// continue what you want here})