From b1dd01741af60ce57ca8674abfa233bc6580b464 Mon Sep 17 00:00:00 2001 From: Viktor Scharf Date: Thu, 13 Nov 2025 14:35:59 +0100 Subject: [PATCH] adjust tests after fixing #1594 --- tests/e2e/support/environment/actor/shared.ts | 4 +++- tests/e2e/support/objects/app-files/link/actions.ts | 12 +++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tests/e2e/support/environment/actor/shared.ts b/tests/e2e/support/environment/actor/shared.ts index 6227eeecac..eb46bdc20d 100644 --- a/tests/e2e/support/environment/actor/shared.ts +++ b/tests/e2e/support/environment/actor/shared.ts @@ -25,7 +25,9 @@ export const buildBrowserContextOptions = (options: ActorOptions): BrowserContex const basePermissions: string[] = [] // Clipboard permissions supports only in Chromium-based browsers - if (browserName === 'chromium' || browserName === 'chrome' || browserName === 'msedge') { + if (browserName === 'webkit') { + return [...basePermissions, 'clipboard-read'] + } else if (['chromium', 'chrome', 'msedge'].includes(browserName)) { return [...basePermissions, 'clipboard-read', 'clipboard-write'] } return basePermissions diff --git a/tests/e2e/support/objects/app-files/link/actions.ts b/tests/e2e/support/objects/app-files/link/actions.ts index 330fc554cf..ef36242b43 100644 --- a/tests/e2e/support/objects/app-files/link/actions.ts +++ b/tests/e2e/support/objects/app-files/link/actions.ts @@ -3,7 +3,6 @@ import util from 'util' import { sidebar } from '../utils' import { getActualExpiryDate } from '../../../utils/datePicker' import { clickResource } from '../resource/actions' -import { config } from '../../../../config' import { checkA11yOrLocalization } from '../../../utils/accessibility' export interface createLinkArgs { @@ -162,14 +161,9 @@ export const createLink = async (args: createLinkArgs): Promise => { ]) await clearCurrentPopup(page) - // workaround for webkit (safari browser). See bug #1169 - if (config.browser === 'webkit') { - return (await resp[0].json()).link.webUrl - } else { - const name = - process.env.RUN_LOCALIZATION_TEST_FOR_LANG === 'de' ? 'Unbenannter Link' : 'Unnamed link' - return await getRecentLinkUrl(page, name) - } + const name = + process.env.RUN_LOCALIZATION_TEST_FOR_LANG === 'de' ? 'Unbenannter Link' : 'Unnamed link' + return await getRecentLinkUrl(page, name) } export const changeRole = async (args: changeRoleArgs): Promise => {