Skip to content

Commit f909021

Browse files
authoredJul 4, 2022
Add delay for test application (#21526)
1 parent bb7829f commit f909021

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎tests/e2e/testsLibrary/CodeExecutionTests.ts

+4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ export class CodeExecutionTests {
108108
test(`Run command '${taskName}' expecting notification`, async () => {
109109
await this.runTaskUsingQuickOpenContainer(taskName);
110110
await this.ide.waitNotification(notificationText, timeout);
111+
// Need delay because a test application is not accessible immediately - it needs time.
112+
// Later can be improved (we can get and request the app. URL with axios until it is available)
113+
// 7 sec is approximate value for most cases
114+
await this.driverHelper.wait(7_000);
111115
this.workspaceHandlingTests.setWindowHandle(await this.browserTabsUtil.getCurrentWindowHandle());
112116
await this.ide.clickOnNotificationButton(notificationText, buttonText);
113117
await this.driverHelper.wait(5_000);

0 commit comments

Comments
 (0)
Please sign in to comment.