Files
nocodb/tests/playwright/pages/Dashboard/common/Toolbar/SearchData.ts
Raju Udava b2134c0ff9 test: sync
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
2023-08-31 15:38:24 +05:30

21 lines
476 B
TypeScript

import BasePage from '../../../Base';
import { ToolbarPage } from './index';
import { expect } from '@playwright/test';
export class ToolbarSearchDataPage extends BasePage {
readonly toolbar: ToolbarPage;
constructor(toolbar: ToolbarPage) {
super(toolbar.rootPage);
this.toolbar = toolbar;
}
get() {
return this.rootPage.getByTestId('search-data-input');
}
async verify(query: string) {
expect(await this.get().inputValue()).toBe(query);
}
}