@@ -24,6 +24,10 @@ export class ObjectSummary {
2424 private createDirectoryInput : Locator ;
2525 private createDirectoryButton : Locator ;
2626 private refreshButton : Locator ;
27+ private infoCollapseButton : Locator ;
28+ private infoExpandButton : Locator ;
29+ private summaryCollapseButton : Locator ;
30+ private summaryExpandButton : Locator ;
2731
2832 constructor ( page : Page ) {
2933 this . tree = page . locator ( '.ydb-object-summary__tree' ) ;
@@ -41,6 +45,33 @@ export class ObjectSummary {
4145 ) ;
4246 this . createDirectoryButton = page . locator ( 'button.g-button_view_action:has-text("Create")' ) ;
4347 this . refreshButton = page . locator ( '.ydb-object-summary__refresh-button' ) ;
48+
49+ // Info panel collapse/expand buttons
50+ this . infoCollapseButton = page . locator (
51+ '.ydb-object-summary__info-controls button[title="Collapse"]' ,
52+ ) ;
53+ this . infoExpandButton = page . locator (
54+ '.ydb-object-summary__info-controls button[title="Expand"]' ,
55+ ) ;
56+ this . summaryCollapseButton = page . locator (
57+ '.ydb-object-summary__actions button[title="Collapse"]' ,
58+ ) ;
59+ this . summaryExpandButton = page . locator (
60+ '.ydb-object-summary__actions button[title="Expand"]' ,
61+ ) ;
62+ }
63+
64+ async collapseInfoPanel ( ) : Promise < void > {
65+ await this . infoCollapseButton . click ( ) ;
66+ }
67+
68+ async expandInfoPanel ( ) : Promise < void > {
69+ await this . infoExpandButton . click ( ) ;
70+ }
71+
72+ async isInfoPanelCollapsed ( ) : Promise < boolean > {
73+ // When panel is collapsed, expand button should be visible
74+ return this . infoExpandButton . isVisible ( ) ;
4475 }
4576
4677 async isCreateDirectoryModalVisible ( ) : Promise < boolean > {
@@ -201,4 +232,17 @@ export class ObjectSummary {
201232 async clickRefreshButton ( ) : Promise < void > {
202233 await this . refreshButton . click ( ) ;
203234 }
235+
236+ async collapseSummary ( ) : Promise < void > {
237+ await this . summaryCollapseButton . click ( ) ;
238+ }
239+
240+ async expandSummary ( ) : Promise < void > {
241+ await this . summaryExpandButton . click ( ) ;
242+ }
243+
244+ async isSummaryCollapsed ( ) : Promise < boolean > {
245+ // When summary is collapsed, expand button should be visible
246+ return this . summaryExpandButton . isVisible ( ) ;
247+ }
204248}
0 commit comments