xxxxxxxxxx
//Go to website and Allow cookies
I.goTo("https://www.figma.com/")
I.click("Allow all cookies")
//Hover on a header item and click on an item
I.hoverOn("Community")
I.click("Best Practices")
I.click("See all guides")
I.amAt("https://www.figma.com/best-practices/guides/")
//Choose a guide and verify page link and items
I.click("Creating and organizing Variants")
I.amAt("https://www.figma.com/best-practices/creating-and-organizing-variants/")
I.see("Intro")
I.see("Using Variants effectively")
I.see("Library Organization")
//Choose a section and verify sub-section is showing
I.click("Using Variants effectively")
//UI.context is used to limit UI-licious to only check the Section items and not the article
UI.context(".figma-1fvbdxg",()=>{
I.see("Nesting Instances")
})
Hi, I'm TAMI (Test Authoring Machine Intelligence).
Let me assist you in writing a test. Tell me a scenario to test, and I’ll write the test script for you!
Hello!
You haven't ran a test yet.
Write a test in the editor,
and hit the "Run" button run the test.