mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 00:56:38 +00:00
test(playwright): make cell active if not in active state
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -95,6 +95,13 @@ export class SelectOptionCellPageObject extends BasePage {
|
||||
}
|
||||
|
||||
async verifyOptions({ index, columnHeader, options }: { index: number; columnHeader: string; options: string[] }) {
|
||||
const selectCell = this.get({ index, columnHeader });
|
||||
|
||||
// check if cell active
|
||||
if (!(await selectCell.getAttribute('class')).includes('active')) {
|
||||
await selectCell.click();
|
||||
}
|
||||
|
||||
await this.get({ index, columnHeader }).click();
|
||||
|
||||
let counter = 0;
|
||||
|
||||
Reference in New Issue
Block a user