-
Notifications
You must be signed in to change notification settings - Fork 33
Remove ember-cli-clipboard
#3098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
75a18ce to
2121925
Compare
| <CopyButton | ||
| @text={{@copyText}} | ||
| <Hds::Copy::Button | ||
| @text='Copy code' |
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.
@text is a different argument on Hds::Copy::Button (inner text) than the ember-cli-clipboard CopyButton (the text to copy)
2121925 to
8105022
Compare
| assert.dom(menuDividerSelector).doesNotExist(); | ||
|
|
||
| await click(copyButtonSelector); | ||
| await onCopyPromise; |
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.
Test was failing in CI. After checking locally and refreshing the test it appears that there was a race condition. This promise guarantees that the callback was called before checking the value. I think it's still good to have the explicit assert since it's more explicit than the promise succeeding
Description
This PR removes
ember-cli-clipboardand the singleCopyButtonusage in our rose code editor toolbar.ember-cli-clipboardis not compatible with vite currently: Incompatible with Vite due to transitive dep (ember-get-config) which uses require jkusa/ember-cli-clipboard#432Hds::Copy::ButtonRose::CodeEditorwhich uses the copy button will at some point be replaced with theHds::CodeEditor(see ReplaceRose::CodeEditorwithHds::CodeEditor#2679)Screenshots (if appropriate)
Before
After
How to Test
main(eg:mainvercel deployment) and compare against this branch (eg: this branch's vercel deployment)Checklist
a11y-testslabel to run a11y audit tests if neededPCI review checklist
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.