Skip to content

Commit 74416b6

Browse files
committed
fix: cut over document-domain-workaround to mdx component
1 parent f4a552e commit 74416b6

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/guides/guides/cross-origin-testing.mdx

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ property into the visited `text/html` pages. This is why navigations without the
2626
use of the [`cy.origin()`](/api/commands/origin) command are solely scope to the
2727
same superdomain.
2828

29-
::include{file=partials/document-domain-workaround.md}
29+
<DocumentDomainWorkaround />
30+
3031

3132
We understand this is a bit complicated to understand, so we have built a nifty
3233
chart to help clarify the differences!
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Alert type="warning">
1+
:::caution
22

33
<strong class="alert-header"><Icon name="exclamation-triangle"></Icon> Disabling
4-
`document.domain` Injection</strong>
4+
document.domain Injection</strong>
55

66
In some cases, `document.domain` injection may cause issues. As of Cypress
77
[v12.4.0](https://on.cypress.io/changelog#12-4-0), disabling `document.domain`
@@ -10,4 +10,4 @@ read about this
1010
[experiment](/guides/references/experiments#Experimental-Skip-Domain-Injection)
1111
for more information
1212

13-
</Alert>
13+
:::

src/theme/MDXComponents.js

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import CypressConfigFileTabs from "@site/src/components/cypress-config-file-tabs
99
import DefaultSelectorPriority from "@site/docs/partials/_default-selector-priority.mdx";
1010
import DocsImage from "@site/src/components/docs-image";
1111
import DocsVideo from "@site/src/components/docs-video";
12+
import DocumentDomainWorkaround from "@site/docs/partials/_document-domain-workaround.mdx"
1213
import E2EOnlyBadge from "@site/src/components/e2e-only-badge";
1314
import E2EOrCtTabs from "@site/src/components/e2e-or-ct-tabs";
1415
import VueSyntaxTabs from "@site/src/components/vue-syntax-tabs";
@@ -119,6 +120,7 @@ export default {
119120
DefaultSelectorPriority,
120121
DocsImage,
121122
DocsVideo,
123+
DocumentDomainWorkaround,
122124
E2EOnlyBadge,
123125
E2EOrCtTabs,
124126
VueSyntaxTabs,

0 commit comments

Comments
 (0)