Skip to content

Commit 8836f25

Browse files
committed
Fixing e2e tests by displaying safe but unset experiments which was the previous behaviour
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 69b26cb commit 8836f25

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

site/src/pages/DeploySettingsPage/GeneralSettingsPage/GeneralSettingsPage.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@ const GeneralSettingsPage: FC = () => {
1818
const safeExperiments: string[] = [];
1919
const invalidExperiments: string[] = [];
2020

21+
(safeExperimentsQuery.data?.safe ?? []).forEach((value) =>
22+
safeExperiments.push(value),
23+
);
24+
2125
(enabledExperimentsQuery.data ?? []).forEach(function (exp) {
2226
const found = (safeExperimentsQuery.data?.safe ?? []).find((value) => {
2327
return exp === value;
2428
});
2529

26-
if (found) {
27-
safeExperiments.push(exp);
28-
} else {
30+
if (!found) {
2931
invalidExperiments.push(exp);
3032
}
3133
});

0 commit comments

Comments
 (0)