Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Sep 12, 2019
1 parent 8f5fae9 commit 60f3b9c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/UniversalDashboard.UITest/Integration/Input.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Describe "Input" {
$Element = Find-SeElement -Id 'EmailAddress' -Driver $Driver
Send-SeKeys -Element $Element -Keys 'a'
$Element = Find-SeElement -Id 'SomeOtherField' -Driver $Driver
Invoke-SeClick -Element $Element
Invoke-SeClick -Element $Element -JavaScriptClick -Driver $Driver

(Find-SeElement -ClassName 'fa-times-circle' -Driver $Driver) | Get-SeElementAttribute -Attribute 'data-tooltip' | should be 'The email address you entered is invalid.'
}
Expand All @@ -169,9 +169,9 @@ Describe "Input" {
Enter-SeUrl -Driver $Driver -Url "http://localhost:$BrowserPort"

$Element = Find-SeElement -Id 'SomeOtherField' -Driver $Driver
Invoke-SeClick -Element $Element
Invoke-SeClick -Element $Element -JavaScriptClick -Driver $Driver
$Element = Find-SeElement -Id 'EmailAddress' -Driver $Driver
Invoke-SeClick -Element $Element
Invoke-SeClick -Element $Element -JavaScriptClick -Driver $Driver

(Find-SeElement -ClassName 'fa-times-circle' -Driver $Driver) | Get-SeElementAttribute -Attribute 'data-tooltip' | should be 'SomeOtherField is required.'
}
Expand Down Expand Up @@ -435,7 +435,8 @@ Describe "Input" {
}

It "should have friendly label for textbox" {
Find-SeElement -Id "Textbox" -Driver $Driver | Get-SeElementAttribute -Attribute "placeholder" | Should be "My Textbox"
$Element = Find-SeElement -Id "label" -Driver $Driver | Where-Object { $_.Text -eq 'My Textbox' }
$Element | Should not be $null
}

It "should have friendly label for checkbox" {
Expand Down

0 comments on commit 60f3b9c

Please sign in to comment.