Functions/Get-Puppeteer_SetValueForSelector.Tests.ps1
describe "BitTitan.Runbooks.UIAutomation/Get-Puppeteer_SetValueForSelector" -Tag "module", "unit" { # Import the function to test . "$($PSScriptRoot)\Get-Puppeteer_SetValueForSelector.ps1" it "returns the code for setting value into a selector" { # Call the function $output = Get-Puppeteer_SetValueForSelector -SelectorName "#selector" -Value "value" # Verify the output $output | Should Be @" selector = '#selector'; await page.waitForSelector(selector); await page.select(selector, 'value'); "@ } } |