Skip to content

Commit

Permalink
setuser permissions helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Dec 6, 2024
1 parent 0b7b8da commit ec813ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/e2e/helpers.cafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,14 @@ export const toggleFeature = async (index: number, toValue: boolean) => {
)
}

export const setUserPermissions = async (index: number, toValue: boolean) => {
await click(byId(`feature-switch-${index}${toValue ? '-off' : 'on'}`))
await click('#confirm-toggle-feature-btn')
await waitForElementVisible(
byId(`feature-switch-${index}${toValue ? '-on' : 'off'}`),
)
}

export const setSegmentRule = async (
ruleIndex: number,
orIndex: number,
Expand Down

0 comments on commit ec813ab

Please sign in to comment.