Skip to content

Commit

Permalink
updated the smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
dagarwal-mitre committed Feb 10, 2025
1 parent 34b55f1 commit 1aca0e9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Testing/Functional/SmokeTest/SmokeTest002.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,23 @@ Describe -Tag "UI","Chrome" -Name "Test Report with <Browser> for $OrganizationN
}
}
}
elseif ($Table.GetProperty("id") -eq "privileged-service-principals"){

# Iterate through each row in the table ensuring there are 4 columns
foreach ($Row in $Rows) {
$RowHeaders = Get-SeElement -Element $Row -By TagName 'th'
$RowData = Get-SeElement -Element $Row -By TagName 'td'

if ($RowHeaders.Count -gt 0){
$RowHeaders.Count | Should -BeExactly 4
$RowHeaders[0].text | Should -BeLikeExactly "Display Name"
}

if ($RowData.Count -gt 0){
$RowData.Count | Should -BeExactly 4
}
}
}
# Default is normal policy results table
else {
# Control report tables
Expand Down

0 comments on commit 1aca0e9

Please sign in to comment.