mirror of
https://github.com/langgenius/dify.git
synced 2026-03-26 05:29:50 +08:00
chore: fix account dropdown test (#33093)
This commit is contained in:
parent
299a893ac5
commit
09347d5e8b
@ -191,7 +191,7 @@ describe('Support', () => {
|
||||
|
||||
// Assert
|
||||
expect(screen.queryByText('common.userProfile.emailSupport')).toBeInTheDocument()
|
||||
expect(screen.getByText('common.userProfile.emailSupport')?.closest('a')?.getAttribute('href')).toMatch(new RegExp(`^mailto:${mockSupportEmailKey.value}`))
|
||||
expect(screen.getByText('common.userProfile.emailSupport')?.closest('a')?.getAttribute('href')?.startsWith(`mailto:${mockSupportEmailKey.value}`)).toBe(true)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user