Skip to content

Commit

Permalink
fix(ui5-toolbar): failing test fixed (#9518)
Browse files Browse the repository at this point in the history
Co-authored-by: PetyaMarkovaBogdanova <[email protected]>
  • Loading branch information
PetyaMarkovaBogdanova and PetyaMarkovaBogdanova authored Jul 18, 2024
1 parent ba7d213 commit 4adcb2d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/main/test/specs/Toolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ describe("Toolbar general interaction", () => {
it("Should call child events only once", async () => {
const toolbar = await browser.$("#clickCountToolbar");
const countButton = await toolbar.shadow$("#clickCounter");
const clearButton = await toolbar.shadow$("#clearCounter");
const input = await browser.$("#input");

await clearButton.click();
await input.setAttribute("value", "0");
await countButton.click();

assert.strictEqual(await input.getProperty("value"), "1", "Button click event only called once");
await clearButton.click();
await input.setAttribute("value", "0");
});


Expand Down

0 comments on commit 4adcb2d

Please sign in to comment.