mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 23:46:58 +00:00
test: cleanup
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { CellPageObject } from '.';
|
||||
import BasePage from '../../../Base';
|
||||
import { expect } from '@playwright/test';
|
||||
|
||||
export class DateCellPageObject extends BasePage {
|
||||
readonly cell: CellPageObject;
|
||||
@@ -20,6 +21,12 @@ export class DateCellPageObject extends BasePage {
|
||||
});
|
||||
}
|
||||
|
||||
async verify({ index, columnHeader, date }: { index: number; columnHeader: string; date: string }) {
|
||||
const cell = await this.get({ index, columnHeader });
|
||||
await cell.scrollIntoViewIfNeeded();
|
||||
await expect(cell.locator(`[title="${date}"]`)).toBeVisible();
|
||||
}
|
||||
|
||||
async selectDate({
|
||||
// date in format `YYYY-MM-DD`
|
||||
date,
|
||||
|
||||
Reference in New Issue
Block a user