Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/e2e/support/environment/actor/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 3 additions & 9 deletions tests/e2e/support/objects/app-files/link/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -162,14 +161,9 @@ export const createLink = async (args: createLinkArgs): Promise<string> => {
])
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<string> => {
Expand Down