Skip to content

Commit

Permalink
Update Password.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Sep 23, 2024
1 parent 2e0c93b commit d59bda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/primevue/src/password/Password.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ describe('Password.vue', () => {
});

it('should meter update', async () => {
expect(wrapper.find('.p-password-content [data-pc-section="info"]').text()).toBe('Enter a password');
expect(wrapper.find('.p-password-content [data-pc-section="metertext"]').text()).toBe('Enter a password');

await wrapper.vm.onKeyUp(event);

expect(wrapper.find('.p-password-content [data-pc-section="info"]').text()).toBe('Weak');
expect(wrapper.find('.p-password-content [data-pc-section="metertext"]').text()).toBe('Weak');

expect(wrapper.find('.p-password-meter-label').classes()).toContain('p-password-meter-weak');
});
Expand Down

0 comments on commit d59bda6

Please sign in to comment.