Skip to content

Commit d98bd01

Browse files
committed
fix: tests
1 parent 4f99f5a commit d98bd01

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

src/containers/AsideNavigation/AsideNavigation.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
width: 300px;
2020
padding: 10px;
2121
}
22-
22+
&__hotkeys-drawer {
23+
left: 0;
24+
}
2325
&__hotkeys-panel-title {
2426
display: flex;
2527
gap: var(--g-spacing-2);

src/containers/AsideNavigation/hooks/useHotkeysPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const HotkeysPanelWrapper = ({
7878
visible={visible}
7979
hotkeys={hotkeyGroups}
8080
className={b('hotkeys-panel')}
81+
drawerItemClassName={b('hotkeys-drawer')}
8182
title={
8283
<div className={b('hotkeys-panel-title')}>
8384
{i18n('hotkeys.title')}

tests/suites/paginatedTable/paginatedTable.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export class TableControls {
3333

3434
async selectRadioOption(groupIndex: number, optionText: string) {
3535
const radioGroup = this.radioButtons.nth(groupIndex);
36-
const option = radioGroup.locator(`.g-radio-button__option:has-text("${optionText}")`);
36+
const option = radioGroup.locator(
37+
`.g-segmented-radio-group__option:has-text("${optionText}")`,
38+
);
3739
await option.evaluate((el) => (el as HTMLElement).click());
3840
}
3941

tests/suites/sidebar/Sidebar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class Sidebar {
2020
this.logoButton = this.sidebarContainer.locator('.gn-logo__btn-logo');
2121
this.footer = this.sidebarContainer.locator('.gn-aside-header__footer');
2222
this.drawer = page.locator('.gn-drawer');
23-
this.popupContent = page.locator('.g-popup__content');
23+
this.popupContent = page.locator('.information-popup__content');
2424
this.hotkeysButton = this.popupContent.locator('text=Keyboard shortcuts');
2525
this.hotkeysPanel = page.locator('.gn-hotkeys-panel__drawer-item');
2626
this.drawerMenu = page.locator('.gn-settings-menu');
@@ -196,7 +196,7 @@ export class Sidebar {
196196

197197
async getSelectedAclSyntax(): Promise<string> {
198198
const radioGroup = await this.getAclSyntaxRadioGroup();
199-
const checkedOption = radioGroup.locator('.g-radio-button__option_checked');
199+
const checkedOption = radioGroup.locator('.g-segmented-radio-group__option_checked');
200200
const text = await checkedOption.textContent();
201201
return text?.trim() || '';
202202
}
@@ -206,15 +206,15 @@ export class Sidebar {
206206
await this.drawer.waitFor({state: 'visible'});
207207

208208
const radioGroup = await this.getAclSyntaxRadioGroup();
209-
const option = radioGroup.locator(`.g-radio-button__option:has-text("${syntax}")`);
209+
const option = radioGroup.locator(`.g-segmented-radio-group__option:has-text("${syntax}")`);
210210
await option.click();
211211
// Small delay to ensure the setting is saved
212212
await this.drawer.page().waitForTimeout(100);
213213
}
214214

215215
async getAclSyntaxOptions(): Promise<string[]> {
216216
const radioGroup = await this.getAclSyntaxRadioGroup();
217-
const options = radioGroup.locator('.g-radio-button__option');
217+
const options = radioGroup.locator('.g-segmented-radio-group__option');
218218
const count = await options.count();
219219
const texts: string[] = [];
220220
for (let i = 0; i < count; i++) {

tests/suites/tenant/diagnostics/Diagnostics.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,13 @@ export class Diagnostics {
324324
}
325325

326326
async clickTab(tabName: DiagnosticsTab): Promise<void> {
327-
const tab = this.tabs.locator(`.kv-tenant-diagnostics__tab:has-text("${tabName}")`);
327+
const tab = this.tabs.locator(`.g-tab:has-text("${tabName}")`);
328328
await tab.click();
329329
}
330330

331331
async clickRadioSwitch(radioName: QueriesSwitch): Promise<void> {
332332
const option = this.tableControls.locator(
333-
`.g-radio-button__option:has-text("${radioName}")`,
333+
`.g-segmented-radio-group__option:has-text("${radioName}")`,
334334
);
335335

336336
await option.evaluate((el) => (el as HTMLElement).click());
@@ -412,12 +412,16 @@ export class Diagnostics {
412412
}
413413

414414
async selectTopShardsMode(mode: TopShardsMode): Promise<void> {
415-
const option = this.tableRadioButton.locator(`.g-radio-button__option:has-text("${mode}")`);
415+
const option = this.tableRadioButton.locator(
416+
`.g-segmented-radio-group__option:has-text("${mode}")`,
417+
);
416418
await option.evaluate((el) => (el as HTMLElement).click());
417419
}
418420

419421
async getSelectedTableMode(): Promise<string> {
420-
const checkedOption = this.tableRadioButton.locator('.g-radio-button__option_checked');
422+
const checkedOption = this.tableRadioButton.locator(
423+
'.g-segmented-radio-group__option_checked',
424+
);
421425
return (await checkedOption.textContent())?.trim() || '';
422426
}
423427

0 commit comments

Comments
 (0)