Skip to content

Commit 9ba2885

Browse files
authored
Fixed service doc panel falky spec (open-metadata#27857)
1 parent 4169b72 commit 9ba2885

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ServiceDocPanel.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)