Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4[1]2[ #24599

Closed
wants to merge 2,131 commits into from
Closed

4[1]2[ #24599

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
2131 commits
Select commit Hold shift + click to select a range
6424832
Merge pull request #35542 from github/repo-sync
Octomerger Mar 14, 2023
0bd4d17
[READY TO SHIP] - Dependabot Updates can keep Gradle Version Catalogs…
mchammer01 Mar 14, 2023
c778f6b
2023 Mandatory 2FA rollout for GitHub.com contributors (#35436)
saritai Mar 14, 2023
1d1802b
Merge branch 'main' into main
emmjohnson Mar 14, 2023
8535653
Bump is-svg from 4.3.2 to 5.0.0 (#35197)
dependabot[bot] Mar 14, 2023
e0a289c
Merge branch 'main' into 8472-support-portal-improvements
rachaelrenk Mar 14, 2023
0c67aad
Move events into subject folder (#35262)
heiskr Mar 14, 2023
0b0ada6
Merge pull request #24433 from github/repo-sync
Octomerger Mar 14, 2023
1384bec
Enterprise bug fixes for 2023-02-27 (#35469)
mattpollard Mar 14, 2023
a676e66
Remove note about `ghe-maintenance` in GHES 3.8 GA release notes (#35…
mattpollard Mar 14, 2023
e9f3a00
Merge pull request #24435 from github/repo-sync
Octomerger Mar 14, 2023
ecce822
Add missing API in FG token permissions (#35445)
guperrot Mar 14, 2023
eee921a
Update OpenAPI Description (#35478)
docubot Mar 14, 2023
319909c
Merge pull request #24436 from github/repo-sync
Octomerger Mar 14, 2023
0536e63
Debugging Playwright tests (#35534)
peterbe Mar 14, 2023
8cc033a
Merge pull request #24437 from github/repo-sync
Octomerger Mar 14, 2023
3e0dd71
Print combined key only once (#35549)
peterbe Mar 14, 2023
6597869
Merge pull request #24438 from github/repo-sync
Octomerger Mar 14, 2023
b0c2761
Update app rate limiting articles (#35109)
jhosman Mar 14, 2023
53aeea2
[Accessibility] Update first batch of screenshots in `images/help/spo…
sabrowning1 Mar 14, 2023
cb105db
Merge branch 'main' into 8472-support-portal-improvements
rachaelrenk Mar 14, 2023
804fd8d
Ordering (#35558)
heiskr Mar 14, 2023
9dec328
Add emphasis using italics to instructions for deleting packages (#35…
vgrl Mar 14, 2023
698098b
Merge branch 'main' into patch-1
cmwilson21 Mar 14, 2023
7396ba3
Update REST API authentication article (#35376)
skedwards88 Mar 14, 2023
0cd4520
Merge pull request #24439 from github/repo-sync
Octomerger Mar 14, 2023
604f75d
Merge pull request #24440 from github/repo-sync
Octomerger Mar 14, 2023
ddd3b38
[2023-03-14]: Ability to close Discussions (GA) (#35397)
sophietheking Mar 15, 2023
4fe7023
Merge pull request #24450 from github/repo-sync
Octomerger Mar 15, 2023
36898f3
CodeQL - Enhance documents for built in query suite usage and content…
felickz Mar 15, 2023
a3c58ba
Merge pull request #24452 from github/repo-sync
Octomerger Mar 15, 2023
1d95bb3
Adding new known issue to GHES 3.8.0 (#35540)
davidjarzebowski Mar 15, 2023
a7c9a02
Update headers in "About billing for GitHub Codespaces" (#35350)
lecoursen Mar 15, 2023
eb4f1f1
Merge pull request #24455 from github/repo-sync
Octomerger Mar 15, 2023
1292b32
Correct includeGuides frontmatter in all Guide pages (#35551)
peterbe Mar 15, 2023
106ce72
Merge pull request #24456 from github/repo-sync
Octomerger Mar 15, 2023
7a3cbb2
Update configuring-code-scanning-for-a-repository.md (#35539)
dorothymitchell Mar 15, 2023
d5565c8
Merge pull request #24457 from github/repo-sync
Octomerger Mar 15, 2023
06b86b1
prodname_code_scanning_caps not prodname_code_scanning_capc (#35527)
subatoi Mar 15, 2023
feddaee
Merge pull request #24460 from github/repo-sync
Octomerger Mar 15, 2023
4a81527
Merge branch 'main' into patch-1
cmwilson21 Mar 15, 2023
9d0aa21
Merge branch 'main' into main
cmwilson21 Mar 15, 2023
39d1853
Copilot in VS Code: add missing shortcut (#35580)
hubwriter Mar 15, 2023
652dee6
Update sentence under changing the visibility of your private contrib…
FENETMULER Mar 15, 2023
784b163
Merge pull request #24461 from github/repo-sync
Octomerger Mar 15, 2023
22268fa
Merge branch 'main' into patch-1
FENETMULER Mar 15, 2023
a364598
Don't show liquid tags in GraphQL docs (#35587)
hectorsector Mar 15, 2023
b87dbd1
Merge pull request #24465 from github/repo-sync
Octomerger Mar 15, 2023
7db0722
`topics` is not use for Search any more (#35105)
peterbe Mar 15, 2023
17128bf
Remove `ISSUE` placeholder from PR template (#35590)
ethanpalm Mar 15, 2023
11a940a
[2023-03-15]: Slash Commands - [Public Beta] (#35535)
sophietheking Mar 15, 2023
1b2fbac
Merge pull request #24467 from github/repo-sync
Octomerger Mar 15, 2023
bcbacd8
Merge pull request #24468 from github/repo-sync
Octomerger Mar 15, 2023
416c739
Update 'Creating a GitHub App' (#34959)
skedwards88 Mar 15, 2023
daa31b5
Merge pull request #24471 from github/repo-sync
Octomerger Mar 15, 2023
be30059
get popularities from docs-internal.popular-pages (#35583)
peterbe Mar 15, 2023
d619e92
Merge pull request #24472 from github/repo-sync
Octomerger Mar 15, 2023
fa262b9
Allow wrapping of params in GraphQL tables (#35598)
hectorsector Mar 15, 2023
1ffe895
Merge pull request #24474 from github/repo-sync
Octomerger Mar 15, 2023
6f88174
fixed merge conflicts.
OlayinkaAtobiloye Mar 15, 2023
0e1ae72
fixed merge conflicts.
OlayinkaAtobiloye Mar 15, 2023
3b78f87
Merge branch 'main' into patch-1
timmc-edx Mar 15, 2023
3fecfa1
jest@29.5.0 (#35579)
peterbe Mar 15, 2023
c0bbd4d
update-internal-links dump .yml files correctly (#35553)
peterbe Mar 15, 2023
123bfb4
Merge pull request #24476 from github/repo-sync
Octomerger Mar 15, 2023
6641633
[2023-03-15]: Create GitLab docs for GitHub Actions Importer (#35489)
SiaraMist Mar 15, 2023
e3b8fd4
Merge pull request #24477 from github/repo-sync
Octomerger Mar 16, 2023
b05b4ca
Rename 'master' to 'main' in publishing package sample
janisozaur Mar 16, 2023
140db3e
Update OpenAPI Description (#35588)
docubot Mar 16, 2023
b8ed4c8
Merge pull request #24484 from github/repo-sync
Octomerger Mar 16, 2023
cdcf9b5
Merge branch 'main' into style-consistency
sabrowning1 Mar 16, 2023
87612a7
add platform picker playwright tests (#35600)
rsese Mar 16, 2023
186379f
[Accessibility]: review and update or delete specific screenshots rel…
am-stead Mar 16, 2023
3011663
Merge pull request #24486 from github/repo-sync
Octomerger Mar 16, 2023
0094866
Merge branch 'main' into style-consistency
sabrowning1 Mar 16, 2023
c9a9394
[Accessibility] Deleted and updated GitHub Apps images (#35325)
saritai Mar 16, 2023
02c5a9f
Merge pull request #24487 from github/repo-sync
Octomerger Mar 16, 2023
40c1c90
update known-issues with resuables (#35554)
timreimherr Mar 16, 2023
97d1255
Merge pull request #24490 from github/repo-sync
Octomerger Mar 16, 2023
b1bffd6
Merge branch 'main' into style-consistency
heiskr Mar 16, 2023
b004aff
Remove references to inheritance of package visibility (#35619)
isaacmbrown Mar 16, 2023
87a7ffd
Merge pull request #24353 from OlayinkaAtobiloye/style-consistency
sabrowning1 Mar 16, 2023
ad530df
Merge branch 'main' into patch-1
cmwilson21 Mar 16, 2023
a6dec78
Merge pull request #24491 from github/repo-sync
Octomerger Mar 16, 2023
42553a6
Merge branch 'main' into repo-sync
Octomerger Mar 16, 2023
0472ab1
Merge pull request #35623 from github/repo-sync
Octomerger Mar 16, 2023
79332d8
Replace HTML links using `data-proofer-ignore` with Markdown links (#…
mattpollard Mar 16, 2023
76fe013
GraphQL schema update (#35589)
Octomerger Mar 16, 2023
5ebe058
Merge branch 'main' into patch-1
timmc-edx Mar 16, 2023
56cf0b9
Update OpenAPI Description (#35621)
docubot Mar 16, 2023
f840d3f
Merge pull request #24422 from timmc-edx/patch-1
cmwilson21 Mar 16, 2023
7af9b5e
Merge pull request #24493 from github/repo-sync
Octomerger Mar 16, 2023
af696f1
Merge pull request #35626 from github/repo-sync
Octomerger Mar 16, 2023
122bcac
SSH Cert policy now allows GitHub u2s tokens to be used with `git` (#…
hpsin Mar 16, 2023
31d705f
Cli manpage automation (#35169)
rachmari Mar 16, 2023
01e458a
Merge pull request #24495 from github/repo-sync
Octomerger Mar 16, 2023
3303187
Merge pull request #24496 from github/repo-sync
Octomerger Mar 16, 2023
7bd296a
Github -> GitHub (#35613)
mchammer01 Mar 16, 2023
92a78a6
Merge pull request #24497 from github/repo-sync
Octomerger Mar 16, 2023
76b24a1
Merge branch 'main' into 8472-support-portal-improvements
rachaelrenk Mar 16, 2023
b3c8147
let's not be dangerous :boom: (#35635)
Ebonsignori Mar 16, 2023
ee3fbed
[2023-03-16]: Secret scanning users can choose how they receive notif…
am-stead Mar 16, 2023
2ff6b04
[Accessibility] Update Markdown screenshots in `writing` directory (#…
meowius Mar 16, 2023
d7e5704
Merge pull request #24502 from github/repo-sync
Octomerger Mar 16, 2023
4246f6b
[Accessibility] Update screenshots in `pages` directory (#35567)
meowius Mar 16, 2023
5d17729
Merge branch 'main' into repo-sync
Octomerger Mar 16, 2023
aa2704b
Merge pull request #24503 from github/repo-sync
Octomerger Mar 16, 2023
50f166f
ignore automated test files in linter (#35632)
rachmari Mar 16, 2023
7e6be98
add a reusable for duplicate content
jc-clark Mar 16, 2023
0e93415
Merge pull request #24506 from github/repo-sync
Octomerger Mar 16, 2023
ce9cd10
Apply suggestions from code review
rachaelrenk Mar 16, 2023
a9b60fa
Update content/support/contacting-github-support/creating-a-support-t…
rachaelrenk Mar 16, 2023
b3e1912
implement review comments
rachaelrenk Mar 16, 2023
7987267
Merge branch 'main' into 8472-support-portal-improvements
rachaelrenk Mar 16, 2023
e6c3788
Fix 16 "Low hanging fruit" spelling issues (#24409)
SeanKilleen Mar 17, 2023
f674bc3
Merge pull request #35645 from github/repo-sync
Octomerger Mar 17, 2023
d33a092
Merge branch 'main' into 8472-support-portal-improvements
rachaelrenk Mar 17, 2023
d0173b5
Update content/support/contacting-github-support/getting-started-with…
rachaelrenk Mar 17, 2023
5bf0094
Update content/support/contacting-github-support/getting-started-with…
rachaelrenk Mar 17, 2023
a6cdcfd
Add release notes for issues with `git push` and `ghe-repl-*` in GHES…
mattpollard Mar 17, 2023
827678e
Merge pull request #24513 from github/repo-sync
Octomerger Mar 17, 2023
4c22074
Auto-convert tables to first col header (#35533)
peterbe Mar 17, 2023
035277e
Merge pull request #24514 from github/repo-sync
Octomerger Mar 17, 2023
114b653
🤖 lib/enterprise-dates.json update (#35545)
github-actions[bot] Mar 17, 2023
ba5a3df
Add info on EMUs and Codespaces (#35611)
isaacmbrown Mar 17, 2023
bf65001
Merge pull request #24516 from github/repo-sync
Octomerger Mar 17, 2023
9a23133
Merge branch 'main' into repo-sync
Octomerger Mar 17, 2023
28f750c
Merge pull request #24517 from github/repo-sync
Octomerger Mar 17, 2023
9ffd1e3
Revert "let's not be dangerous :boom:" (#35659)
peterbe Mar 17, 2023
9f5cae3
Test Liquid whitespace control (#35651)
peterbe Mar 17, 2023
0d98794
Update guidelines-for-legal-requests-of-user-data.md (#35594)
rajlaud Mar 17, 2023
3f9fd79
Code scanning alerts only appear in the diff of changes in PR (#35560)
saritai Mar 17, 2023
8735095
Test the raw Liquid block tag (#35652)
peterbe Mar 17, 2023
e5fc946
Test intros and permissions with fixtures tests (#35649)
peterbe Mar 17, 2023
1029bc7
Test local development server (#35657)
peterbe Mar 17, 2023
1ba8155
Merge pull request #24521 from github/repo-sync
Octomerger Mar 17, 2023
ecf8c8e
Remove happy-path tests of rest pages in rendering/server.js (#35654)
peterbe Mar 17, 2023
6df88d8
Remove debug statement (#35663)
rachmari Mar 17, 2023
69d7bd3
Merge pull request #24523 from github/repo-sync
Octomerger Mar 17, 2023
9f343a8
Update OpenAPI Description (#35662)
docubot Mar 17, 2023
1b87657
Merge branch 'main' into 8472-support-portal-improvements
jc-clark Mar 17, 2023
d7b6465
re-order the child links in index.md
jc-clark Mar 17, 2023
49e5b56
Merge pull request #24528 from github/repo-sync
Octomerger Mar 17, 2023
ccf6dcf
Update github-and-trade-controls.md (#35620)
dvelton Mar 17, 2023
a14b94d
Remove reference to GitHub CLI webhook forwarding being in private be…
timrogers Mar 17, 2023
54b3c99
add variables and update content
jc-clark Mar 17, 2023
9290a5a
Merge branch 'main' into 8472-support-portal-improvements
jc-clark Mar 17, 2023
8968d04
fix spacing
jc-clark Mar 17, 2023
fdb71a1
Merge branch '8472-support-portal-improvements' of https://github.com…
jc-clark Mar 17, 2023
d404619
Merge pull request #24529 from github/repo-sync
Octomerger Mar 17, 2023
09ad21d
fix a link
jc-clark Mar 17, 2023
d7ed88f
feedback on CodeQL docs formatting (#35668)
rachmari Mar 17, 2023
44c051b
Merge pull request #24530 from github/repo-sync
Octomerger Mar 17, 2023
978eea3
Merge pull request #35156 from github/8472-support-portal-improvements
rachaelrenk Mar 17, 2023
1a591aa
Merge pull request #24532 from github/repo-sync
Octomerger Mar 17, 2023
7ed2896
Make it clear when downloading JSON from archive (#35677)
peterbe Mar 18, 2023
0820c53
Merge pull request #24533 from github/repo-sync
Octomerger Mar 18, 2023
190dfe2
Fix: "collapsible"
SeanKilleen Mar 19, 2023
dd3ed1d
Update some tables for accessibility (#35324)
lecoursen Mar 20, 2023
7fda47c
Make tables in the Enterprise focus area accessible (#35253)
lecoursen Mar 20, 2023
ed18f98
Make tables accessible in the Actions focus area (#35481)
lecoursen Mar 20, 2023
23cf225
Merge pull request #24550 from github/repo-sync
Octomerger Mar 20, 2023
e56b839
Merge branch 'main' into main
cmwilson21 Mar 20, 2023
4f36776
Merge pull request #24425 from emmjohnson/main
cmwilson21 Mar 20, 2023
8d27007
Update links, update 'user-to-server' and 'server-to-server' mentions…
skedwards88 Mar 20, 2023
4a9d0df
Merge pull request #35686 from github/repo-sync
Octomerger Mar 20, 2023
221cf88
Clarify documentation about Git commit attribution after GEI migratio…
timrogers Mar 20, 2023
4d88bb1
Merge pull request #24552 from github/repo-sync
Octomerger Mar 20, 2023
35c5d1e
Merge pull request #24553 from github/repo-sync
Octomerger Mar 20, 2023
a1b7254
Enterprise bug fixes for the week of March 13, 2023 (#35624)
rachaelrenk Mar 20, 2023
938c702
add CodeQL CLI automation workflow (#35603)
rachmari Mar 20, 2023
bb80604
Enable all at organization level for code scanning (#35472)
felicitymay Mar 20, 2023
edc9a69
got supports caching (#35681)
peterbe Mar 20, 2023
2aa4c03
Merge pull request #24554 from github/repo-sync
Octomerger Mar 20, 2023
a2b35d2
Merge pull request #24556 from github/repo-sync
Octomerger Mar 20, 2023
d7442dc
Remove uuid package (#35694)
heiskr Mar 20, 2023
422dee1
Bump webpack from 5.73.0 to 5.76.2 (#35705)
dependabot[bot] Mar 20, 2023
9025499
Small updates to screenshot and alt-text guidelines (#35680)
meowius Mar 20, 2023
f52890f
Merge pull request #24560 from github/repo-sync
Octomerger Mar 20, 2023
3f6b6e2
Merge branch 'main' into 2023-03-18_spelling-fix
cmwilson21 Mar 20, 2023
65edc3c
Merge pull request #24561 from github/repo-sync
Octomerger Mar 20, 2023
20f11df
Merge branch 'main' into 2023-03-18_spelling-fix
cmwilson21 Mar 20, 2023
fbe093a
Merge pull request #24543 from SeanKilleen/2023-03-18_spelling-fix
cmwilson21 Mar 20, 2023
9df19f4
Fall back to English if translation title is empty string (#35702)
peterbe Mar 20, 2023
d24c278
Merge pull request #35713 from github/repo-sync
Octomerger Mar 20, 2023
b09c4c4
Measure how often getRemoteJSON runs (#35706)
peterbe Mar 20, 2023
3691dfa
Merge pull request #24563 from github/repo-sync
Octomerger Mar 20, 2023
ce18048
Update OpenAPI Description (#35708)
docubot Mar 20, 2023
12810bf
Merge pull request #24564 from github/repo-sync
Octomerger Mar 20, 2023
fa78387
document changes for fixing issue 9790 (#35515)
leiyu88 Mar 20, 2023
fc28580
Remove req utils (#35695)
heiskr Mar 20, 2023
c80f387
Merge pull request #24565 from github/repo-sync
Octomerger Mar 21, 2023
56c7b0d
Merge pull request #24566 from github/repo-sync
Octomerger Mar 21, 2023
015e41b
[Accessibility]: review specific screenshots relating to dependencies…
mchammer01 Mar 21, 2023
6f95326
Consolidate secret scanning tables (#35312)
sarahs Mar 21, 2023
eb5e139
Merge pull request #24573 from github/repo-sync
Octomerger Mar 21, 2023
a15dd3f
[Accessibility]: review specific screenshots relating to dependencies…
mchammer01 Mar 21, 2023
84bf512
Merge pull request #24574 from github/repo-sync
Octomerger Mar 21, 2023
527ad27
Make getRemoteJSON fast again (#35720)
peterbe Mar 21, 2023
ee4544c
Merge pull request #24576 from github/repo-sync
Octomerger Mar 21, 2023
f74d61b
Fix a broken link reported by the field team (#35728)
felicitymay Mar 21, 2023
f7ec3af
Remove duplicate link to "About high availability configuration" (#35…
mattpollard Mar 21, 2023
07865dd
Merge pull request #24577 from github/repo-sync
Octomerger Mar 21, 2023
da1f7d9
GitHub Desktop editor article update (#35673)
steveward Mar 21, 2023
8d770b4
Merge pull request #24581 from github/repo-sync
Octomerger Mar 21, 2023
3f4eb40
add article card playwright tests (#35683)
rsese Mar 21, 2023
c2a0808
Update configuring-openid-connect-in-amazon-web-services.md (#35646)
MosJef Mar 21, 2023
c42452c
Merge pull request #24582 from github/repo-sync
Octomerger Mar 21, 2023
98d34a2
Merge pull request #24583 from github/repo-sync
Octomerger Mar 21, 2023
2196ee1
Update tables for accessibility (#35529)
skedwards88 Mar 21, 2023
84759e0
Remove tables in the REST libraries article (#35687)
skedwards88 Mar 21, 2023
a97d786
Convert table to list in the REST pull article (#35688)
skedwards88 Mar 21, 2023
4c0d0a9
Update OpenAPI Description (#35741)
docubot Mar 21, 2023
2060e7c
Updates table content for accessibility (#35526)
skedwards88 Mar 21, 2023
864b6ac
Merge pull request #24587 from github/repo-sync
Octomerger Mar 21, 2023
5f458a7
Update validation event schema (#35692)
heiskr Mar 21, 2023
d707ed9
Convert table to text in the REST LFS docs (#35690)
skedwards88 Mar 21, 2023
0dc3809
Merge pull request #24588 from github/repo-sync
Octomerger Mar 21, 2023
ed3f9c2
Remove GHES 3.7.5 release note about bug fix for failed authenticatio…
mattpollard Mar 21, 2023
02afd30
CodeQL pipeline workflow update (#35700)
rachmari Mar 21, 2023
9411aeb
ignore repos prettier (#35710)
rachmari Mar 21, 2023
b35151f
Merge pull request #24589 from github/repo-sync
Octomerger Mar 21, 2023
d851132
Bump Desktop macOS requirement to 10.13 (#35465)
sergiou87 Mar 21, 2023
6ef3e75
Merge pull request #24590 from github/repo-sync
Octomerger Mar 21, 2023
bac2f9f
Update our guidance on octicons (again) (#35738)
lecoursen Mar 21, 2023
6840b18
Merge pull request #24592 from github/repo-sync
Octomerger Mar 21, 2023
042366b
Merge branch 'main' into patch-1
cmwilson21 Mar 21, 2023
07a3e2a
Preview hover cards (#34702)
peterbe Mar 21, 2023
284e643
Merge pull request #24463 from FENETMULER/patch-1
cmwilson21 Mar 21, 2023
abfe99b
Merge pull request #24593 from github/repo-sync
Octomerger Mar 21, 2023
bb9e85b
Merge branch 'main' into repo-sync
Octomerger Mar 21, 2023
908f1cb
Merge pull request #35754 from github/repo-sync
Octomerger Mar 21, 2023
410311e
Merge branch 'main' into patch-3
cmwilson21 Mar 21, 2023
ee858cd
Merge pull request #24483 from janisozaur/patch-3
cmwilson21 Mar 21, 2023
a96be8a
Merge pull request #24596 from github/repo-sync
Octomerger Mar 21, 2023
fc73e1d
Merge branch 'main' into repo-sync
Octomerger Mar 21, 2023
c631dcd
Merge pull request #35755 from github/repo-sync
Octomerger Mar 21, 2023
fa9ef3e
Update OpenAPI Description (#35744)
docubot Mar 21, 2023
a52973b
Merge pull request #24597 from github/repo-sync
Octomerger Mar 21, 2023
c2c7c71
Move and reduce event tests (#35693)
heiskr Mar 21, 2023
648e1e8
Merge pull request #24598 from github/repo-sync
Octomerger Mar 21, 2023
20b941d
[2023-03-31] Make images accessible in the images/help/classroom dire…
sophietheking Mar 22, 2023
11422a9
Merge pull request #24601 from github/repo-sync
Octomerger Mar 22, 2023
1900c04
[Improvement]: Small change for label text in Copilot article (#35737)
sophietheking Mar 22, 2023
66e6cc8
Merge pull request #24602 from github/repo-sync
Octomerger Mar 22, 2023
22383f0
[Accessibility] [4 / 4] Make remaining Desktop screenshots accessible…
isaacmbrown Mar 22, 2023
805e097
Merge pull request #24604 from github/repo-sync
Octomerger Mar 22, 2023
6db0551
Make images accessible in the `images/help/issues` directory (#35166)
lecoursen Mar 22, 2023
12810b6
[Accessibility] Temporarily remove Classroom article with links to vi…
saritai Mar 22, 2023
7f6ae31
Merge pull request #24606 from github/repo-sync
Octomerger Mar 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Debugging Playwright tests (#35534)
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
  • Loading branch information
peterbe and rsese authored Mar 14, 2023
commit 0536e638b56c985ac20d72ba0e29047bcb975e3a
198 changes: 198 additions & 0 deletions tests/PLAYWRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
# Headless tests with Playwright

There are currently 3 general automated tests:

1. `jest` tests against real English content (and some code)
1. `jest` tests against fixture content
1. `playwright` tests against fixture content (What this document is about!)

## Quickstart

Just like with regular `jest` tests, if you haven't already done so...

```sh
npm run build
```

Now, to run all the tests:

```sh
npm run playwright-test
```

That command will automatically start a server (on `localhost:4000`) for
the duration of test suite. It then finds all `tests/**/*.spec.ts`
files and run them by using `Google Chrome` as the underlying browser.

If you have [set up a local Elasticsearch server](../search/elasticsearch-locally.md) (`localhost:9200`) the
headless tests will test doing site-searches if you've set up
an `ELASTICSEARCH_URL` environment variable.

## Introduction

The best documentation is <https://playwright.dev/> and this documentation
here is merely an introduction to it.

Refer to it when writing tests and trying to figure out how to use certain
[locators](https://playwright.dev/docs/locators) which is important
things, like `page.getByAltText()`, which you'll need for tying the browsing
to your assertions.

### What to test

Beyond some basic happy path tests, **only test what `jest` can't test**.
In particular this means client-side JavaScript interactions. For example,
`jest` can fetch the HTML over HTTP and assert against the `cheerio` parsed
HTML, but it can't test what happens when you click a client-side routing
link that triggers some sort of user agent interaction.

`jest` is always faster. Playwright tests can test things like displaying
different things depending on cookies or `localStorage`. Playwright tests
can test the visual presence of something. For example, if something
like `<div style="display:none">Text here</div>` is in the DOM only
Playwright can understand that it's not actually present in the page since
`jest` and Cheerio can't understand CSS.

Think of your headless tests as "What would a human QA person do?"
The imaginary QA person can be you. If there's something you find yourself
doing to make sure your functionality doesn't regress as it's changing,
consider that to be motivation enough to write a headless test.

## VSCode

["Playwright Test for VSCode"](https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright)
is a great extension for people who use VSCode. Once installed, open the
file `playwright-rendering.spec.ts` and start the command
palette (`Cmd`+`Shift`+`p`) and type "Testing: Focus
on Playwright View" which will display the "TESTING" sidebar. It finds
all the file's tests as a tree and for each test there's a Play button.
You can either play a specific single test or you can make it run all
tests.

Note, that failiure is often the result of the Playwright test waiting
very patiently for something to be present but it can't be found. I.e.
failures are often the same thing as Playwright reaching a waiting timeout.
This can make it feel like nothing's happening.

Near the bottom of the "TESTING" sidebar is an extra menu specifically for
Playwright. One very useful option is the "[ ] Show browser" which means a
browser window will appear when tests run.

## CLI

The most basic command is:

```sh
npm run playwright-test -- --help
```

This will guide you to all the options possible. For example,

```sh
npm run playwright-test -- --headed
```

...will open a browser flickering through the tests.

```sh
npm run playwright-test -- playwright-rendering.spec.ts
```

...will only run the tests in a file by that name.

```sh
npm run playwright-test -- playwright-rendering.spec.ts:16
```

...will run that specific `test('description here', async ({ page }))` on
line 16.

```sh
npm run playwright-test -- -g "view home page"
```

...will only run tests whose description contains that text.

## Debugging

Writing tests can be difficult until all the locators feel like
second nature. You might be struggling with finding something in the
page which you're not sure is there or you don't know exactly
how to refer to it.

The first thing to do is familiarize yourself with how to run the CLI
that only opens the one specific test you're debugging. Then, you
run the CLI with `--debug --headed`. For example:

```sh
npm run playwright-test -- -g "view home page" --debug --headed
```

Now, it should open an additional debugger window next to a browser
window and you can press the play button there. When it gets stuck you can
use the browser window to do things like right-clicking and "Inspect..."
to understand what's in the DOM.

Another thing that can help debugging is to open the browser just like
the script does. Run:

```sh
npm run start-for-playwright
```

and open your regular browser window on <http://localhost:4000>.
When you're done, don't forgot to stop the server otherwise
the `npm run playwright-test` command won't work.

## Codegen

Codegen is when Playwright starts a browser and a debugger window. In the
debugger window it generates TypeScript code which you can copy-and-paste
into your editor/IDE when you're done. To use codegen you need to
first manually start the server. In the **first terminal**:

```sh
npm run build && npm run start-for-playwright
```

In a **second terminal**:

```sh
npx playwright codegen
```

Now type in `localhost:4000` in the browser window and click around.
Note how the TypeScript code gets written. It's definitely not perfect
but it can save you a lot of time writing selectors.

Note that the codegen code will not have any assertions other than
sheer presence. It might also contain things like
`await page.goto('http://localhost:4000')` which you can later
correct to `await page.goto('/')`.

When you have pasted over the TypeScript code from the debugger window,
you can click into that second terminal and press `Ctrl`+`C` to stop
the codegen debugger.

## More browsers

At the moment (March 2023) we don't test more browsers in Actions.
The primary use case at the moment is testing that client-side
interactions work at all. Actual cross-browser testing is not a priority
at the current time.

## Tips on writing tests

- What would a human be able to assert? If you find yourself testing things
that you expect in the DOM that a human wouldn't be able to test, the
test might not be a good test. For example, to make an assertion that
a certain div has `class="blabla"` if you click on a certain thing. Either
test something visual or perhaps don't bother testing it with Playwright.

- *Combine* codegen tests and manual editing is a great combination.
Use the codegen output but familiarize yourself with the Playwright
documentation how to do things like locators and/or assertions.

- When you use the codegen, it's clever in that it can attach to `data-testid`
nodes in your DOM. That's a good thing. If it's unable to do that,
consider going into the React code and add some more.
4 changes: 4 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ jest tests/rendering/ -b
### Fixture based testing

See [Fixture content](./fixtures/README.md).

### Headless tests with Playwright

See [Headless tests with Playwright](./PLAYWRIGHT.md)
4 changes: 2 additions & 2 deletions tests/meta/orphan-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import path from 'path'
describe('check for orphan tests', () => {
test('all tests are in sub-directories', async () => {
// A known list of exceptions that can live outside of directories
const EXCEPTIONS = ['README.md', 'package.json', 'utils.js', '.DS_Store']
const pathToTests = path.join(process.cwd(), 'tests')
const EXCEPTIONS = ['README.md', 'package.json', 'utils.js', '.DS_Store', 'PLAYWRIGHT.md']
const pathToTests = 'tests'

// Get a list of files/directories in `/tests`
const testDirectory = await fs.readdir(pathToTests)
Expand Down