Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Sep 12, 2019
1 parent 60f3b9c commit a2f6196
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/UniversalDashboard.UITest/Integration/Input.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
}
Expand All @@ -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.'
}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit a2f6196

Please sign in to comment.