@@ -20,7 +20,9 @@ describe('page titles', () => {
20
20
const $ = await getDOM (
21
21
`/en/enterprise/${ enterpriseServerReleases . latest } /user/github/authenticating-to-github/authorizing-oauth-apps`
22
22
)
23
- expect ( $ ( 'title' ) . text ( ) ) . toBe ( 'Authorizing OAuth Apps - GitHub Docs' )
23
+ expect ( $ ( 'title' ) . text ( ) ) . toBe (
24
+ `Authorizing OAuth Apps - GitHub Enterprise Server ${ enterpriseServerReleases . latest } Docs`
25
+ )
24
26
} )
25
27
26
28
test ( 'dotcom English map topic page' , async ( ) => {
@@ -35,13 +37,19 @@ describe('page titles', () => {
35
37
36
38
test ( 'dynamically parses liquid in page titles (even on subsequent requests)' , async ( ) => {
37
39
let $ = await getDOM ( `/en/enterprise/${ enterpriseServerReleases . latest } ` )
38
- expect ( $ ( 'title' ) . text ( ) ) . toBe ( 'GitHub Enterprise Server Help Documentation - GitHub Docs' )
40
+ expect ( $ ( 'title' ) . text ( ) ) . toBe (
41
+ `GitHub Enterprise Server Help Documentation - GitHub Enterprise Server ${ enterpriseServerReleases . latest } Docs`
42
+ )
39
43
40
44
$ = await getDOM ( `/en/enterprise/${ enterpriseServerReleases . oldestSupported } ` )
41
- expect ( $ ( 'title' ) . text ( ) ) . toBe ( 'GitHub Enterprise Server Help Documentation - GitHub Docs' )
45
+ expect ( $ ( 'title' ) . text ( ) ) . toBe (
46
+ `GitHub Enterprise Server Help Documentation - GitHub Enterprise Server ${ enterpriseServerReleases . oldestSupported } Docs`
47
+ )
42
48
43
49
$ = await getDOM ( `/en/enterprise/${ enterpriseServerReleases . latest } ` )
44
- expect ( $ ( 'title' ) . text ( ) ) . toBe ( 'GitHub Enterprise Server Help Documentation - GitHub Docs' )
50
+ expect ( $ ( 'title' ) . text ( ) ) . toBe (
51
+ `GitHub Enterprise Server Help Documentation - GitHub Enterprise Server ${ enterpriseServerReleases . latest } Docs`
52
+ )
45
53
} )
46
54
47
55
// TODO enable this once translated content has synced with the versioning changes
0 commit comments