mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:47:19 +00:00
test(cypress): select cell if not active
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -25,7 +25,14 @@ export class SelectOptionCellPageObject extends BasePage {
|
||||
option: string;
|
||||
multiSelect?: boolean;
|
||||
}) {
|
||||
await this.get({ index, columnHeader }).click();
|
||||
const selectCell = this.get({ index, columnHeader });
|
||||
|
||||
// check if cell active
|
||||
if (!(await selectCell.getAttribute('class')).includes('active')) {
|
||||
await selectCell.click();
|
||||
}
|
||||
|
||||
await selectCell.click();
|
||||
|
||||
await this.rootPage.getByTestId(`select-option-${columnHeader}-${index}`).getByText(option).click();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user