Skip to content

Commit

Permalink
fix: add subclasses - fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
astandrik committed Jan 13, 2025
1 parent 874caf9 commit d5d8b36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/containers/Tenant/utils/paneVisibilityToggleHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export function PaneVisibilityToggleButtons({
<React.Fragment>
<ActionTooltip title="Collapse">
<Button
title="Collapse"
view="flat-secondary"
onClick={onCollapse}
className={b(
{
hidden: isCollapsed,
type: 'collapse',
},
className,
)}
Expand All @@ -102,12 +102,12 @@ export function PaneVisibilityToggleButtons({

<ActionTooltip title="Expand">
<Button
title="Expand"
view="flat-secondary"
onClick={onExpand}
className={b(
{
hidden: !isCollapsed,
type: 'expand',
},
className,
)}
Expand Down
8 changes: 5 additions & 3 deletions tests/suites/tenant/queryEditor/models/QueryEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,19 +248,21 @@ export class QueryEditor {
}

async collapseResultsControls() {
const collapseButton = this.resultsControls.locator('button[title="Collapse"]');
const collapseButton = this.resultsControls.locator(
'.kv-pane-visibility-button_type_collapse',
);
await collapseButton.waitFor({state: 'visible', timeout: VISIBILITY_TIMEOUT});
await collapseButton.click();
}

async expandResultsControls() {
const expandButton = this.resultsControls.locator('button[title="Expand"]');
const expandButton = this.resultsControls.locator('.kv-pane-visibility-button_type_expand');
await expandButton.waitFor({state: 'visible', timeout: VISIBILITY_TIMEOUT});
await expandButton.click();
}

async isResultsControlsCollapsed() {
const expandButton = this.resultsControls.locator('button[title="Expand"]');
const expandButton = this.resultsControls.locator('.kv-pane-visibility-button_type_expand');
try {
await expandButton.waitFor({state: 'visible', timeout: VISIBILITY_TIMEOUT});
return true;
Expand Down
8 changes: 4 additions & 4 deletions tests/suites/tenant/summary/ObjectSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ export class ObjectSummary {

// Info panel collapse/expand buttons
this.infoCollapseButton = page.locator(
'.ydb-object-summary__info-controls button[title="Collapse"]',
'.ydb-object-summary__info-controls .kv-pane-visibility-button_type_collapse',
);
this.infoExpandButton = page.locator(
'.ydb-object-summary__info-controls button[title="Expand"]',
'.ydb-object-summary__info-controls .kv-pane-visibility-button_type_expand',
);
this.summaryCollapseButton = page.locator(
'.ydb-object-summary__actions button[title="Collapse"]',
'.ydb-object-summary__actions .kv-pane-visibility-button_type_collapse',
);
this.summaryExpandButton = page.locator(
'.ydb-object-summary__actions button[title="Expand"]',
'.ydb-object-summary__actions .kv-pane-visibility-button_type_expand',
);
this.overviewWrapper = page.locator('.ydb-object-summary__overview-wrapper');
}
Expand Down

0 comments on commit d5d8b36

Please sign in to comment.