fix: all flaky e2e tests (#20476)
* fix: all flaky e2e tests * update * Update basic.e2e.ts * Update basic.e2e.ts * update * Update basic.e2e.ts * update * update * push * update * final * update * fix
This commit is contained in:
1 parent
134086f229
commit
54d98e73a2
13 files changed
+51
-25
No files matched your search
@@ -439,7 +439,7 @@ test.describe("Routing Forms", () => {
|
||||
const user = await createUserAndLogin({ users, page });
|
||||
const routingForm = user.routingForms[0];
|
||||
await gotoRoutingLink({ page, formId: routingForm.id });
|
||||
page.click('button[type="submit"]');
|
||||
await page.click('button[type="submit"]');
|
||||
const firstInputMissingValue = await page.evaluate(() => {
|
||||
return document.querySelectorAll("input")[0].validity.valueMissing;
|
||||
});
|
||||
@@ -828,11 +828,8 @@ async function addAllTypesOfFieldsAndSaveForm(
|
||||
page: Page,
|
||||
form: { description: string; label: string }
|
||||
) {
|
||||
const appRoutingFormsRespPromise = page.waitForResponse((response) =>
|
||||
/\/api\/trpc\/appRoutingForms*/.test(response.url())
|
||||
);
|
||||
await page.goto(`apps/routing-forms/form-edit/${formId}`);
|
||||
await appRoutingFormsRespPromise;
|
||||
await expect(page.locator('text="Test Preview"')).toBeVisible();
|
||||
await page.click('[data-testid="add-field"]');
|
||||
|
||||
const { optionsInUi: fieldTypesList } = await verifySelectOptions(
|
||||
|
||||
@@ -237,7 +237,7 @@ function OutOfOfficeEntriesListContent() {
|
||||
return (
|
||||
<>
|
||||
{row.original && !isPending && !isFetching ? (
|
||||
<div className="flex flex-row items-center justify-end gap-x-2">
|
||||
<div className="flex flex-row items-center justify-end gap-x-2" data-testid="ooo-actions">
|
||||
<Tooltip content={t("edit")}>
|
||||
<Button
|
||||
className="self-center rounded-lg border"
|
||||
|
||||
Reference in new issue
Block a user