mirror of
https://github.com/beekeeper-studio/beekeeper-studio.git
synced 2026-03-13 10:12:54 +08:00
initial e2e code infra and tests remove unnecessary files Revert yarn.lock to match master delete load sql db for postgres revert yarn.lock remove accidental changes add line at EOF re-add yarn.lock Revert yarn.lock to match master add line at EOF add more text and ResultPane selectors add tests to table side bars, table creation and deletion tests refactoring clean up & activate gha actions again attempting to fix e2e ci update build step gha adjustments update package.json fixing ci attempt attempt to fix ci attempt to fix action attempt to fix ci attempt to fix ci attempt to fix ci attempt to fix ci attempt to fix ci
28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
import { Locator, Page } from '@playwright/test';
|
|
|
|
export class QueryResultPane {
|
|
private page: Page;
|
|
resultFirstRow: Locator;
|
|
resultSecondRow: Locator;
|
|
resultThridRow: Locator;
|
|
firstItemAndFirstColumn: Locator;
|
|
noResults: Locator;
|
|
firstColumnHeader: Locator;
|
|
createTableResults: Locator;
|
|
|
|
constructor(page: Page) {
|
|
this.page = page;
|
|
|
|
// probably there are better ways to do this but this is good enough for our tests
|
|
this.resultFirstRow = this.page.getByRole('gridcell', { name: '1', exact: true }).first();
|
|
this.resultSecondRow = this.page.getByRole('gridcell', { name: '2', exact: true }).first();
|
|
this.resultThridRow = this.page.getByRole('gridcell', { name: '3', exact: true }).first();
|
|
this.firstItemAndFirstColumn = this.page.getByRole('gridcell').nth(1);
|
|
this.firstItemAndFirstColumn = this.page.getByRole('gridcell').nth(1);
|
|
this.noResults = this.page.getByText('No Results');
|
|
// right now it needs to be an id
|
|
this.firstColumnHeader = this.page.getByRole('columnheader', { name: 'id' }).locator('div').nth(3);
|
|
this.createTableResults = this.page.getByText('Query 1/1: No Results. 0 rows');
|
|
}
|
|
}
|