Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

fix(e2e): capture Midscene 1.13.1 reports

quanru674f8c7d5c5e
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index d291105..ac4e7d3 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -175,6 +175,21 @@ test('keeps visual E2E interactions at task level with proven aiTap exceptions',
}
});
+test('captures both legacy and current Midscene report step lists', async () => {
+ const source = await readFile(
+ new URL('../e2e/capture-report-preview.mjs', import.meta.url),
+ 'utf8',
+ );
+ assert.match(
+ source,
+ /\.runner-detail-step-group > button, .*\.runner-detail-step-list > button/,
+ );
+ assert.match(
+ source,
+ /\.runner-detail-step-group > button\.is-selected, .*\.runner-detail-step-list > button\.is-selected/,
+ );
+});
+
function runnerScript({
assertionCount = 0,
assertionAttempts,
diff --git a/tests/e2e/capture-report-preview.mjs b/tests/e2e/capture-report-preview.mjs
index db26b6f..8cf2bfc 100644
--- a/tests/e2e/capture-report-preview.mjs
+++ b/tests/e2e/capture-report-preview.mjs
@@ -108,11 +108,11 @@ try {
await page.waitForFunction((expectedStep) => {
const buttons = [
...document.querySelectorAll(
- '[aria-label="Execution steps"] .runner-detail-step-group > button',
+ '[aria-label="Execution steps"] .runner-detail-step-group > button, [aria-label="Execution steps"] .runner-detail-step-list > button',
),
];
const selected = document.querySelector(
- '[aria-label="Execution steps"] button.is-selected',
+ '[aria-label="Execution steps"] .runner-detail-step-group > button.is-selected, [aria-label="Execution steps"] .runner-detail-step-list > button.is-selected',
);
const selectedName = selected?.querySelector(
'.runner-detail-step-copy strong',