File tree Expand file tree Collapse file tree
openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,11 +191,15 @@ test.describe('ServiceDocPanel', () => {
191191 } ) ;
192192
193193 test . describe ( 'Code block copy button' , ( ) => {
194+ test . use ( {
195+ contextOptions : {
196+ permissions : [ 'clipboard-read' , 'clipboard-write' ] ,
197+ } ,
198+ } ) ;
199+
194200 test ( 'should copy code block content to clipboard and show copied tooltip' , async ( {
195201 page,
196- context,
197202 } ) => {
198- await context . grantPermissions ( [ 'clipboard-read' , 'clipboard-write' ] ) ;
199203 await goToMysqlConnectionStep ( page , 'pw-doc-panel-copy' ) ;
200204
201205 const docPanel = page . getByTestId ( 'service-requirements' ) ;
@@ -211,6 +215,7 @@ test.describe('ServiceDocPanel', () => {
211215 await expect ( copyButtonWrapper ) . toHaveAttribute ( 'data-copied' , 'false' ) ;
212216
213217 // Click and verify copied state + tooltip
218+ await copyButton . hover ( ) ;
214219 await copyButton . click ( ) ;
215220
216221 await expect ( copyButtonWrapper ) . toHaveAttribute ( 'data-copied' , 'true' ) ;
You can’t perform that action at this time.
0 commit comments