Skip to content

Commit f0bb6e9

Browse files
committed
Check if user is a bot before including in Bot Status calculation
1 parent 3efd025 commit f0bb6e9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

client/components/BotRunTestStatusList/index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,11 @@ const BotRunTestStatusList = ({ testPlanReportId }) => {
6060
};
6161
let anyPossibleUpdates = false;
6262
if (testPlanRunsQueryResult?.testPlanRuns) {
63-
for (const { collectionJob } of testPlanRunsQueryResult.testPlanRuns) {
64-
if (collectionJob?.testStatus) {
63+
for (const {
64+
collectionJob,
65+
tester
66+
} of testPlanRunsQueryResult.testPlanRuns) {
67+
if (collectionJob?.testStatus && tester?.isBot) {
6568
for (const { status } of collectionJob.testStatus) {
6669
counter[status]++;
6770
if (status === 'QUEUED' || status === 'RUNNING') {

client/components/BotRunTestStatusList/queries.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export const TEST_PLAN_RUNS_TEST_RESULTS_QUERY = gql`
66
id
77
tester {
88
username
9+
isBot
910
}
1011
testResults {
1112
id

0 commit comments

Comments
 (0)