Skip to content

Commit 6cdb44e

Browse files
committed
Removed probe tests.
1 parent 7ba48f2 commit 6cdb44e

6 files changed

Lines changed: 27 additions & 503 deletions

File tree

.github/skills/ui-action/SKILL.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,20 +214,13 @@ Set `"failFast": false` on a step to record a failure without aborting the probe
214214
| `closeView` | `idRef` || Hides the view if present. |
215215
| `invokeCommand` | `idRef` (command id) || Runs via `IHandlerService#executeCommand`. |
216216
| `click` | `locator` || Reflective `click()` on matched widget. |
217-
| `typeIn` | `locator`, `text` || Sets text programmatically via `setText`. Does **not** fire key events — use `typeKeys` when key listeners (e.g. content-assist) must trigger. |
218-
| `typeKeys` | `locator`, `text` || Types text character-by-character via keyboard simulation. Fires real key events, triggering listeners like content-assist auto-activation. Use for `/` in the chat input. |
217+
| `typeIn` | `locator`, `text` || Works on text / styled-text widgets. |
219218
| `clearElement` | `locator` || Sets text to empty. |
220219
| `waitFor` | `locator` | `timeoutSec` (default 30) | Polls until locator resolves. |
221220
| `waitForMethod` | `locator`, `method` | `timeoutSec` (default 30), `expectedValue` | Polls until a no-arg getter on the located widget returns non-null (and non-empty for `String`), or — if `expectedValue` is set — until `toString()` equals it. Invoked reflectively via the class hierarchy. Use for UI-exposed state not reachable via finders, e.g. `DropdownButton.getSelectedItemId()`. |
222221
| `assertExists` | `locator` | `shouldExist` (default true) | Asserts presence / absence. |
223-
| `assertContentAssist` | `text` | `shouldExist` (default true) | Asserts that the visible content-assist popup contains (or does not contain) a proposal whose text includes `text`. Type `/` and `sleep` before calling to let the popup render. |
224222
| `dumpUi` || `id` | Writes widget hierarchy XML. |
225223
| `newSession` ||| Copilot-specific: triggers `newChatSession` command. |
226-
| `createProject` || `text` (default `"probe-project"`) | Creates and opens an Eclipse project in the workspace. No-op if it already exists. The Tycho test workbench starts empty — call this before any `createWorkspaceFile` / `deleteWorkspaceFile` step. |
227-
| `createWorkspaceFile` | `path` | `content` | Creates a file (and parent folders) in the first open workspace project. |
228-
| `deleteWorkspaceFile` | `path` || Deletes a file from the first open workspace project. |
229-
| `openPreferencePage` | `pageId` || Opens the Preferences dialog directly to the given page id. |
230-
| `waitForJobFamily` | `jobFamily` | `timeoutSec` (default 30) | Waits for all Eclipse Jobs in the given family to finish. |
231224

232225
## Locator reference
233226

@@ -303,4 +296,4 @@ action is usable from every probe.
303296
### Keep one probe focused
304297

305298
Each JSON script represents one test case. Split unrelated behaviours into
306-
separate probes so a single `FAILED-step…` screenshot tells you what broke.
299+
separate probes so a single `FAILED-step…` screenshot tells you what broke.

com.microsoft.copilot.eclipse.swtbot.test/probe-scripts/skills-file-with-pref-001.json

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

com.microsoft.copilot.eclipse.swtbot.test/src/com/microsoft/copilot/eclipse/swtbot/test/probe/Locator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
* <li>{@code cssId} — widget whose {@code CssConstants.CSS_ID_KEY} data equals {@link #value}.</li>
3131
* <li>{@code cssClass} — widget whose {@code CssConstants.CSS_CLASS_NAME_KEY} data
3232
* contains {@link #value} (values are space-separated class lists).</li>
33-
* <li>{@code checkBox} — checkbox (SWT.CHECK Button) matching {@link #text}.</li>
3433
* </ul>
3534
*/
3635
public class Locator {

com.microsoft.copilot.eclipse.swtbot.test/src/com/microsoft/copilot/eclipse/swtbot/test/probe/ProbeStep.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,6 @@ public class ProbeStep {
5050
*/
5151
public String expectedValue;
5252

53-
/** Eclipse preference page id (for openPreferencePage). */
54-
public String pageId;
55-
56-
/** Workspace-relative file path (for createWorkspaceFile / deleteWorkspaceFile). */
57-
public String path;
58-
59-
/** File content payload (for createWorkspaceFile). */
60-
public String content;
61-
62-
/** Eclipse Job family id (for waitForJobFamily). */
63-
public String jobFamily;
64-
6553
public boolean isFailFast() {
6654
return failFast == null ? true : failFast;
6755
}

0 commit comments

Comments
 (0)