UNPKG
@revoloo/cypress6
Version:
latest (1.0.0)
1.0.0
Cypress.io end to end testing tool
github.com/cypress-io/cypress
cypress-io/cypress
@revoloo/cypress6
/
packages
/
server-ct
/
crossword-example
/
cypress
/
component
/
RenderFn.spec.js
12 lines
(10 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
RenderFn
from
'@/components/RenderFn'
import
{ mount }
from
'@cypress/vue'
describe
(
'Foo'
,
() =>
{
it
(
'works'
,
() =>
{
mount
(
RenderFn
) cy.
get
(
'h3'
).
contains
(
'Count is: 0'
) cy.
get
(
'button'
).
contains
(
'Increment'
).
click
() cy.
get
(
'h3'
).
contains
(
'Count is: 1'
) }) })