fix: update regex patterns for example.com in various test files

This commit is contained in:
GitHub Actions
2026-02-18 13:00:41 +00:00
parent a9f8e0a79a
commit d8f0a9be86
6 changed files with 135 additions and 21 deletions

View File

@@ -138,7 +138,7 @@ describe('ProxyHosts progress apply', () => {
renderWithProviders(<ProxyHosts />)
await waitFor(() => expect(screen.getByText('One')).toBeTruthy())
const anchor = screen.getByRole('link', { name: /example\.com/i })
const anchor = screen.getByRole('link', { name: /^example\.com$/i })
expect(anchor.getAttribute('target')).toBe('_self')
})
})