-
Notifications
You must be signed in to change notification settings - Fork 974
Refactor clearBrowsingDataPanel.js with commonForm #8194
Refactor clearBrowsingDataPanel.js with commonForm #8194
Conversation
Note: most of camel cases should be fixed after #8136 is merged. |
@cezaraugusto Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything works ok but I got some failing tests after this refactoring. I think some selectors are missing and just by searching who they are and re-adding them as data-test-id
as you did with other selectors would fix it.
for reference:
npm run test -- --grep="Clear Browsing Panel"
lmk if you need a hand with that
Closes #8192 Addresses #7989 - Added CommonFormSmall to commonForm.js - Added data-test-id and testIds - Removed clearBrowsingDataPanel from forms.less - Updated test code Auditors: Test Plan: 1. Open Clear browsing data panel from the menu 2. Test the cancel button works 3. Reopen the panel 4. Test the clear button works
@cezaraugusto I think the tests would pass: https://travis-ci.org/luixxiul/browser-laptop/jobs/224590108#L1802 |
However on my local machine I got these errors:
I think something is needed to complete the tests successfully, yet I'm not sure what it is. |
@luixxiul I run this test locally, it works on
|
@NejcZdovc do you have any clues? I don't. |
@luixxiul I rerun it again and now it's all green. Not sure what was wrong in the first run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Run test manually and they pass, so LGTM
Closes #8192
Addresses #7989
Auditors:
Test Plan:
git rebase -i
to squash commits (if needed).Test Plan: