Skip to content

Commit 50c1a8e

Browse files
committed
test: check the deprecated on the version in unit test
1 parent 6d2c613 commit 50c1a8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/nuxt/pages/PackageVersionsPage.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ describe('package versions page', () => {
386386

387387
await vi.waitFor(() => {
388388
expect(component.text()).toContain('1.x')
389-
expect(component.text()).toContain('deprecated')
389+
const groupHeader = component.findAll('button').find(b => b.text().includes('1.x'))
390+
expect(groupHeader?.text()).toContain('deprecated')
390391
})
391392
})
392393
})

0 commit comments

Comments
 (0)