@nbakka/mcp-appium 3.0.0 → 3.0.1
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.
- package/lib/server.js +14 -4
- package/package.json +1 -1
package/lib/server.js
CHANGED
|
@@ -803,8 +803,9 @@ tool(
|
|
|
803
803
|
},
|
|
804
804
|
async ({ testCases }) => {
|
|
805
805
|
try {
|
|
806
|
-
|
|
807
|
-
const
|
|
806
|
+
// These should already be imported at the top of your server file
|
|
807
|
+
// const express = require('express');
|
|
808
|
+
// const open = require('open');
|
|
808
809
|
const app = express();
|
|
809
810
|
const port = 3001;
|
|
810
811
|
|
|
@@ -1109,8 +1110,18 @@ tool(
|
|
|
1109
1110
|
</div>
|
|
1110
1111
|
<div class="test-case-content">
|
|
1111
1112
|
<div class="test-case-title">
|
|
1112
|
-
<input type="text" value="${testCase[0]}" data-index="${index}">
|
|
1113
|
+
<input type="text" value="${testCase[0].replace(/"/g, '"')}" data-index="${index}">
|
|
1113
1114
|
</div>
|
|
1115
|
+
${testCase[2] === 'Modify' ? `
|
|
1116
|
+
<div class="original-case">
|
|
1117
|
+
<small><strong>Original:</strong> ${testCase[3] || 'N/A'}</small>
|
|
1118
|
+
</div>
|
|
1119
|
+
` : ''}
|
|
1120
|
+
${testCase[2] === 'Remove' ? `
|
|
1121
|
+
<div class="remove-case">
|
|
1122
|
+
<small><strong>TCMS ID:</strong> ${testCase[2] || 'N/A'}</small>
|
|
1123
|
+
</div>
|
|
1124
|
+
` : ''}
|
|
1114
1125
|
<div class="test-case-actions">
|
|
1115
1126
|
<button class="btn btn-delete" onclick="toggleDelete(${index})">Delete</button>
|
|
1116
1127
|
</div>
|
|
@@ -1331,7 +1342,6 @@ tool(
|
|
|
1331
1342
|
}
|
|
1332
1343
|
);
|
|
1333
1344
|
|
|
1334
|
-
|
|
1335
1345
|
return server;
|
|
1336
1346
|
};
|
|
1337
1347
|
|