Skip to content

Commit

Permalink
test: setSettingValue to enable feature preview beforeAll
Browse files Browse the repository at this point in the history
  • Loading branch information
juliajforesti committed Oct 23, 2024
1 parent 97891c1 commit 88f2339
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/meteor/tests/e2e/feature-preview.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ test.describe.serial('feature preview', () => {
let poHomeChannel: HomeChannel;
let poAccountProfile: AccountProfile;

test.beforeAll(async ({ api }) => {
await setSettingValueById(api, 'Accounts_AllowFeaturePreview', true);
});

test.afterAll(async ({ api }) => {
await setSettingValueById(api, 'Accounts_AllowFeaturePreview', false);
});

test.beforeEach(async ({ page }) => {
poHomeChannel = new HomeChannel(page);
poAccountProfile = new AccountProfile(page);
Expand Down

0 comments on commit 88f2339

Please sign in to comment.