loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'Clipboard read permission for Chromium' (#6222) from 0ko/forgejo:e2e-clipboard into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6222
Reviewed-by: Otto <otto@codeberg.org>

Otto 0cac04d3 021c8fe1

+7 -5
+2
playwright.config.ts
··· 65 65 /* Project-specific settings. */ 66 66 use: { 67 67 ...devices['Desktop Chrome'], 68 + permissions: ['clipboard-read', 'clipboard-write'], 68 69 }, 69 70 }, 70 71 ··· 87 88 name: 'Mobile Chrome', 88 89 use: { 89 90 ...devices['Pixel 5'], 91 + permissions: ['clipboard-read', 'clipboard-write'], 90 92 }, 91 93 }, 92 94 {
+5 -5
tests/e2e/clipboard-copy.test.e2e.ts
··· 10 10 import {expect} from '@playwright/test'; 11 11 import {test} from './utils_e2e.ts'; 12 12 13 - test.use({ 14 - permissions: ['clipboard-write'], 15 - }); 13 + test('copy src file path to clipboard', async ({page}, workerInfo) => { 14 + test.skip(['Mobile Safari', 'webkit'].includes(workerInfo.project.name), 'Apple clipboard API addon - starting at just $499!'); 16 15 17 - test('copy src file path to clipboard', async ({page}) => { 18 16 const response = await page.goto('/user2/repo1/src/branch/master/README.md'); 19 17 expect(response?.status()).toBe(200); 20 18 ··· 23 21 expect(clipboardText).toContain('README.md'); 24 22 }); 25 23 26 - test('copy diff file path to clipboard', async ({page}) => { 24 + test('copy diff file path to clipboard', async ({page}, workerInfo) => { 25 + test.skip(['Mobile Safari', 'webkit'].includes(workerInfo.project.name), 'Apple clipboard API addon - starting at just $499!'); 26 + 27 27 const response = await page.goto('/user2/repo1/src/commit/65f1bf27bc3bf70f64657658635e66094edbcb4d/README.md'); 28 28 expect(response?.status()).toBe(200); 29 29