@@ -70,6 +70,18 @@ val testHappyPathScript = """
70
70
);
71
71
72
72
console.log("Input field re-enabled after acceptance")
73
+
74
+ await page.evaluate(() => {
75
+ const acknowledgeButton = Array.from(document.querySelectorAll('button')).find(
76
+ button => button.textContent.trim() === 'Acknowledge'
77
+ );
78
+ if (acknowledgeButton) {
79
+ acknowledgeButton.click();
80
+ }
81
+ });
82
+
83
+
84
+
73
85
74
86
const feedbackButton = await page.waitForFunction(
75
87
(expectedText) => {
@@ -334,6 +346,16 @@ val testRejectPathScript = """
334
346
);
335
347
336
348
console.log("Input field re-enabled after rejection")
349
+
350
+ await page.evaluate(() => {
351
+ const acknowledgeButton = Array.from(document.querySelectorAll('button')).find(
352
+ button => button.textContent.trim() === 'Acknowledge'
353
+ );
354
+ if (acknowledgeButton) {
355
+ acknowledgeButton.click();
356
+ }
357
+ });
358
+
337
359
const feedbackButton = await page.waitForFunction(
338
360
(expectedText) => {
339
361
const buttons = document.querySelectorAll('button');
@@ -506,6 +528,7 @@ val testProgressBarScript = """
506
528
testNavigation().catch(console.error);
507
529
""" .trimIndent()
508
530
531
+ @Language(" JavaScript" )
509
532
val testCancelButtonScript = """
510
533
const puppeteer = require('puppeteer');
511
534
async function testNavigation() {
@@ -575,6 +598,17 @@ val testCancelButtonScript = """
575
598
);
576
599
577
600
console.log("Input field re-enabled after cancellation")
601
+
602
+ await page.evaluate(() => {
603
+ const acknowledgeButton = Array.from(document.querySelectorAll('button')).find(
604
+ button => button.textContent.trim() === 'Acknowledge'
605
+ );
606
+ if (acknowledgeButton) {
607
+ acknowledgeButton.click();
608
+ }
609
+ });
610
+
611
+
578
612
579
613
const feedbackButton = await page.waitForFunction(
580
614
(expectedText) => {
@@ -661,6 +695,15 @@ val testDocumentationErrorScript = """
661
695
);
662
696
663
697
console.log("Input field re-enabled after error")
698
+
699
+ await page.evaluate(() => {
700
+ const acknowledgeButton = Array.from(document.querySelectorAll('button')).find(
701
+ button => button.textContent.trim() === 'Acknowledge'
702
+ );
703
+ if (acknowledgeButton) {
704
+ acknowledgeButton.click();
705
+ }
706
+ });
664
707
665
708
const feedbackButton = await page.waitForFunction(
666
709
(expectedText) => {
@@ -746,6 +789,15 @@ val testRemoveFunctionErrorScript = """
746
789
747
790
console.log("Input field re-enabled after error")
748
791
792
+ await page.evaluate(() => {
793
+ const acknowledgeButton = Array.from(document.querySelectorAll('button')).find(
794
+ button => button.textContent.trim() === 'Acknowledge'
795
+ );
796
+ if (acknowledgeButton) {
797
+ acknowledgeButton.click();
798
+ }
799
+ });
800
+
749
801
const feedbackButton = await page.waitForFunction(
750
802
(expectedText) => {
751
803
const buttons = document.querySelectorAll('button');
@@ -830,6 +882,15 @@ val testMethodNotFoundErrorScript = """
830
882
831
883
console.log("Input field re-enabled after error")
832
884
885
+ await page.evaluate(() => {
886
+ const acknowledgeButton = Array.from(document.querySelectorAll('button')).find(
887
+ button => button.textContent.trim() === 'Acknowledge'
888
+ );
889
+ if (acknowledgeButton) {
890
+ acknowledgeButton.click();
891
+ }
892
+ });
893
+
833
894
const feedbackButton = await page.waitForFunction(
834
895
(expectedText) => {
835
896
const buttons = document.querySelectorAll('button');
0 commit comments