Browse Source

test(playwright): make cell active if not in active state

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4222/head
Pranav C 2 years ago
parent
commit
3daf8c3eb4
  1. 7
      tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts

7
tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts

@ -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;

Loading…
Cancel
Save