Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
疯人忠
Cvat
提交
c7125a8f
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,发现更多精彩内容 >>
未验证
提交
c7125a8f
编写于
11月 02, 2022
作者:
B
Boris Sekachev
提交者:
GitHub
11月 02, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Tried to fix one test (#5212)
* Tried to fix one test * Fixed linter issues & cypress commands
上级
f62aa276
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
23 deletion
+24
-23
cvat-ui/src/components/annotation-page/top-bar/filters-modal.tsx
.../src/components/annotation-page/top-bar/filters-modal.tsx
+1
-0
tests/cypress/integration/actions_objects/case_36_always_show_object_details_feature.js
...ons_objects/case_36_always_show_object_details_feature.js
+2
-2
tests/cypress/integration/actions_tasks3/case_19_all_image_rotate_features.js
...ation/actions_tasks3/case_19_all_image_rotate_features.js
+5
-5
tests/cypress/integration/issues_prs2/issue_1439_blocked_object_info.js
...integration/issues_prs2/issue_1439_blocked_object_info.js
+2
-2
tests/cypress/support/commands_filters_feature.js
tests/cypress/support/commands_filters_feature.js
+14
-14
未找到文件。
cvat-ui/src/components/annotation-page/top-bar/filters-modal.tsx
浏览文件 @
c7125a8f
...
...
@@ -261,6 +261,7 @@ function FiltersModalComponent(): JSX.Element {
visible
=
{
visible
}
closable
=
{
false
}
width
=
{
800
}
destroyOnClose
centered
onCancel
=
{
()
=>
dispatch
(
showFilters
(
false
))
}
footer
=
{
[
...
...
tests/cypress/integration/actions_objects/case_36_always_show_object_details_feature.js
浏览文件 @
c7125a8f
...
...
@@ -11,7 +11,7 @@ context('Always show object details feature', () => {
const
rectangleShape2Points
=
{
points
:
'
By 2 Points
'
,
type
:
'
Shape
'
,
labelName
:
labelName
,
labelName
,
firstX
:
400
,
firstY
:
100
,
secondX
:
500
,
...
...
@@ -20,7 +20,7 @@ context('Always show object details feature', () => {
const
polygonTrack
=
{
reDraw
:
false
,
type
:
'
Track
'
,
labelName
:
labelName
,
labelName
,
pointsMap
:
[
{
x
:
400
,
y
:
300
},
{
x
:
500
,
y
:
300
},
...
...
tests/cypress/integration/actions_tasks3/case_19_all_image_rotate_features.js
浏览文件 @
c7125a8f
...
...
@@ -9,6 +9,10 @@ import { taskName } from '../../support/const';
context
(
'
Rotate all images feature.
'
,
()
=>
{
const
caseId
=
'
19
'
;
function
checkDegRotate
(
deg
)
{
cy
.
get
(
'
#cvat_canvas_background
'
).
should
(
'
have.attr
'
,
'
style
'
).
and
(
'
contain
'
,
`rotate(
${
deg
}
deg);`
);
}
function
imageRotate
(
direction
=
'
anticlockwise
'
,
deg
)
{
cy
.
get
(
'
.cvat-rotate-canvas-control
'
).
trigger
(
'
mouseover
'
);
if
(
direction
===
'
clockwise
'
)
{
...
...
@@ -19,10 +23,6 @@ context('Rotate all images feature.', () => {
checkDegRotate
(
deg
);
}
function
checkDegRotate
(
deg
)
{
cy
.
get
(
'
#cvat_canvas_background
'
).
should
(
'
have.attr
'
,
'
style
'
).
and
(
'
contain
'
,
`rotate(
${
deg
}
deg);`
);
}
function
checkFrameNum
(
frameNum
)
{
cy
.
get
(
'
.cvat-player-frame-selector
'
).
within
(()
=>
{
cy
.
get
(
'
input[role="spinbutton"]
'
).
should
(
'
have.value
'
,
frameNum
);
...
...
@@ -40,7 +40,7 @@ context('Rotate all images feature.', () => {
imageRotate
(
'
anticlockwise
'
,
270
);
});
it
(
"
Go to the next frame. It wasn't rotated.
"
,
()
=>
{
it
(
'
Go to the next frame. It wasn
\'
t rotated.
'
,
()
=>
{
cy
.
get
(
'
.cvat-player-next-button
'
).
click
();
checkFrameNum
(
1
);
checkDegRotate
(
0
);
...
...
tests/cypress/integration/issues_prs2/issue_1439_blocked_object_info.js
浏览文件 @
c7125a8f
...
...
@@ -11,7 +11,7 @@ context('Information about a blocked object disappears if hover the cursor over
const
createRectangleShape2Points
=
{
points
:
'
By 2 Points
'
,
type
:
'
Shape
'
,
labelName
:
labelName
,
labelName
,
firstX
:
250
,
firstY
:
350
,
secondX
:
350
,
...
...
@@ -20,7 +20,7 @@ context('Information about a blocked object disappears if hover the cursor over
const
createRectangleShape2PointsSecond
=
{
points
:
'
By 2 Points
'
,
type
:
'
Shape
'
,
labelName
:
labelName
,
labelName
,
firstX
:
createRectangleShape2Points
.
firstX
,
firstY
:
createRectangleShape2Points
.
firstY
-
150
,
secondX
:
createRectangleShape2Points
.
secondX
,
...
...
tests/cypress/support/commands_filters_feature.js
浏览文件 @
c7125a8f
...
...
@@ -14,7 +14,7 @@ Cypress.Commands.add('сheckFiltersModalOpened', () => {
});
Cypress
.
Commands
.
add
(
'
collectGroupID
'
,
()
=>
{
le
t
groupDataID
=
[];
cons
t
groupDataID
=
[];
cy
.
get
(
'
.group
'
).
then
((
$group
)
=>
{
for
(
let
i
=
0
;
i
<
$group
.
length
;
i
++
)
{
groupDataID
.
push
(
$group
[
i
].
dataset
.
id
);
...
...
@@ -24,7 +24,7 @@ Cypress.Commands.add('collectGroupID', () => {
});
Cypress
.
Commands
.
add
(
'
collectRuleID
'
,
()
=>
{
le
t
ruleDataID
=
[];
cons
t
ruleDataID
=
[];
cy
.
get
(
'
.rule
'
).
then
((
$rule
)
=>
{
for
(
let
i
=
0
;
i
<
$rule
.
length
;
i
++
)
{
ruleDataID
.
push
(
$rule
[
i
].
dataset
.
id
);
...
...
@@ -37,7 +37,7 @@ Cypress.Commands.add('clearFilters', () => {
cy
.
сheckFiltersModalOpened
();
cy
.
contains
(
'
button
'
,
'
Clear filters
'
).
click
();
cy
.
get
(
'
.cvat-filters-modal-visible
'
).
should
(
'
not.exist
'
);
cy
.
get
(
'
.cvat-filters-modal
'
).
should
(
'
be.hidden
'
);
cy
.
get
(
'
.cvat-filters-modal
'
).
should
(
'
not.exist
'
);
});
Cypress
.
Commands
.
add
(
'
addFiltersGroup
'
,
(
groupIndex
)
=>
{
...
...
@@ -66,7 +66,9 @@ Cypress.Commands.add('setGroupCondition', (groupIndex, condition) => {
Cypress
.
Commands
.
add
(
'
setFilter
'
,
({
groupIndex
,
ruleIndex
,
field
,
operator
,
valueSource
,
value
,
label
,
labelAttr
,
submit
})
=>
{
({
groupIndex
,
ruleIndex
,
field
,
operator
,
valueSource
,
value
,
label
,
labelAttr
,
submit
,
})
=>
{
cy
.
сheckFiltersModalOpened
();
cy
.
collectGroupID
().
then
((
groupIdIndex
)
=>
{
cy
.
collectRuleID
().
then
((
ruleIdIndex
)
=>
{
...
...
@@ -104,16 +106,14 @@ Cypress.Commands.add(
.
within
(()
=>
{
if
(
field
===
'
Attributes
'
)
{
cy
.
get
(
'
[placeholder="Enter string"]
'
).
last
().
type
(
`
${
value
}
{Enter}`
);
}
else
{
if
(
!
valueSource
)
{
if
(
field
===
'
ObjectID
'
||
field
===
'
Width
'
||
field
===
'
Height
'
)
{
cy
.
get
(
'
[placeholder="Enter number"]
'
).
type
(
`
${
value
}
{Enter}`
);
}
else
{
cy
.
get
(
'
[type="search"]
'
).
last
().
type
(
`
${
value
}
{Enter}`
);
}
}
else
if
(
!
valueSource
)
{
if
(
field
===
'
ObjectID
'
||
field
===
'
Width
'
||
field
===
'
Height
'
)
{
cy
.
get
(
'
[placeholder="Enter number"]
'
).
type
(
`
${
value
}
{Enter}`
);
}
else
{
cy
.
contains
(
'
[type="button"]
'
,
'
Select field
'
).
click
(
);
cy
.
get
(
'
[type="search"]
'
).
last
().
type
(
`
${
value
}
{Enter}`
);
}
}
else
{
cy
.
contains
(
'
[type="button"]
'
,
'
Select field
'
).
click
();
}
});
if
(
valueSource
)
{
...
...
@@ -124,7 +124,7 @@ Cypress.Commands.add(
cy
.
contains
(
'
button
'
,
'
Submit
'
).
click
();
});
cy
.
get
(
'
.cvat-filters-modal-visible
'
).
should
(
'
not.exist
'
);
cy
.
get
(
'
.cvat-filters-modal
'
).
should
(
'
be.hidden
'
);
cy
.
get
(
'
.cvat-filters-modal
'
).
should
(
'
not.exist
'
);
}
});
});
...
...
@@ -143,5 +143,5 @@ Cypress.Commands.add('selectFilterValue', (filterValue) => {
cy
.
contains
(
'
button
'
,
'
Submit
'
).
click
();
});
cy
.
get
(
'
.cvat-filters-modal-visible
'
).
should
(
'
not.exist
'
);
cy
.
get
(
'
.cvat-filters-modal
'
).
should
(
'
be.hidden
'
);
cy
.
get
(
'
.cvat-filters-modal
'
).
should
(
'
not.exist
'
);
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录