Skip to content

Commit 9516fa2

Browse files
committed
Fixes Playwright permissions
1 parent aceee94 commit 9516fa2

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

frontend/playwright.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export default defineConfig({
5252
name: 'chromium',
5353
use: {
5454
...devices['Desktop Chrome'],
55+
// Grant clipboard permissions for tests
56+
permissions: ['clipboard-read', 'clipboard-write'],
5557
// Use prepared auth state.
5658
// storageState: 'playwright/.auth/user.json',
5759
},

frontend/tests/console/topics/topic-messages-production.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import { expect, test } from '@playwright/test';
55

66
import { TopicPage } from '../utils/TopicPage';
77

8+
test.use({
9+
permissions: ['clipboard-write', 'clipboard-read'],
10+
});
11+
812
test.describe('Produce Messages', () => {
913
test('should produce simple text message', async ({ page }) => {
1014
const topicName = `text-message-${Date.now()}`;

frontend/tests/console/utils/ACLPage.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ export class ACLPage {
373373
_principal: string,
374374
operationName: string,
375375
permission: OperationType,
376-
_host = '*',
376+
_host = '*'
377377
) {
378378
const detailOperationItem = this.page.getByTestId(
379-
`detail-item-op-${getIdFromRule(rule, operationName, permission)}`,
379+
`detail-item-op-${getIdFromRule(rule, operationName, permission)}`
380380
);
381381
await expect(detailOperationItem).toBeVisible();
382382

@@ -443,7 +443,8 @@ export class ACLPage {
443443
await expect(sharedConfigCard).toBeVisible();
444444
}
445445

446-
async validateListItem(host: string, principal: string) {
446+
async validateLin
447+
stItem(host: string, principal: string) {
447448
await this.gotoList();
448449
// Validate that the ACL list item is visible with correct host and principal
449450
await this.page.getByTestId('search-field-input').fill(principal);

0 commit comments

Comments
 (0)