Skip to content

Commit 04e49ed

Browse files
committed
fix: fix tests
1 parent ce1915e commit 04e49ed

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

tests/suites/storage/StoragePage.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,24 @@ import type {Locator, Page} from '@playwright/test';
22

33
import {PageModel} from '../../models/PageModel';
44
import {storagePage} from '../../utils/constants';
5-
import {selectContentTable} from '../../utils/selectContentTable';
65

76
type EntityType = 'Groups' | 'Nodes';
8-
type VisibleEntityType = 'Degraded' | 'Out of space' | 'All';
97

108
const storageTypeFilterQa = 'storage-type-filter';
11-
const storageVisibleEntitiesFilterQa = 'storage-visible-entities-filter';
129

1310
export class StoragePage extends PageModel {
1411
readonly table: Locator;
1512
protected readonly entityTypeSelector: Locator;
16-
protected readonly visibleEntityTypeSelector: Locator;
1713

1814
constructor(page: Page) {
1915
super(page, storagePage);
2016

21-
this.table = selectContentTable(this.selector);
17+
this.table = this.selector.locator('.ydb-paginated-table__table');
2218

2319
this.entityTypeSelector = this.selector.getByTestId(storageTypeFilterQa);
24-
this.visibleEntityTypeSelector = this.selector.getByTestId(storageVisibleEntitiesFilterQa);
2520
}
2621

2722
async selectEntityType(type: EntityType) {
2823
await this.entityTypeSelector.getByLabel(type).click();
2924
}
30-
async selectVisibleEntityType(type: VisibleEntityType) {
31-
await this.visibleEntityTypeSelector.getByLabel(type).click();
32-
}
3325
}

tests/suites/storage/storage.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ test.describe('Test Storage page', async () => {
1515
const storagePage = new StoragePage(page);
1616
await storagePage.goto();
1717

18-
await storagePage.selectVisibleEntityType('All');
1918
await storagePage.selectEntityType('Groups');
2019

2120
await expect(storagePage.table).toBeVisible();
@@ -25,7 +24,6 @@ test.describe('Test Storage page', async () => {
2524
const storagePage = new StoragePage(page);
2625
await storagePage.goto();
2726

28-
await storagePage.selectVisibleEntityType('All');
2927
await storagePage.selectEntityType('Nodes');
3028

3129
await expect(storagePage.table).toBeVisible();

0 commit comments

Comments
 (0)