@@ -72,7 +72,7 @@ val testHappyPathScript = """
72
72
const inputElement = document.querySelector('.mynah-chat-prompt-input');
73
73
return inputElement && !inputElement.disabled;
74
74
},
75
- { timeout: 30000 }
75
+ { timeout: 300000 }
76
76
);
77
77
78
78
console.log("Input field re-enabled after acceptance")
@@ -89,7 +89,7 @@ val testHappyPathScript = """
89
89
button.textContent.includes(expectedText)
90
90
);
91
91
},
92
- {timeout: 30000 },
92
+ {timeout: 300000 },
93
93
"How can we make /test better"
94
94
);
95
95
@@ -142,7 +142,7 @@ async function testNavigation() {
142
142
await waitForElementWithText(page, "Q - Test")
143
143
console.log("new tab opened")
144
144
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
146
146
})
147
147
console.log('Error message:', await errorMessage.evaluate(el => el.textContent))
148
148
} catch (e) {
@@ -347,7 +347,7 @@ val testRejectPathScript = """
347
347
const inputElement = document.querySelector('.mynah-chat-prompt-input');
348
348
return inputElement && !inputElement.disabled;
349
349
},
350
- { timeout: 30000 }
350
+ { timeout: 300000 }
351
351
);
352
352
353
353
console.log("Input field re-enabled after rejection")
@@ -359,7 +359,7 @@ val testRejectPathScript = """
359
359
button.textContent.includes(expectedText)
360
360
);
361
361
},
362
- {timeout:30000 },
362
+ {timeout:300000 },
363
363
"How can we make /test better"
364
364
);
365
365
@@ -488,7 +488,7 @@ val testProgressBarScript = """
488
488
return pageContent.includes(expectedText);
489
489
},
490
490
{
491
- timeout: 30000
491
+ timeout: 300000
492
492
},
493
493
"Generating unit tests"
494
494
);
@@ -563,7 +563,7 @@ val testCancelButtonScript = """
563
563
return pageContent.includes(expectedText);
564
564
},
565
565
{
566
- timeout: 30000
566
+ timeout: 300000
567
567
},
568
568
"Generating unit tests"
569
569
);
@@ -585,7 +585,7 @@ val testCancelButtonScript = """
585
585
return pageContent.includes(expectedText);
586
586
},
587
587
{
588
- timeout: 30000
588
+ timeout: 300000
589
589
},
590
590
"Unit test generation cancelled."
591
591
);
@@ -597,7 +597,7 @@ val testCancelButtonScript = """
597
597
const inputElement = document.querySelector('.mynah-chat-prompt-input');
598
598
return inputElement && !inputElement.disabled;
599
599
},
600
- { timeout: 30000 }
600
+ { timeout: 300000 }
601
601
);
602
602
603
603
console.log("Input field re-enabled after cancellation")
@@ -609,7 +609,7 @@ val testCancelButtonScript = """
609
609
button.textContent.includes(expectedText)
610
610
);
611
611
},
612
- {timeout:30000 },
612
+ {timeout:300000 },
613
613
"How can we make /test better"
614
614
);
615
615
@@ -677,7 +677,7 @@ val testDocumentationErrorScript = """
677
677
return pageContent.includes(expectedText);
678
678
},
679
679
{
680
- timeout: 30000
680
+ timeout: 300000
681
681
},
682
682
"I apologize, but I couldn't process your /test instruction"
683
683
);
@@ -689,7 +689,7 @@ val testDocumentationErrorScript = """
689
689
const inputElement = document.querySelector('.mynah-chat-prompt-input');
690
690
return inputElement && !inputElement.disabled;
691
691
},
692
- { timeout: 30000 }
692
+ { timeout: 300000 }
693
693
);
694
694
695
695
console.log("Input field re-enabled after error")
@@ -701,7 +701,7 @@ val testDocumentationErrorScript = """
701
701
button.textContent.includes(expectedText)
702
702
);
703
703
},
704
- { timeout: 30000 },
704
+ { timeout: 300000 },
705
705
"How can we make /test better"
706
706
);
707
707
@@ -768,7 +768,7 @@ val testRemoveFunctionErrorScript = """
768
768
return pageContent.includes(expectedText);
769
769
},
770
770
{
771
- timeout: 30000
771
+ timeout: 300000
772
772
},
773
773
"I apologize, but I couldn't process your /test instruction."
774
774
);
@@ -779,7 +779,7 @@ val testRemoveFunctionErrorScript = """
779
779
const inputElement = document.querySelector('.mynah-chat-prompt-input');
780
780
return inputElement && !inputElement.disabled;
781
781
},
782
- { timeout: 30000 }
782
+ { timeout: 300000 }
783
783
);
784
784
785
785
console.log("Input field re-enabled after error")
@@ -791,7 +791,7 @@ val testRemoveFunctionErrorScript = """
791
791
button.textContent.includes(expectedText)
792
792
);
793
793
},
794
- {timeout:30000 },
794
+ {timeout:300000 },
795
795
"How can we make /test better"
796
796
);
797
797
@@ -858,7 +858,7 @@ val testMethodNotFoundErrorScript = """
858
858
return pageContent.includes(expectedText);
859
859
},
860
860
{
861
- timeout: 30000
861
+ timeout: 300000
862
862
},
863
863
"I apologize, but I could not find the specified class"
864
864
);
@@ -869,7 +869,7 @@ val testMethodNotFoundErrorScript = """
869
869
const inputElement = document.querySelector('.mynah-chat-prompt-input');
870
870
return inputElement && !inputElement.disabled;
871
871
},
872
- { timeout: 30000 }
872
+ { timeout: 300000 }
873
873
);
874
874
875
875
console.log("Input field re-enabled after error")
@@ -881,7 +881,7 @@ val testMethodNotFoundErrorScript = """
881
881
button.textContent.includes(expectedText)
882
882
);
883
883
},
884
- {timeout:30000 },
884
+ {timeout:300000 },
885
885
"How can we make /test better"
886
886
);
887
887
0 commit comments