From d4e84652d8936db5a62137e2a032926e203b50a2 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Fri, 27 Sep 2024 07:13:41 +0300 Subject: [PATCH] Fix flaky test from #4995 (#4999) * Fix flaky test from #4995 * Fix flaky preferences test --- frontend/src/pages/preferences.vue | 5 +++++ frontend/test/playwright/e2e/attribution.spec.ts | 5 ++++- frontend/test/playwright/e2e/preferences.spec.ts | 6 +++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/preferences.vue b/frontend/src/pages/preferences.vue index b914c5db5ea..078d5cd524b 100644 --- a/frontend/src/pages/preferences.vue +++ b/frontend/src/pages/preferences.vue @@ -7,6 +7,8 @@ import { useFeatureFlagStore } from "~/stores/feature-flag" import { isFlagName } from "~/types/feature-flag" import { SWITCHABLE, ON, OFF } from "~/constants/feature-flag" +import { useHydrating } from "~/composables/use-hydrating" + import VContentPage from "~/components/VContentPage.vue" import VCheckbox from "~/components/VCheckbox/VCheckbox.vue" @@ -50,6 +52,8 @@ const flagsBySwitchable = computed(() => { const featureGroups = computed(() => { return featureFlagStore.getFeatureGroups() }) + +const doneHydrating = computed(() => useHydrating())