Skip to content

Commit b3d7f29

Browse files
committed
fix: remove indicator tests
1 parent 0a080c6 commit b3d7f29

File tree

2 files changed

+0
-53
lines changed

2 files changed

+0
-53
lines changed

tests/suites/tenant/queryEditor/models/QueryEditor.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ export class QueryEditor {
5252
private stopButton: Locator;
5353
private saveButton: Locator;
5454
private gearButton: Locator;
55-
private indicatorIcon: Locator;
5655
private banner: Locator;
5756
private executionStatus: Locator;
5857
private radioButton: Locator;
@@ -70,9 +69,6 @@ export class QueryEditor {
7069
this.gearButton = this.selector.locator('.ydb-query-editor-button__gear-button');
7170
this.executionStatus = this.selector.locator('.kv-query-execution-status .g-text');
7271
this.resultsControls = this.selector.locator('.ydb-query-result__controls');
73-
this.indicatorIcon = this.selector.locator(
74-
'.kv-query-execution-status__query-settings-icon',
75-
);
7672
this.elapsedTimeLabel = this.selector.locator('.kv-query-execution-status .g-label__value');
7773
this.radioButton = this.selector.locator('.query-editor__pane-wrapper .g-radio-button');
7874
this.banner = this.page.locator('.ydb-query-settings-banner');
@@ -295,16 +291,6 @@ export class QueryEditor {
295291
return true;
296292
}
297293

298-
async isIndicatorIconVisible() {
299-
await this.indicatorIcon.waitFor({state: 'visible', timeout: VISIBILITY_TIMEOUT});
300-
return true;
301-
}
302-
303-
async isIndicatorIconHidden() {
304-
await this.indicatorIcon.waitFor({state: 'hidden', timeout: VISIBILITY_TIMEOUT});
305-
return true;
306-
}
307-
308294
async waitForStatus(expectedStatus: string, timeout = VISIBILITY_TIMEOUT) {
309295
await this.executionStatus.waitFor({state: 'visible', timeout});
310296

tests/suites/tenant/queryEditor/querySettings.test.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -77,45 +77,6 @@ test.describe('Test Query Settings', async () => {
7777
await expect(queryEditor.isBannerHidden()).resolves.toBe(true);
7878
});
7979

80-
test('Indicator icon appears after closing banner', async ({page}) => {
81-
const queryEditor = new QueryEditor(page);
82-
83-
// Change a setting
84-
await queryEditor.clickGearButton();
85-
await queryEditor.settingsDialog.changeQueryMode(QUERY_MODES.scan);
86-
await queryEditor.settingsDialog.clickButton(ButtonNames.Save);
87-
88-
// Execute a script to make the banner appear
89-
await queryEditor.setQuery(testQuery);
90-
await queryEditor.clickRunButton();
91-
92-
// Close the banner
93-
await queryEditor.closeBanner();
94-
95-
await expect(queryEditor.isIndicatorIconVisible()).resolves.toBe(true);
96-
});
97-
98-
test('Indicator not appears for running query', async ({page}) => {
99-
const queryEditor = new QueryEditor(page);
100-
101-
// Change a setting
102-
await queryEditor.clickGearButton();
103-
await queryEditor.settingsDialog.changeTransactionMode(TRANSACTION_MODES.snapshot);
104-
await queryEditor.settingsDialog.clickButton(ButtonNames.Save);
105-
106-
// Execute a script to make the banner appear
107-
await queryEditor.setQuery(testQuery);
108-
await queryEditor.clickRunButton();
109-
110-
// Close the banner
111-
await queryEditor.closeBanner();
112-
await queryEditor.setQuery(longRunningQuery);
113-
await queryEditor.clickRunButton();
114-
await page.waitForTimeout(500);
115-
116-
await expect(queryEditor.isIndicatorIconHidden()).resolves.toBe(true);
117-
});
118-
11980
test('Gear button shows number of changed settings', async ({page}) => {
12081
const queryEditor = new QueryEditor(page);
12182
await queryEditor.clickGearButton();

0 commit comments

Comments
 (0)