kind-van-46599
02/13/2023, 2:53 AMlet indexInd = true;
let index: number;
indexInd ? (index = 0) : (index = 1);
let dataTestIdInd = 'lyactuals'
let dataTestId: string;
/* Indicator to choose the Deals table according to the validation*/
dataTestIdInd?.includes('lyactuals')
? (dataTestId = 'LastYearActualsTable')
: dataTestIdInd?.includes('proposed')
? (dataTestId = 'ReadonlyProposedTable')
: (dataTestId = 'SlottingBoardTable');
cy.findByTestId(dataTestId)
.scrollIntoView()
.find('tfoot tr')
.eq(index)
.find('td'). then(() => {})