Skip to content

Commit

Permalink
several tests do not set testingtype in config, so just check against…
Browse files Browse the repository at this point in the history
… component instead of checking for e2e
  • Loading branch information
cacieprins committed Dec 16, 2024
1 parent ec653df commit 81cacf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/network/lib/document-domain-injection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export abstract class DocumentDomainInjection {

debug('called from', new Error().stack)

if (config.injectDocumentDomain && config.testingType === 'e2e') {
if (config.injectDocumentDomain && config.testingType !== 'component') {
debug('Returning document domain injection behavior')

return new DocumentDomainBehavior()
Expand Down
1 change: 1 addition & 0 deletions packages/server/test/integration/http_requests_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3213,6 +3213,7 @@ describe('Routes', () => {
describe('with config.injectDocumentDomain enabled', function () {
const config = {
injectDocumentDomain: true,
testingType: 'e2e',
}
const superdomain = 'cypress.io'
const origin = 'http://www.cypress.io'
Expand Down

0 comments on commit 81cacf8

Please sign in to comment.