Update Password.spec.js

pull/6462/head
tugcekucukoglu 2024-09-23 13:23:05 +03:00
parent 2e0c93bea2
commit d59bda6998
1 changed files with 2 additions and 2 deletions

View File

@ -32,11 +32,11 @@ describe('Password.vue', () => {
}); });
it('should meter update', async () => { 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); 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'); expect(wrapper.find('.p-password-meter-label').classes()).toContain('p-password-meter-weak');
}); });