You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@azasypkin suggested a nice improvement in test design: getSupertestWithRoleScope('admin', ...options...) that would do all the heavy lifting with custom, internal and security headers internally.
describe('against an application page', () => {
it(`uses compression when there isn't a referer`, async () => {
const response = await getSupertestWithRoleScope('admin', {withInternalHeaders: true})
.get('/app/kibana')
.set('accept-encoding', 'gzip')
expect(response.header).to.have.property('content-encoding', 'gzip');
});
});
The text was updated successfully, but these errors were encountered:
@azasypkin suggested a nice improvement in test design:
getSupertestWithRoleScope('admin', ...options...)
that would do all the heavy lifting with custom, internal and security headers internally.The text was updated successfully, but these errors were encountered: