diff --git a/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts b/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts index e1b9b5f0cb..7849deaa9f 100644 --- a/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts +++ b/packages/app/tests/e2e/src/steps/blockexplorer.steps.ts @@ -138,11 +138,12 @@ When("I click by element with partial href {string}", async function (this: ICus When( "I click by element with class {string} and text {string}", async function (this: ICustomWorld, className: string, text: string) { - basePage = new BasePage(this); - element = await basePage.getElementByClassAndText(className, text); + basePage = new BasePage(this); + element = await basePage.getElementByClassAndText(className, text); - await element.click(); -}); + await element.click(); + } +); When( "I click by element with partial href {string} and text {string}",