diff --git a/src/services/settings.ts b/src/services/settings.ts index 978a26f52a..0695830364 100644 --- a/src/services/settings.ts +++ b/src/services/settings.ts @@ -36,7 +36,7 @@ export const DEFAULT_USER_SETTINGS = { [LAST_USED_QUERY_ACTION_KEY]: QUERY_ACTIONS.execute, [ASIDE_HEADER_COMPACT_KEY]: true, [PARTITIONS_HIDDEN_COLUMNS_KEY]: [], - [USE_PAGINATED_TABLES_KEY]: false, + [USE_PAGINATED_TABLES_KEY]: true, [USE_CLUSTER_BALANCER_AS_BACKEND_KEY]: true, [ENABLE_AUTOCOMPLETE]: true, [AUTOCOMPLETE_ON_ENTER]: true, diff --git a/tests/suites/nodes/NodesPage.ts b/tests/suites/nodes/NodesPage.ts index f163e37574..e81119d96b 100644 --- a/tests/suites/nodes/NodesPage.ts +++ b/tests/suites/nodes/NodesPage.ts @@ -2,7 +2,6 @@ import type {Locator, Page} from '@playwright/test'; import {PageModel} from '../../models/PageModel'; import {nodesPage} from '../../utils/constants'; -import {selectContentTable} from '../../utils/selectContentTable'; export class NodesPage extends PageModel { readonly table: Locator; @@ -10,6 +9,6 @@ export class NodesPage extends PageModel { constructor(page: Page) { super(page, nodesPage); - this.table = selectContentTable(this.selector); + this.table = this.selector.locator('.ydb-paginated-table__table'); } } diff --git a/tests/suites/storage/StoragePage.ts b/tests/suites/storage/StoragePage.ts index e18e9a2bc9..4ea8b3c142 100644 --- a/tests/suites/storage/StoragePage.ts +++ b/tests/suites/storage/StoragePage.ts @@ -2,32 +2,24 @@ import type {Locator, Page} from '@playwright/test'; import {PageModel} from '../../models/PageModel'; import {storagePage} from '../../utils/constants'; -import {selectContentTable} from '../../utils/selectContentTable'; type EntityType = 'Groups' | 'Nodes'; -type VisibleEntityType = 'Degraded' | 'Out of space' | 'All'; const storageTypeFilterQa = 'storage-type-filter'; -const storageVisibleEntitiesFilterQa = 'storage-visible-entities-filter'; export class StoragePage extends PageModel { readonly table: Locator; protected readonly entityTypeSelector: Locator; - protected readonly visibleEntityTypeSelector: Locator; constructor(page: Page) { super(page, storagePage); - this.table = selectContentTable(this.selector); + this.table = this.selector.locator('.ydb-paginated-table__table'); this.entityTypeSelector = this.selector.getByTestId(storageTypeFilterQa); - this.visibleEntityTypeSelector = this.selector.getByTestId(storageVisibleEntitiesFilterQa); } async selectEntityType(type: EntityType) { await this.entityTypeSelector.getByLabel(type).click(); } - async selectVisibleEntityType(type: VisibleEntityType) { - await this.visibleEntityTypeSelector.getByLabel(type).click(); - } } diff --git a/tests/suites/storage/storage.test.ts b/tests/suites/storage/storage.test.ts index 57a2665f4e..8c930c49ec 100644 --- a/tests/suites/storage/storage.test.ts +++ b/tests/suites/storage/storage.test.ts @@ -15,7 +15,6 @@ test.describe('Test Storage page', async () => { const storagePage = new StoragePage(page); await storagePage.goto(); - await storagePage.selectVisibleEntityType('All'); await storagePage.selectEntityType('Groups'); await expect(storagePage.table).toBeVisible(); @@ -25,7 +24,6 @@ test.describe('Test Storage page', async () => { const storagePage = new StoragePage(page); await storagePage.goto(); - await storagePage.selectVisibleEntityType('All'); await storagePage.selectEntityType('Nodes'); await expect(storagePage.table).toBeVisible();