mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-04-24 20:07:51 +00:00
updated tests
This commit is contained in:
parent
f4435a0e6e
commit
7efd763207
@ -19,10 +19,10 @@ describe('PasswordField', () => {
|
||||
test('User can toggle between plain text view and password view', async () => {
|
||||
const { getByTestId } = render(<PasswordField data-testid="test-id" value="test-value" />)
|
||||
const user = userEvent.setup();
|
||||
expect(getByTestId("password-text-indicator").textContent).toBe('😸');
|
||||
expect(getByTestId("password-text-indicator").textContent).toBe('👁️🗨️');
|
||||
await user.click(getByTestId('toggle-view-password-btn'));
|
||||
expect(getByTestId("plain-text-indicator").textContent).toBe('🙀');
|
||||
expect(getByTestId("plain-text-indicator").textContent).toBe('👁️');
|
||||
await user.click(getByTestId('toggle-view-password-btn'));
|
||||
expect(getByTestId("password-text-indicator").textContent).toBe('😸');
|
||||
expect(getByTestId("password-text-indicator").textContent).toBe('👁️🗨️');
|
||||
})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user