Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #107 from devbridge/lint-fix
Browse files Browse the repository at this point in the history
Lint fix
  • Loading branch information
vaidasmaciulis authored Mar 30, 2021
2 parents f63a35e + c0df9e2 commit 328a4ae
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions example/tests/elementActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,19 @@ describe("Element Actions", () => {
${async () => { sliceToClick.rightClick(100, 90); }} | ${"true"} | ${null} | ${"right-click"}
`("should $description element with offset", async ({ action, selectedAttr, pieClickedAttr }) => {
//Arrange
const toolTip = new Element(".apexcharts-tooltip.apexcharts-active");
await page.goto("https://apexcharts.com/samples/react/pie/simple-donut.html");
await page.waitForSelector(`${sliceToClick.selector}[stroke-width='2']`);
const toolTip = new Element(".apexcharts-tooltip.apexcharts-active");
await page.goto("https://apexcharts.com/samples/react/pie/simple-donut.html");
await page.waitForSelector(`${sliceToClick.selector}[stroke-width='2']`);

//Act
await action();

//Assert
expect(await toolTip.isVisible()).toBe(true);
expect(await toolTip.text()).toContain("series-2: 55");
expect(await sliceToClick.getAttributeValue("selected")).toEqual(selectedAttr);
expect(await sliceToClick.getAttributeValue("data:pieClicked")).toEqual(pieClickedAttr);
//Act
await action();

});
//Assert
expect(await toolTip.isVisible()).toBe(true);
expect(await toolTip.text()).toContain("series-2: 55");
expect(await sliceToClick.getAttributeValue("selected")).toEqual(selectedAttr);
expect(await sliceToClick.getAttributeValue("data:pieClicked")).toEqual(pieClickedAttr);
});

it("should type element's text value", async () => {
//Arrange
Expand Down

0 comments on commit 328a4ae

Please sign in to comment.