fix: update regex patterns for example.com in various test files
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user