@@ -12,6 +12,7 @@ export class WorkbenchPage {
12
12
cssMonacoCommandPaletteLine = '[aria-label="Command Palette"]' ;
13
13
cssQueryTextResult = '[data-testid=query-cli-result]' ;
14
14
cssQueryTableResult = '[data-testid^=query-table-result-]' ;
15
+ cssQueryPluginResult = '[data-testid^=query-table-result-]' ;
15
16
queryGraphContainer = '[data-testid=query-graph-container]' ;
16
17
cssQueryCardCommand = '[data-testid=query-card-command]' ;
17
18
cssQueryCardCommandResult = '[data-testid=query-common-result]' ;
@@ -55,6 +56,7 @@ export class WorkbenchPage {
55
56
preselectModelBikeSalesButton = Selector ( '[data-testid="preselect-Model bike sales"]' ) ;
56
57
showSalesPerRegiomButton = Selector ( '[data-testid="preselect-Show all sales per region"]' ) ;
57
58
queryCardNoModuleButton = Selector ( '[data-testid=query-card-no-module-button] a' ) ;
59
+ rawModeBtn = Selector ( '[data-testid="btn-change-mode"]' ) ;
58
60
//ICONS
59
61
noCommandHistoryIcon = Selector ( '[data-testid=wb_no-results__icon]' ) ;
60
62
//LINKS
@@ -130,7 +132,7 @@ export class WorkbenchPage {
130
132
//Select Table view option in Workbench results
131
133
async selectViewTypeTable ( ) : Promise < void > {
132
134
await t . click ( this . selectViewType ) ;
133
- await t . click ( this . tableViewTypeOption ) ;
135
+ await t . doubleClick ( this . tableViewTypeOption ) ;
134
136
}
135
137
136
138
//Select view option in Workbench results
@@ -161,16 +163,16 @@ export class WorkbenchPage {
161
163
}
162
164
163
165
/**
164
- * Send commands array in Workbench page
165
- * @param command The array of commands to send
166
- * @param result The array of commands to send
166
+ * Check the last command and result in workbench
167
+ * @param command The command to check
168
+ * @param result The result to check
167
169
*/
168
170
async checkWorkbenchCommandResult ( command : string , result : string ) : Promise < void > {
169
171
//Compare the command with executed command
170
172
const actualCommand = await this . queryCardContainer . nth ( 0 ) . find ( this . cssQueryCardCommand ) . textContent ;
171
173
await t . expect ( actualCommand ) . eql ( command ) ;
172
174
//Compare the command result with executed command
173
- const actualCommandResult = await this . queryCardContainer . nth ( 0 ) . find ( this . cssQueryCardCommandResult ) . textContent ;
175
+ const actualCommandResult = await this . queryCardContainer . nth ( 0 ) . find ( this . cssQueryTextResult ) . textContent ;
174
176
await t . expect ( actualCommandResult ) . eql ( result ) ;
175
177
}
176
178
}
0 commit comments