Skip to content

Commit 1057fc7

Browse files
Ely Lucascowboy
Ely Lucas
andauthored
Unify 587 - adding cy.mount api doc (cypress-io#4234)
* adding cy.mount guide * updating headers to show component only badge * moving mount guide to api docs * react examples * PR change request updates * adding vue2 vue3 code group * vue updates * Update content/api/commands/mount.md Co-authored-by: Ben Alman <[email protected]> * Update content/api/commands/mount.md Co-authored-by: Ben Alman <[email protected]> * Update content/api/commands/mount.md Co-authored-by: Ben Alman <[email protected]> * Update content/api/commands/mount.md Co-authored-by: Ben Alman <[email protected]> * feedback changes * changes Co-authored-by: Ben Alman <[email protected]>
1 parent cd671d2 commit 1057fc7

File tree

8 files changed

+655
-9
lines changed

8 files changed

+655
-9
lines changed
Loading

components/MainContentHeader.vue

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export default {
88
e2eSpecific: {
99
type: Boolean,
1010
required: false,
11+
},
12+
componentSpecific: {
13+
type: Boolean,
14+
required: false,
1115
}
1216
}
1317
}
@@ -19,5 +23,6 @@ export default {
1923
{{ title }}
2024
</h1>
2125
<E2EOnlyBadge v-if="e2eSpecific" class="mt-4 mb-3" />
26+
<ComponentOnlyBadge v-if="componentSpecific" class="mt-4 mb-3" />
2227
</div>
2328
</template>
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<template>
2+
<CodeGroup sync-group="vue2-vue3">
3+
<CodeBlock label="Vue 2" active>
4+
<template #alert><slot name="vue2-alert"></slot></template>
5+
<slot name="vue2"></slot>
6+
</CodeBlock>
7+
<CodeBlock label="Vue 3">
8+
<template #alert><slot name="vue3-alert"></slot></template>
9+
<slot name="vue3"></slot>
10+
</CodeBlock>
11+
</CodeGroup>
12+
</template>

content/_data/sidebar.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@
5959
{
6060
"title": "Rendering Components Correctly",
6161
"slug": "rendering-components-correctly"
62-
},
63-
{
64-
"title": "Creating a cy.mount Command",
65-
"slug": "creating-a-cy-mount-command"
6662
}
6763
]
6864
},
@@ -572,6 +568,10 @@
572568
"title": "log",
573569
"slug": "log"
574570
},
571+
{
572+
"title": "mount",
573+
"slug": "mount"
574+
},
575575
{
576576
"title": "next",
577577
"slug": "next"

0 commit comments

Comments
 (0)