Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_41894708
vue-devtools
提交
2431aa1d
V
vue-devtools
项目概览
qq_41894708
/
vue-devtools
与 Fork 源项目一致
从无法访问的项目Fork
通知
17
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-devtools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2431aa1d
编写于
10月 30, 2019
作者:
G
Guillaume Chau
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test(e2e): fix
上级
a0eacfa1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
19 deletion
+17
-19
cypress/integration/component-data-edit.js
cypress/integration/component-data-edit.js
+2
-0
cypress/integration/components-tab.js
cypress/integration/components-tab.js
+12
-15
cypress/integration/vuex-tab.js
cypress/integration/vuex-tab.js
+3
-4
未找到文件。
cypress/integration/component-data-edit.js
浏览文件 @
2431aa1d
...
...
@@ -4,6 +4,7 @@ suite('component data edit', () => {
it
(
'
should edit data using the decrease button
'
,
()
=>
{
// select Instance
cy
.
get
(
'
.instance:nth-child(1) .instance:nth-child(2)
'
).
eq
(
0
).
click
()
cy
.
get
(
'
.component-state-inspector .data-type
'
).
should
(
'
contain
'
,
'
data
'
)
cy
.
get
(
'
.data-field
'
).
eq
(
7
).
find
(
'
.actions .vue-ui-button
'
).
eq
(
1
).
click
({
force
:
true
})
cy
.
get
(
'
.component-state-inspector
'
).
within
(()
=>
{
cy
.
get
(
'
.key
'
).
contains
(
'
0
'
).
parent
().
get
(
'
.value
'
).
contains
(
'
0
'
)
...
...
@@ -21,6 +22,7 @@ suite('component data edit', () => {
it
(
'
should edit data using the increase button
'
,
()
=>
{
cy
.
get
(
'
.instance:nth-child(1) .instance:nth-child(2)
'
).
eq
(
0
).
click
()
cy
.
get
(
'
.component-state-inspector .data-type
'
).
should
(
'
contain
'
,
'
data
'
)
cy
.
get
(
'
.data-field
'
).
eq
(
7
).
find
(
'
.actions .vue-ui-button
'
).
eq
(
2
).
click
({
force
:
true
})
cy
.
get
(
'
.component-state-inspector
'
).
within
(()
=>
{
cy
.
get
(
'
.key
'
).
contains
(
'
0
'
).
parent
().
get
(
'
.value
'
).
contains
(
'
0
'
)
...
...
cypress/integration/components-tab.js
浏览文件 @
2431aa1d
...
...
@@ -120,30 +120,27 @@ suite('components tab', () => {
it
(
'
should display injected props
'
,
()
=>
{
cy
.
get
(
'
.left .search input
'
).
clear
().
type
(
'
Mine
'
)
cy
.
get
(
'
.instance
'
).
eq
(
1
).
click
()
cy
.
get
(
'
.right .data-wrapper
'
).
then
(
el
=>
{
expect
(
el
.
text
()).
to
.
contain
(
'
injected
'
)
expect
(
el
.
text
()).
to
.
contain
(
'
answer:42
'
)
expect
(
el
.
text
()).
to
.
contain
(
'
foo:"bar"
'
)
expect
(
el
.
text
()).
to
.
contain
(
'
noop:ƒ noop(a, b, c)
'
)
})
cy
.
get
(
'
.right .data-wrapper
'
)
.
should
(
'
contain
'
,
'
injected
'
)
.
should
(
'
contain
'
,
'
answer:42
'
)
.
should
(
'
contain
'
,
'
foo:"bar"
'
)
.
should
(
'
contain
'
,
'
noop:ƒ noop(a, b, c)
'
)
cy
.
get
(
'
.left .search input
'
).
clear
()
})
it
(
'
should display $refs
'
,
()
=>
{
cy
.
get
(
'
.instance .item-name
'
).
contains
(
'
RefTester
'
).
click
()
cy
.
get
(
'
.right .data-wrapper
'
).
then
(
el
=>
{
expect
(
el
.
text
()).
to
.
contain
(
'
list:Array[4]
'
)
expect
(
el
.
text
()).
to
.
contain
(
'
<li>
'
)
expect
(
el
.
text
()).
to
.
contain
(
'
tester:<p id="testing"
'
)
})
cy
.
get
(
'
.right .data-wrapper
'
)
.
should
(
'
contain
'
,
'
list:Array[4]
'
)
.
should
(
'
contain
'
,
'
<li>
'
)
.
should
(
'
contain
'
,
'
tester:<p id="testing"
'
)
})
it
(
'
should display $attrs
'
,
()
=>
{
cy
.
get
(
'
.instance .instance:nth-child(2) .arrow-wrapper
'
).
click
()
cy
.
get
(
'
.instance .instance .instance:nth-child(1) .item-name
'
).
click
()
cy
.
get
(
'
.right .data-wrapper
'
).
then
(
el
=>
{
expect
(
el
.
text
()).
to
.
contain
(
'
$attrs
'
)
expect
(
el
.
text
()).
to
.
contain
(
'
attr:"some-attr"
'
)
})
cy
.
get
(
'
.right .data-wrapper
'
)
.
should
(
'
contain
'
,
'
$attrs
'
)
.
should
(
'
contain
'
,
'
attr:"some-attr"
'
)
})
})
cypress/integration/vuex-tab.js
浏览文件 @
2431aa1d
...
...
@@ -14,10 +14,9 @@ suite('vuex tab', () => {
cy
.
get
(
'
[data-id="load-vuex-state"]
'
).
click
()
cy
.
get
(
'
.recording-vuex-state
'
).
should
(
'
not.be.visible
'
)
cy
.
get
(
'
.loading-vuex-state
'
).
should
(
'
not.be.visible
'
)
cy
.
get
(
'
.vuex-state-inspector
'
).
then
(
el
=>
{
expect
(
el
.
text
()).
to
.
include
(
'
type:"DECREMENT"
'
)
expect
(
el
.
text
()).
to
.
include
(
'
count:1
'
)
})
cy
.
get
(
'
.vuex-state-inspector
'
)
.
should
(
'
contain
'
,
'
type:"DECREMENT"
'
)
.
should
(
'
contain
'
,
'
count:1
'
)
cy
.
get
(
'
.history .entry
'
).
eq
(
5
).
should
(
'
have.class
'
,
'
inspected
'
).
should
(
'
have.class
'
,
'
active
'
)
})
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录