From a2f619625436b28fc56ef626d3bb1e86f6a350bd Mon Sep 17 00:00:00 2001 From: Adam Driscoll Date: Thu, 12 Sep 2019 08:59:32 -0600 Subject: [PATCH] Fix tests --- src/UniversalDashboard.UITest/Integration/Input.Tests.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/UniversalDashboard.UITest/Integration/Input.Tests.ps1 b/src/UniversalDashboard.UITest/Integration/Input.Tests.ps1 index 1c04a7d2..d87e8d47 100644 --- a/src/UniversalDashboard.UITest/Integration/Input.Tests.ps1 +++ b/src/UniversalDashboard.UITest/Integration/Input.Tests.ps1 @@ -160,6 +160,7 @@ Describe "Input" { Send-SeKeys -Element $Element -Keys 'a' $Element = Find-SeElement -Id 'SomeOtherField' -Driver $Driver Invoke-SeClick -Element $Element -JavaScriptClick -Driver $Driver + Send-SeKeys -Element $Element -Keys 'a' (Find-SeElement -ClassName 'fa-times-circle' -Driver $Driver) | Get-SeElementAttribute -Attribute 'data-tooltip' | should be 'The email address you entered is invalid.' } @@ -170,8 +171,11 @@ Describe "Input" { $Element = Find-SeElement -Id 'SomeOtherField' -Driver $Driver Invoke-SeClick -Element $Element -JavaScriptClick -Driver $Driver + Send-SeKeys -Element $Element -Keys '' + $Element = Find-SeElement -Id 'EmailAddress' -Driver $Driver Invoke-SeClick -Element $Element -JavaScriptClick -Driver $Driver + Send-SeKeys -Element $Element -Keys 'a' (Find-SeElement -ClassName 'fa-times-circle' -Driver $Driver) | Get-SeElementAttribute -Attribute 'data-tooltip' | should be 'SomeOtherField is required.' } @@ -435,7 +439,7 @@ Describe "Input" { } It "should have friendly label for textbox" { - $Element = Find-SeElement -Id "label" -Driver $Driver | Where-Object { $_.Text -eq 'My Textbox' } + $Element = Find-SeElement -TagName "label" -Driver $Driver | Where-Object { $_.Text -eq 'My Textbox' } $Element | Should not be $null }