Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: fix detection of bot comments after migrating to graphql (#35626)
Yury Semikhatsky61fc32005302
diff --git a/packages/playwright-dashboard/src/ghaMarkdownReporter.ts b/packages/playwright-dashboard/src/ghaMarkdownReporter.tsindex 98dccd7ef6..f54767c65d 100644--- a/packages/playwright-dashboard/src/ghaMarkdownReporter.ts+++ b/packages/playwright-dashboard/src/ghaMarkdownReporter.ts@@ -65,6 +65,7 @@ class GHAMarkdownReporter extends MarkdownReporter {idbodyauthor {+ __typenamelogin}}@@ -73,8 +74,10 @@ class GHAMarkdownReporter extends MarkdownReporter {}}`);- const comments = data.repository.pullRequest?.comments.nodes?.filter(- comment => comment?.author?.login === 'github-actions[bot]' && comment.body?.includes(magicComment));+ const comments = data.repository.pullRequest?.comments.nodes?.filter(comment =>+ comment?.author?.__typename === 'Bot' &&+ comment?.author?.login === 'github-actions' &&+ comment.body?.includes(magicComment));const prId = data.repository.pullRequest?.id;if (!comments?.length)return prId;