| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://2131-pr-patternfly-react-patternfly.surge.sh |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #2131 +/- ##
=========================================
Coverage ? 80.54%
=========================================
Files ? 666
Lines ? 8470
Branches ? 729
=========================================
Hits ? 6822
Misses ? 1281
Partials ? 367
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you! 🎖️
Sorry, something went wrong.
| zIndex?: number; | ||
| /** Size of the tooltip */ | ||
| maxWidth?: '12.5rem'; | ||
| maxWidth?: string; |
There was a problem hiding this comment.
Good catch!
Sorry, something went wrong.
| /** Flag to show if the input is read only. */ | ||
| isReadOnly?: boolean; | ||
| /** Adds Clipboard Copy variant styles. */ | ||
| variant?: typeof ClipboardCopyVariant | 'inline' | 'expansion'; |
There was a problem hiding this comment.
I thought we decided to just have the union of the values here and not the "Typeof"
Sorry, something went wrong.
There was a problem hiding this comment.
I believe that we need the typeof for the older consumers using the enum.
Sorry, something went wrong.
| it('Verify content expands', () => { | ||
| cy.get('.pf-c-clipboard-copy__group-toggle').click(); | ||
| cy.get('.pf-c-clipboard-copy').should('have.class', 'pf-m-expanded'); | ||
| }); |
There was a problem hiding this comment.
I think we should add more verification steps here. We dod not verify that the copy actually works and I think we need to.
Sorry, something went wrong.
There was a problem hiding this comment.
Do you know of a good way to test the copy paste feature? I tried this:
it('Verify copy to clipboard works', () => {
const form = cy.get('.pf-c-form-control');
form.clear().type('Hi');
cy.get('.pf-c-clipboard-copy__group-copy').click();
cy.get('.pf-c-form-control').clear().type('{cmd}v');
form.should('have.value', 'Hi');
});But it always ends up typing "v" instead of doing a paste. I've been looking into it, but I'm not sure what the solution would be: cypress-io/cypress#3316
Sorry, something went wrong.
|
PatternFly-React preview: https://patternfly-react-pr-2131.surge.sh |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes #2130