Skip to content

Commit

Permalink
Add delay for correct finishing command results (#22951)
Browse files Browse the repository at this point in the history
  • Loading branch information
musienko-maxim committed May 6, 2024
1 parent 2091171 commit 0059eaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e/specs/web-terminal/WebTerminalUnderAdmin.spec.ts
Expand Up @@ -80,6 +80,9 @@ suite(`Login to Openshift console and start WebTerminal ${BASE_TEST_CONSTANTS.TE
'jq.*\\d+\\.\\d+.*jq';

await webTerminal.typeAndEnterIntoWebTerminal(`help > ${fileForVerificationTerminalCommands}`);

// need 5 sec. delay for finishing writing results of help command into txt file. The 5 sec delay is enough for the most cases
await driverHelper.wait(5000);
const commandResult: string = kubernetesCommandLineToolsExecutor.execInContainerCommand(
`cat /home/user/${fileForVerificationTerminalCommands}`,
webTerminalToolContainerName
Expand Down

0 comments on commit 0059eaa

Please sign in to comment.