cy.get('div:nth-child(1) > div:nth-child(1) > div.MuiGrid-root.MuiGrid-item.MuiGrid-grid-xs-6 > div > span.MuiChip-label').then(($today) => {
const today=$today.text()
cy.log("today")
cy.log(today.charAt(0))
})
cy.get('div:nth-child(1) > div:nth-child(2) > div.MuiGrid-root.MuiGrid-item.MuiGrid-grid-xs-6 > div > span.MuiChip-label').then(($tomorrow,today) => {
const tom=$tomorrow.text()
cy.log("tomorrow")
cy.log(tom.charAt(0))
})
I want to add today.charAt(0)
and tom.CharAt(0)
, how can I do this in second then
block?