-
Notifications
You must be signed in to change notification settings - Fork 973
Add FlyoutDialog and polish CommonForm #10978
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10978 +/- ##
==========================================
+ Coverage 53.15% 53.19% +0.03%
==========================================
Files 274 275 +1
Lines 25996 25993 -3
Branches 4149 4154 +5
==========================================
+ Hits 13818 13826 +8
+ Misses 12178 12167 -11
|
test/misc-components/syncTest.js
Outdated
@@ -616,8 +616,7 @@ describe('Syncing bookmarks from an existing profile', function () { | |||
const folder = `[data-test-id="bookmarkToolbarButton"][title="${folderTitle}"]` | |||
yield Brave.app.client | |||
.waitForVisible(folder) | |||
.click(folder) | |||
.click(folder) | |||
.doubleClick(folder) |
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.
This change lets the test passed locally, while the test fails on Travis:
https://travis-ci.org/brave/browser-laptop/jobs/277154849#L3775
1) Syncing bookmarks from an existing profile update bookmark, moving it into the folder:
Error: element (".contextMenu") still not visible after 10000ms
at elements(".contextMenu") - isVisible.js:54:17
at isVisible(".contextMenu") - waitForVisible.js:73:22
npm run test -- --grep='Syncing bookmarks from an existing profile update bookmark, moving it into the folder'
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.
@cezaraugusto @bsclifton would you mind helping me to fix the issue? thanks!
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.
for me they are all failing. I just did a rebase + push let's see how it goes
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.
It looks the sync tests fail on master as well.
|
this.props.small && styles.commonForm_small, | ||
this.props.medium && styles.commonForm_medium, | ||
this.props.large && styles.commonForm_large, | ||
this.props.custom |
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.
in a follow-up: these could be described in about styles too
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.
Agreed. I'll add some comment to about:styles#commonForm
in the follow up
-> Done with https://github.com/brave/browser-laptop/pull/11522/files#diff-423dee85eaa4c9b5825e4a8a25794922R29 on #11522
Follow-up to brave#10978 (comment) Auditors: @cezaraugusto Test Plan: 1. Open about:styles
- Update commonForm components based on FlyoutDialog Addresses #7114 Closes #10977 Auditors: @cezaraugusto @bsclifton Test Plan 1. Open about:styles 2. Click `commonForms` 3. Make sure the common form dialog is properly styled
- Replace FlyoutDialog with CommonForm to dismiss the possibility of visual regression - Reduce components by adding props - Add 'CommonFormSection title' to bookmark hanger - Update to the modified BEM style - Fix data-test-id Auditors: Test Plan: 1. Open about:styles 2. Click 'commonForm' 3. Make sure the common form panel is properly displayed
Addresses #7114
Closes #10977
Auditors: @cezaraugusto @bsclifton
Test Plan
commonForms
Submitter Checklist:
git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
Tests