Skip to content

Commit

Permalink
fix: modify example for e2e tests in remote feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDDDanica committed Feb 21, 2025
1 parent 24a4a27 commit fae417d
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions docs/remote-feature-flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Choose the appropriate feature flag type based on your needs:
In this configuration, the swap button will be blue for 25% of users, red for 25% of users, green for 25% of users, and yellow for 25% of users

```json
[[
[
{
"name": "blue",
"scope": {
Expand Down Expand Up @@ -189,12 +189,18 @@ Your selector must include:
Add the customized value in your test configuration:

```typescript
fixtures: new FixtureBuilder()
.withMetaMetricsController({
metaMetricsId: MOCK_META_METRICS_ID,
participateInMetaMetrics: true,
})
.build(),
await withFixtures({
fixtures: new FixtureBuilder()
.withMetaMetricsController({
metaMetricsId: MOCK_META_METRICS_ID,
participateInMetaMetrics: true,
})
.build(),
manifestFlags: {
remoteFeatureFlags: MOCK_CUSTOMIZED_REMOTE_FEATURE_FLAGS,
},
title: this.test?.fullTitle(),
});
```

#### Mobile
Expand Down

0 comments on commit fae417d

Please # to comment.