Skip to content

Commit ef3329f

Browse files
committed
test(release): pin collapsed Safari guidance
Replace the obsolete Safari launch-heading assertion with a check that the current guidance remains inside the release body's collapsible details block.\n\nCo-authored-by: Codex <codex@users.noreply.github.com>
1 parent 5381e16 commit ef3329f

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/pages/popup/__tests__/releaseArtifacts.test.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,18 @@ describe('release artifacts', () => {
4848
expect(firefoxConfig).toContain('version: firefoxVersionOverride ?? pkg.version');
4949
});
5050

51-
it('announces full Safari support without restoring obsolete image limitations', () => {
51+
it('keeps full Safari support guidance collapsed without restoring obsolete limitations', () => {
5252
const workflow = readFileSync(resolve(process.cwd(), '.github/workflows/release.yml'), 'utf8');
53-
54-
expect(workflow).toContain('🍎✨ Safari 正式支持!');
55-
expect(workflow).toContain('image extraction in conversation exports are supported');
56-
expect(workflow).toContain('voyager.nagi.fun/guide/safari-migration');
57-
expect(workflow).not.toContain('Image extraction in chat exports remains limited by Safari');
53+
const safariDetails = workflow.match(
54+
/<details>\s*<summary><b>[^<]*Safari[^<]*<\/b><\/summary>[\s\S]*?<\/details>/,
55+
)?.[0];
56+
57+
expect(safariDetails).toBeDefined();
58+
expect(safariDetails).toContain('image extraction in conversation exports are supported');
59+
expect(safariDetails).toContain('voyager.nagi.fun/guide/safari-migration');
60+
expect(safariDetails).not.toContain(
61+
'Image extraction in chat exports remains limited by Safari',
62+
);
5863
});
5964

6065
it('does not assign to zsh reserved variables while reading notarization results', () => {

0 commit comments

Comments
 (0)