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

Commit

Permalink
#85 - Refactored hover example test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestas-zekas committed Jan 20, 2021
1 parent dc01d37 commit f1c9f33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/tests/elementActions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ describe("Element Actions", () => {

it("should hover on an element", async () => {
//Arrange
await page.goto("http://demo.guru99.com/test/tooltip.html");
const downloadButton = new Element("#download_now");
const tooltip = new Element("div.tooltip");
await page.goto("https://demoqa.com/tool-tips" );
const button = new Element("#toolTipButton");
const tooltip = new Element("#buttonToolTip");

//Act
await downloadButton.hover();
await button.hover();

//Assert
await expect(tooltip.isVisible()).resolves.toBeTruthy();
Expand Down

0 comments on commit f1c9f33

Please sign in to comment.