Skip to content

Commit

Permalink
test: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Dec 7, 2023
1 parent 24447d8 commit 86212da
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/app/tests/e2e/src/steps/blockexplorer.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 86212da

Please sign in to comment.