From be52429bd0fb7fd33b080881d23177c19ae99244 Mon Sep 17 00:00:00 2001 From: SharglutDev Date: Thu, 19 Dec 2024 11:21:48 +0100 Subject: [PATCH] fixup! front: animate new intermediate op in stdcm --- front/tests/pages/stdcm-page-model.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/tests/pages/stdcm-page-model.ts b/front/tests/pages/stdcm-page-model.ts index ae363380172..18d31f163cd 100644 --- a/front/tests/pages/stdcm-page-model.ts +++ b/front/tests/pages/stdcm-page-model.ts @@ -390,6 +390,7 @@ class STDCMPage { const fillVia = async (selectedSuggestion: Locator) => { await this.addViaButton.nth(viaNumber - 1).click(); expect(await this.addViaButton.count()).toBe(viaNumber + 1); + await expect(this.getViaCi(viaNumber)).toBeVisible(); await this.getViaCi(viaNumber).fill(viaSearch); await selectedSuggestion.click(); await expect(this.getViaCh(viaNumber)).toHaveValue('BV'); @@ -496,7 +497,7 @@ class STDCMPage { // Wait for the download event await this.page.waitForTimeout(500); const downloadPromise = this.page.waitForEvent('download', { timeout: 120000 }); - await this.downloadSimulationButton.click({ force: true }); + await this.downloadSimulationButton.dispatchEvent('click'); const download = await downloadPromise.catch(() => { throw new Error('Download event was not triggered.'); }); @@ -510,7 +511,7 @@ class STDCMPage { } async clickOnStartNewQueryButton() { - await this.startNewQueryButton.click(); + await this.startNewQueryButton.dispatchEvent('click'); } async mapMarkerVisibility() {