I have a Cypress command with a parameter that I want to restrict so it only accepts certain values. For example, I want the columnValue
to be limited to 'xxx', 'yyy', or 'zzz'. How can I achieve this?
Cypress.Commands.add('addColumnAsDimension', (columnName: string) => {
chartMenu.addColumnButton.click();
chartMenu.columnNameButton(columnName).click();
chartMenu.addAsDimensionButton.click();
});