Skip to content

Commit aa65135

Browse files
add verification for 4541 - file #2
1 parent 6f1b78f commit aa65135

File tree

1 file changed

+10
-0
lines changed
  • tests/e2e/pageObjects/components/bottom-panel

1 file changed

+10
-0
lines changed

tests/e2e/pageObjects/components/bottom-panel/cli.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,14 @@ export class Cli {
160160

161161
await this.sendCommandsInCli(scripts);
162162
}
163+
164+
/**
165+
* Get warning message text by command
166+
* @param command command name
167+
*/
168+
async getWarningMessageText(command: string): Promise<string> {
169+
170+
const executedCommand = await this.cliCommandExecuted.withExactText(command);
171+
return await executedCommand.nextSibling(0).textContent;
172+
}
163173
}

0 commit comments

Comments
 (0)