Revision 60e4da4c
Added by Amir Fefer over 5 years ago
webpack/assets/javascripts/react_app/components/PasswordStrength/__tests__/integration.test.js | ||
---|---|---|
});
|
||
|
||
setInputValue(passwordConfirmationInput, passwords.strong.password);
|
||
expect(component.find(`CommonForm[label="${__('Verify')}"] .help-block`).length).toBe(1);
|
||
expect(component.find(`CommonForm[label="${'Verify'}"] .help-block`).length).toBe(1);
|
||
integrationTestHelper.takeStoreAndLastActionSnapshot('unmached password confirmation');
|
||
|
||
setInputValue(passwordConfirmationInput, passwords.veryStrong.password);
|
||
expect(component.find(`CommonForm[label="${__('Verify')}"] .help-block`).length).toBe(0);
|
||
expect(component.find(`CommonForm[label="${'Verify'}"] .help-block`).length).toBe(0);
|
||
integrationTestHelper.takeStoreAndLastActionSnapshot('mached password confirmation');
|
||
});
|
||
});
|
Also available in: Unified diff
Fixes #17263 - move jed (i18n) to webpack