@nbakka/mcp-appium 2.0.92 → 2.0.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -410,36 +410,36 @@
410
410
  }
411
411
  }
412
412
 
413
- async function deleteTestCase(type, index) {
414
- const confirmation = confirm("Are you sure you want to delete this test case?");
415
- if (!confirmation) return;
413
+ async function deleteTestCase(type, index) {
414
+ const confirmation = confirm("Are you sure you want to delete this test case?");
415
+ if (!confirmation) return;
416
416
 
417
- try {
418
- showStatus('Deleting test case...', 'info');
419
- const response = await fetch(`/delete/${sessionId}`, {
420
- method: 'POST',
421
- headers: { 'Content-Type': 'application/json' },
422
- body: JSON.stringify({ type, index })
423
- });
424
-
425
- if (!response.ok) {
426
- throw new Error(`HTTP ${response.status}: ${response.statusText}`);
427
- }
417
+ try {
418
+ showStatus('Deleting test case...', 'info');
419
+ const response = await fetch(`/delete/${sessionId}`, {
420
+ method: 'POST',
421
+ headers: { 'Content-Type': 'application/json' },
422
+ body: JSON.stringify({ type, index })
423
+ });
428
424
 
429
- // Remove the deleted test case from the local state
430
- if (type === 'new') {
431
- testCases.new.splice(index, 1);
432
- } else if (type === 'modify') {
433
- testCases.modify.splice(index, 1);
434
- }
425
+ if (!response.ok) {
426
+ throw new Error(`HTTP ${response.status}: ${response.statusText}`);
427
+ }
435
428
 
436
- // Re-render the UI to update indexes and remove the element
437
- renderTestCases();
438
- showStatus('Test case deleted successfully!', 'success');
439
- } catch (error) {
440
- showStatus(`Error deleting test case: ${error.message}`, 'error');
429
+ // Remove the deleted test case from the local state first
430
+ if (type === 'new') {
431
+ testCases.new.splice(index, 1);
432
+ } else if (type === 'modify') {
433
+ testCases.modify.splice(index, 1);
441
434
  }
435
+
436
+ // Re-render the UI to update indexes and remove the element
437
+ renderTestCases();
438
+ showStatus('Test case deleted successfully!', 'success');
439
+ } catch (error) {
440
+ showStatus(`Error deleting test case: ${error.message}`, 'error');
442
441
  }
442
+ }
443
443
 
444
444
  // Load test cases when page loads
445
445
  window.onload = loadTestCases;
package/lib/server.js CHANGED
@@ -952,7 +952,7 @@ tool(
952
952
  message: "Test case review interface opened in browser. Use check_approval_status tool to poll for approval.",
953
953
  testCasesCount: testCases.length,
954
954
  browserUrl: `http://localhost:${port}`,
955
- instructions: "Poll every 25 seconds using check_approval_status tool until approved or timeout (5 minutes)"
955
+ instructions: "Poll using check_approval_status tool continuously for max 10 times"
956
956
  });
957
957
 
958
958
  } catch (err) {
@@ -19,4 +19,6 @@ if any new test case is to be created then don't mention any id against it
19
19
  for review_testcases test cases tool data should be in this format, strictly follow this format espcially for Modify test cases
20
20
  {"testCases":[["Verify that brochure section is visible under overview tab","Verify brochure section is removed from property tour tab","Modify","SCRUM-TC-1"],
21
21
  ["Verify similar properties section is visible under over tab in pdp section","Remove","SCRUM-TC-2"],
22
- ["Verify Project Brochure section appears above the 'Explore on map' section in Overview tab","New"]]}
22
+ ["Verify Project Brochure section appears above the 'Explore on map' section in Overview tab","New"]]}
23
+
24
+ NOTE: keep polling continously for 10 times max till the test cases are approved by user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbakka/mcp-appium",
3
- "version": "2.0.92",
3
+ "version": "2.0.93",
4
4
  "description": "Appium MCP",
5
5
  "engines": {
6
6
  "node": ">=18"