Skip to content

Commit 467a7db

Browse files
committed
add 5 mins timeout
1 parent 67b73cf commit 467a7db

File tree

2 files changed

+19
-46
lines changed

2 files changed

+19
-46
lines changed

ui-tests-starter/tst-243+/software/aws/toolkits/jetbrains/uitests/testTests/QTestGenerationChatTestScripts.kt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ val testHappyPathScript = """
7272
const inputElement = document.querySelector('.mynah-chat-prompt-input');
7373
return inputElement && !inputElement.disabled;
7474
},
75-
{ timeout: 30000 }
75+
{ timeout: 300000 }
7676
);
7777
7878
console.log("Input field re-enabled after acceptance")
@@ -89,7 +89,7 @@ val testHappyPathScript = """
8989
button.textContent.includes(expectedText)
9090
);
9191
},
92-
{timeout: 30000},
92+
{timeout: 300000},
9393
"How can we make /test better"
9494
);
9595
@@ -142,7 +142,7 @@ async function testNavigation() {
142142
await waitForElementWithText(page, "Q - Test")
143143
console.log("new tab opened")
144144
const errorMessage = await page.waitForSelector('text/Sorry, there isn\'t a source file open right now that I can generate a test for. Make sure you open a source file so I can generate tests.', {
145-
timeout: 5000
145+
timeout: 300000
146146
})
147147
console.log('Error message:', await errorMessage.evaluate(el => el.textContent))
148148
} catch (e) {
@@ -347,7 +347,7 @@ val testRejectPathScript = """
347347
const inputElement = document.querySelector('.mynah-chat-prompt-input');
348348
return inputElement && !inputElement.disabled;
349349
},
350-
{ timeout: 30000 }
350+
{ timeout: 300000 }
351351
);
352352
353353
console.log("Input field re-enabled after rejection")
@@ -359,7 +359,7 @@ val testRejectPathScript = """
359359
button.textContent.includes(expectedText)
360360
);
361361
},
362-
{timeout:30000},
362+
{timeout:300000},
363363
"How can we make /test better"
364364
);
365365
@@ -488,7 +488,7 @@ val testProgressBarScript = """
488488
return pageContent.includes(expectedText);
489489
},
490490
{
491-
timeout: 30000
491+
timeout: 300000
492492
},
493493
"Generating unit tests"
494494
);
@@ -563,7 +563,7 @@ val testCancelButtonScript = """
563563
return pageContent.includes(expectedText);
564564
},
565565
{
566-
timeout: 30000
566+
timeout: 300000
567567
},
568568
"Generating unit tests"
569569
);
@@ -585,7 +585,7 @@ val testCancelButtonScript = """
585585
return pageContent.includes(expectedText);
586586
},
587587
{
588-
timeout: 30000
588+
timeout: 300000
589589
},
590590
"Unit test generation cancelled."
591591
);
@@ -597,7 +597,7 @@ val testCancelButtonScript = """
597597
const inputElement = document.querySelector('.mynah-chat-prompt-input');
598598
return inputElement && !inputElement.disabled;
599599
},
600-
{ timeout: 30000 }
600+
{ timeout: 300000 }
601601
);
602602
603603
console.log("Input field re-enabled after cancellation")
@@ -609,7 +609,7 @@ val testCancelButtonScript = """
609609
button.textContent.includes(expectedText)
610610
);
611611
},
612-
{timeout:30000},
612+
{timeout:300000},
613613
"How can we make /test better"
614614
);
615615
@@ -677,7 +677,7 @@ val testDocumentationErrorScript = """
677677
return pageContent.includes(expectedText);
678678
},
679679
{
680-
timeout: 30000
680+
timeout: 300000
681681
},
682682
"I apologize, but I couldn't process your /test instruction"
683683
);
@@ -689,7 +689,7 @@ val testDocumentationErrorScript = """
689689
const inputElement = document.querySelector('.mynah-chat-prompt-input');
690690
return inputElement && !inputElement.disabled;
691691
},
692-
{ timeout: 30000 }
692+
{ timeout: 300000 }
693693
);
694694
695695
console.log("Input field re-enabled after error")
@@ -701,7 +701,7 @@ val testDocumentationErrorScript = """
701701
button.textContent.includes(expectedText)
702702
);
703703
},
704-
{ timeout: 30000 },
704+
{ timeout: 300000 },
705705
"How can we make /test better"
706706
);
707707
@@ -768,7 +768,7 @@ val testRemoveFunctionErrorScript = """
768768
return pageContent.includes(expectedText);
769769
},
770770
{
771-
timeout: 30000
771+
timeout: 300000
772772
},
773773
"I apologize, but I couldn't process your /test instruction."
774774
);
@@ -779,7 +779,7 @@ val testRemoveFunctionErrorScript = """
779779
const inputElement = document.querySelector('.mynah-chat-prompt-input');
780780
return inputElement && !inputElement.disabled;
781781
},
782-
{ timeout: 30000 }
782+
{ timeout: 300000 }
783783
);
784784
785785
console.log("Input field re-enabled after error")
@@ -791,7 +791,7 @@ val testRemoveFunctionErrorScript = """
791791
button.textContent.includes(expectedText)
792792
);
793793
},
794-
{timeout:30000},
794+
{timeout:300000},
795795
"How can we make /test better"
796796
);
797797
@@ -858,7 +858,7 @@ val testMethodNotFoundErrorScript = """
858858
return pageContent.includes(expectedText);
859859
},
860860
{
861-
timeout: 30000
861+
timeout: 300000
862862
},
863863
"I apologize, but I could not find the specified class"
864864
);
@@ -869,7 +869,7 @@ val testMethodNotFoundErrorScript = """
869869
const inputElement = document.querySelector('.mynah-chat-prompt-input');
870870
return inputElement && !inputElement.disabled;
871871
},
872-
{ timeout: 30000 }
872+
{ timeout: 300000 }
873873
);
874874
875875
console.log("Input field re-enabled after error")
@@ -881,7 +881,7 @@ val testMethodNotFoundErrorScript = """
881881
button.textContent.includes(expectedText)
882882
);
883883
},
884-
{timeout:30000},
884+
{timeout:300000},
885885
"How can we make /test better"
886886
);
887887

ui-tests-starter/tstData/qTestGenerationTestProject/test/HappyPathTest.java

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)