1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Files
docs/tests/rendering/signup-button.js
2022-07-28 18:50:46 +00:00

30 lines
849 B
JavaScript

import { jest, describe } from '@jest/globals'
// import { getDOM } from '../helpers/e2etest.js'
describe.skip('GHEC sign up button', () => {
jest.setTimeout(60 * 1000)
test('false by default', async () => {
// const $ = await getDOM('/en')
// expect(getIsDotComAuthenticated($)).toBe(false)
})
test('not present if dotcom_user cookie', async () => {
// const $ = await getDOM('/en', {
// headers: {
// cookie: 'dotcom_user=peterbe',
// },
// })
// expect(getIsDotComAuthenticated($)).toBe(true)
// Do another request, same URL, but different cookie, just to
// make sure the server-side rendering cache isn't failing.
// const $2 = await getDOM('/en', {
// headers: {
// cookie: 'bla=bla',
// },
// })
// expect(getIsDotComAuthenticated($2)).toBe(false)
})
})