Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
b441e0a6
C
Cvat
项目概览
疯人忠
/
Cvat
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cvat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b441e0a6
编写于
12月 02, 2020
作者:
K
Kruchinin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Some fix
上级
3aa520a3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
18 deletion
+12
-18
tests/cypress/integration/actions_tasks_objects/case_13_merge_split_features.js
...ion/actions_tasks_objects/case_13_merge_split_features.js
+8
-14
tests/cypress/integration/actions_tasks_objects/issue_2485_navigation_empty_frames.js
...tions_tasks_objects/issue_2485_navigation_empty_frames.js
+4
-4
未找到文件。
tests/cypress/integration/actions_tasks_objects/case_13_merge_split_features.js
浏览文件 @
b441e0a6
...
...
@@ -35,15 +35,9 @@ context('Merge/split features', () => {
cy
.
openTaskJob
(
taskName
);
});
function
goCheckFrameNumber
(
frameNum
)
{
cy
.
get
(
'
.cvat-player-frame-selector
'
).
within
(()
=>
{
cy
.
get
(
'
input[role="spinbutton"]
'
).
clear
().
type
(
`
${
frameNum
}
{Enter}`
).
should
(
'
have.value
'
,
frameNum
);
});
}
describe
(
`Testing case "
${
caseId
}
"`
,
()
=>
{
it
(
'
Create rectangle shape on first frame
'
,
()
=>
{
goCheckFrameNumber
(
frameNum
);
cy
.
goCheckFrameNumber
(
frameNum
);
cy
.
createRectangle
(
createRectangleShape2Points
);
cy
.
get
(
'
#cvat_canvas_shape_1
'
)
.
should
(
'
have.attr
'
,
'
x
'
)
...
...
@@ -52,7 +46,7 @@ context('Merge/split features', () => {
});
});
it
(
'
Create rectangle shape on third frame with another position
'
,
()
=>
{
goCheckFrameNumber
(
frameNum
+
2
);
cy
.
goCheckFrameNumber
(
frameNum
+
2
);
cy
.
createRectangle
(
createRectangleShape2PointsSecond
);
cy
.
get
(
'
#cvat_canvas_shape_2
'
)
.
should
(
'
have.attr
'
,
'
x
'
)
...
...
@@ -63,7 +57,7 @@ context('Merge/split features', () => {
it
(
'
Merge the objects with "Merge button"
'
,
()
=>
{
cy
.
get
(
'
.cvat-merge-control
'
).
click
();
cy
.
get
(
'
#cvat_canvas_shape_2
'
).
click
();
goCheckFrameNumber
(
frameNum
);
cy
.
goCheckFrameNumber
(
frameNum
);
cy
.
get
(
'
#cvat_canvas_shape_1
'
).
click
();
cy
.
get
(
'
.cvat-merge-control
'
).
click
();
});
...
...
@@ -75,7 +69,7 @@ context('Merge/split features', () => {
.
within
(()
=>
{
cy
.
get
(
'
.cvat-object-item-button-keyframe-enabled
'
).
should
(
'
exist
'
);
});
goCheckFrameNumber
(
frameNum
+
2
);
cy
.
goCheckFrameNumber
(
frameNum
+
2
);
cy
.
get
(
'
#cvat_canvas_shape_3
'
).
should
(
'
exist
'
).
and
(
'
be.visible
'
);
cy
.
get
(
'
#cvat-objects-sidebar-state-item-3
'
)
.
should
(
'
contain
'
,
'
3
'
)
...
...
@@ -85,13 +79,13 @@ context('Merge/split features', () => {
});
});
it
(
'
On the second frame and on the fourth frame the track is invisible
'
,
()
=>
{
goCheckFrameNumber
(
frameNum
+
1
);
cy
.
goCheckFrameNumber
(
frameNum
+
1
);
cy
.
get
(
'
#cvat_canvas_shape_3
'
).
should
(
'
exist
'
).
and
(
'
be.hidden
'
);
goCheckFrameNumber
(
frameNum
+
3
);
cy
.
goCheckFrameNumber
(
frameNum
+
3
);
cy
.
get
(
'
#cvat_canvas_shape_3
'
).
should
(
'
exist
'
).
and
(
'
be.hidden
'
);
});
it
(
'
Go to the second frame and remove "outside" flag from the track. The track now visible.
'
,
()
=>
{
goCheckFrameNumber
(
frameNum
+
1
);
cy
.
goCheckFrameNumber
(
frameNum
+
1
);
cy
.
get
(
'
#cvat-objects-sidebar-state-item-3
'
)
.
should
(
'
contain
'
,
'
3
'
)
.
and
(
'
contain
'
,
'
RECTANGLE TRACK
'
)
...
...
@@ -120,7 +114,7 @@ context('Merge/split features', () => {
});
});
it
(
'
On the fourth frame remove "keyframe" flag from the track. The track now visible and "outside" flag is disabled.
'
,
()
=>
{
goCheckFrameNumber
(
frameNum
+
3
);
cy
.
goCheckFrameNumber
(
frameNum
+
3
);
cy
.
get
(
'
#cvat-objects-sidebar-state-item-3
'
)
.
should
(
'
contain
'
,
'
3
'
)
.
and
(
'
contain
'
,
'
RECTANGLE TRACK
'
)
...
...
tests/cypress/integration/actions_tasks_objects/issue_2485_navigation_empty_frames.js
浏览文件 @
b441e0a6
...
...
@@ -53,7 +53,7 @@ context('Navigation to empty frames', () => {
it
(
"
Press go previous with a filter. CVAT get 2nd frame. Press again. Frame wasn't changed.
"
,
()
=>
{
for
(
let
i
=
1
;
i
<=
2
;
i
++
)
{
cy
.
get
(
'
.cvat-player-previous-button-filtered
'
).
click
({
force
:
true
});
cy
.
checkFrameNum
ber
(
2
);
cy
.
checkFrameNum
(
2
);
cy
.
get
(
'
#cvat_canvas_shape_1
'
).
should
(
'
exist
'
);
}
});
...
...
@@ -61,7 +61,7 @@ context('Navigation to empty frames', () => {
it
(
"
Press go next with a filter. CVAT get 4th frame. Press again. Frame wasn't changed.
"
,
()
=>
{
for
(
let
i
=
1
;
i
<=
2
;
i
++
)
{
cy
.
get
(
'
.cvat-player-next-button-filtered
'
).
click
({
force
:
true
});
cy
.
checkFrameNum
ber
(
4
);
cy
.
checkFrameNum
(
4
);
cy
.
get
(
'
#cvat_canvas_shape_2
'
).
should
(
'
exist
'
);
}
});
...
...
@@ -75,13 +75,13 @@ context('Navigation to empty frames', () => {
it
(
'
Go previous to an empty frame. CVAT get 3rd frame.
'
,
()
=>
{
cy
.
get
(
'
.cvat-player-previous-button-empty
'
).
click
({
force
:
true
});
cy
.
checkFrameNum
ber
(
3
);
cy
.
checkFrameNum
(
3
);
cy
.
get
(
'
.cvat_canvas_shape
'
).
should
(
'
not.exist
'
);
});
it
(
'
Go next to an empty frame. CVAT get 5th frame.
'
,
()
=>
{
cy
.
get
(
'
.cvat-player-next-button-empty
'
).
click
({
force
:
true
});
cy
.
checkFrameNum
ber
(
5
);
cy
.
checkFrameNum
(
5
);
cy
.
get
(
'
.cvat_canvas_shape
'
).
should
(
'
not.exist
'
);
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录