Advertisement
EntropyStarRover

PlayWright test syntax

Mar 9th, 2021
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. it ("description", async()=>{
  2. await page.goto("http://localhost:3000");
  3. await page.click("text=whatever");
  4. await page.waitForSelector(".extraP");
  5. const visible=await.isVisible(".extraP");
  6. expect(visible).to.be.true;
  7.  
  8. })
Advertisement
RAW Paste Data Copied
Advertisement