fix: make flaky E2E tests more stable (#26844)

* fix: make flaky E2E tests more stable

- Add waitForFunction for localStorage check in change-theme test to wait for app-theme to be set before asserting
- Use waitUntil: 'domcontentloaded' for waitForURL calls in routing-forms tests to handle client-side navigation more reliably

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
authored and GitHub committed 2026-01-14 15:14:05 -03:00
1 parent ea3bab57b0
commit ec383f6eef
2 files changed
+5 -8

No files matched your search

@@ -132,6 +132,8 @@ function SingleForm({
}, [form]);
const mutation = trpc.viewer.appRoutingForms.formMutation.useMutation({
onSuccess() {
const currentValues = hookForm.getValues();
hookForm.reset(currentValues);
showToast(t("form_updated_successfully"), "success");
},
onError(e) {