Skip to content

Doubao-powered voice input for Linux, Wayland and Omarchy

test(e2e): isolate provider visual scenarios

quanru90000523b69f
diff --git a/.github/workflows/midscene-omarchy-4.0.3.yml b/.github/workflows/midscene-omarchy-4.0.3.yml
index 271a0b8..aff6f76 100644
--- a/.github/workflows/midscene-omarchy-4.0.3.yml
+++ b/.github/workflows/midscene-omarchy-4.0.3.yml
@@ -48,6 +48,7 @@ on:
- omarchy-shard-3
- omarchy-shard-4
- omarchy-shell
+ - omarchy-providers
permissions:
contents: read
diff --git a/.github/workflows/midscene-ubuntu-22.04.yml b/.github/workflows/midscene-ubuntu-22.04.yml
index e4789dc..20300f4 100644
--- a/.github/workflows/midscene-ubuntu-22.04.yml
+++ b/.github/workflows/midscene-ubuntu-22.04.yml
@@ -39,6 +39,7 @@ on:
- ubuntu-shard-3
- ubuntu-shard-4
- ubuntu-polishing
+ - ubuntu-providers
permissions:
contents: read
diff --git a/tests/contracts/test_pages_report_history.mjs b/tests/contracts/test_pages_report_history.mjs
index 3fbe4d8..5b2ddff 100644
--- a/tests/contracts/test_pages_report_history.mjs
+++ b/tests/contracts/test_pages_report_history.mjs
@@ -115,9 +115,12 @@ test('assigns every product case to exactly one balanced shard', async () => {
.split(/(?=^ - name:)/m)
.filter((section) => section.startsWith(' - name:'));
for (const testCase of cases) {
- const tags = [...testCase.matchAll(/^ tags: \[(shard-[1-4])\]$/gm)];
+ const tags = [...testCase.matchAll(/^ tags: \[([^\]]+)\]$/gm)];
assert.equal(tags.length, 1, testCase.split('\n')[0]);
- shardCounts.set(tags[0][1], (shardCounts.get(tags[0][1]) ?? 0) + 1);
+ const shards = tags[0][1].split(',').map((tag) => tag.trim())
+ .filter((tag) => /^shard-[1-4]$/.test(tag));
+ assert.equal(shards.length, 1, testCase.split('\n')[0]);
+ shardCounts.set(shards[0], (shardCounts.get(shards[0]) ?? 0) + 1);
caseCount += 1;
}
}
diff --git a/tests/e2e/cases/onboarding-regressions.yaml b/tests/e2e/cases/onboarding-regressions.yaml
index 93b647f..d7386d5 100644
--- a/tests/e2e/cases/onboarding-regressions.yaml
+++ b/tests/e2e/cases/onboarding-regressions.yaml
@@ -178,7 +178,7 @@ cases:
- aiTap: Right-arrow Next button in the fixed top navigation
- aiAssert: The current step is Microphone and the heading Let's make sure we can hear you is visible.
- name: Switch to Deepgram English recognition
- tags: [shard-3]
+ tags: [shard-3, provider]
steps:
- fixture.prepare: { mode: deepgram }
- aiAct: In Recognition service, select Deepgram Nova-3 English exactly once.
diff --git a/tests/e2e/midscene.config.ts b/tests/e2e/midscene.config.ts
index e46e456..907f82e 100644
--- a/tests/e2e/midscene.config.ts
+++ b/tests/e2e/midscene.config.ts
@@ -317,6 +317,20 @@ export default defineTestProject<DesktopContext>({
},
...productShardProjects('ubuntu'),
...productShardProjects('omarchy'),
+ {
+ name: 'ubuntu-providers',
+ retry: 2,
+ setup,
+ files: { include: productCaseFiles },
+ tags: { include: ['provider'] },
+ },
+ {
+ name: 'omarchy-providers',
+ retry: 2,
+ setup,
+ files: { include: productCaseFiles },
+ tags: { include: ['provider'] },
+ },
{
name: 'omarchy-shell',
retry: 2,