Skip to content

Commit

Permalink
rename to onlyRunIfEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 committed Sep 5, 2024
1 parent 7c24f8f commit ba6a94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { QueryParams } from 'app/constants/query'

import { getApolloClient } from './apollo'
import { BROWSE_DATASETS_URL, E2E_CONFIG, translations } from './constants'
import { skipIfFeatureIsDisabled } from './utils'
import { onlyRunIfEnabled } from './utils'

test.describe('Browse datasets page filters', () => {
let client: ApolloClient<NormalizedCacheObject>
Expand Down Expand Up @@ -1129,7 +1129,7 @@ test.describe('Browse datasets page filters', () => {
})

test.describe('Deposition IDs filter group', () => {
skipIfFeatureIsDisabled('depositions')
onlyRunIfEnabled('depositions')

test.describe('Deposition ID filter', () => {
test('should filter when selecting', async () => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/packages/data-portal/e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { test } from '@playwright/test'

import { FeatureFlagKey, getFeatureFlag } from 'app/utils/featureFlags'

export function skipIfFeatureIsDisabled(key: FeatureFlagKey) {
export function onlyRunIfEnabled(key: FeatureFlagKey) {
const isEnabled = getFeatureFlag({
key,
env: process.env.ENV,
Expand Down

0 comments on commit ba6a94b

Please sign in to comment.