Fixed failed tests

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-28 17:16:56 +03:00
parent de7c737ba2
commit d0ec2bc110
3 changed files with 5 additions and 7 deletions

View file

@ -32,11 +32,11 @@ describe('Password.vue', () => {
});
it('should meter update', async () => {
expect(wrapper.find('.p-password-info').text()).toBe('');
expect(wrapper.find('.p-password-info').text()).toBe('Enter a password');
await wrapper.vm.onKeyUp(event);
expect(wrapper.find('.p-password-info').text()).toBe('');
expect(wrapper.find('.p-password-info').text()).toBe('Weak');
expect(wrapper.find('.p-password-strength').classes()).toContain('weak');
});