@@ -174,7 +174,7 @@ describe('platform specific content', () => {
174
174
const userAgents = [
175
175
{ name : 'Mac' , id : 'mac' , ua : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko) Version/9.0.2 Safari/601.3.9' } ,
176
176
{ name : 'Windows' , id : 'windows' , ua : 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36' } ,
177
- { name : 'Linux' , id : 'linux' , ua : 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1' } ,
177
+ { name : 'Linux' , id : 'linux' , ua : 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1' }
178
178
]
179
179
const userAgentLinux = userAgents [ 2 ]
180
180
@@ -193,7 +193,7 @@ describe('platform specific content', () => {
193
193
await page . setUserAgent ( agent . ua )
194
194
await page . goto ( 'http://localhost:4001/en/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners' )
195
195
const selectedPlatformElement = await page . waitForSelector ( 'a.platform-switcher.selected' )
196
- const selectedPlatform = await page . evaluate ( el => el . textContent , selectedPlatformElement )
196
+ const selectedPlatform = await page . evaluate ( el => el . textContent , selectedPlatformElement )
197
197
expect ( selectedPlatform ) . toBe ( agent . name )
198
198
}
199
199
} )
@@ -204,7 +204,7 @@ describe('platform specific content', () => {
204
204
await page . goto ( 'http://localhost:4001/en/actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service' )
205
205
const defaultPlatform = await page . $eval ( '[data-default-platform]' , el => el . dataset . defaultPlatform )
206
206
const selectedPlatformElement = await page . waitForSelector ( 'a.platform-switcher.selected' )
207
- const selectedPlatform = await page . evaluate ( el => el . textContent , selectedPlatformElement )
207
+ const selectedPlatform = await page . evaluate ( el => el . textContent , selectedPlatformElement )
208
208
expect ( defaultPlatform ) . toBe ( userAgentLinux . id )
209
209
expect ( selectedPlatform ) . toBe ( userAgentLinux . name )
210
210
}
0 commit comments