Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ewoksweb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
workflow
ewoks
ewoksweb
Commits
fcc6fbea
Commit
fcc6fbea
authored
1 year ago
by
Giannis Koumoutsos
Browse files
Options
Downloads
Patches
Plain Diff
added tests for general nodes
parent
f4e741e0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!393
Move General tasks and icons to the frontend
Pipeline
#137371
passed
1 year ago
Stage: test
Stage: style
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cypress/e2e/addNodeRightSidebar/generalNodes.cy.ts
+28
-0
28 additions, 0 deletions
cypress/e2e/addNodeRightSidebar/generalNodes.cy.ts
src/edition/TaskDrawer/AddNoteButton.tsx
+2
-2
2 additions, 2 deletions
src/edition/TaskDrawer/AddNoteButton.tsx
with
30 additions
and
2 deletions
cypress/e2e/addNodeRightSidebar/generalNodes.cy.ts
0 → 100644
+
28
−
0
View file @
fcc6fbea
before
(()
=>
{
cy
.
loadAppWithoutGraph
();
});
it
(
'
should display the General category
'
,
()
=>
{
cy
.
findByRole
(
'
button
'
,
{
name
:
'
General
'
}).
should
(
'
be.visible
'
);
});
it
(
'
General should contain the appropriete Nodes
'
,
()
=>
{
cy
.
findByRole
(
'
button
'
,
{
name
:
'
General
'
}).
click
();
cy
.
findByRole
(
'
button
'
,
{
name
:
'
graphInput
'
}).
should
(
'
be.visible
'
);
cy
.
findByRole
(
'
button
'
,
{
name
:
'
graphOutput
'
}).
should
(
'
be.visible
'
);
cy
.
findByRole
(
'
button
'
,
{
name
:
'
taskSkeleton
'
}).
should
(
'
be.visible
'
);
cy
.
findByRole
(
'
button
'
,
{
name
:
'
note
'
}).
should
(
'
be.visible
'
);
cy
.
findByRole
(
'
button
'
,
{
name
:
'
subworkflow
'
}).
should
(
'
be.visible
'
);
});
it
(
'
General nodes should not be editable
'
,
()
=>
{
cy
.
findByRole
(
'
button
'
,
{
name
:
'
graphInput
'
}).
click
();
cy
.
findByRole
(
'
button
'
,
{
name
:
'
Clone task
'
}).
should
(
'
not.exist
'
);
});
it
(
'
General nodes should not be draggable to the canvas
'
,
()
=>
{
cy
.
dragNodeInCanvas
(
'
graphInput
'
);
cy
.
get
(
'
.react-flow__node
'
).
should
(
'
be.visible
'
);
cy
.
get
(
'
[data-cy="task_props"]
'
).
should
(
'
not.exist
'
);
});
This diff is collapsed.
Click to expand it.
src/edition/TaskDrawer/AddNoteButton.tsx
+
2
−
2
View file @
fcc6fbea
...
...
@@ -4,7 +4,7 @@ import TaskButton from './TaskButton';
import
styles
from
'
./TaskList.module.css
'
;
function
Add
General
No
d
eButton
()
{
function
AddNo
t
eButton
()
{
return
(
<
Tooltip
title
=
"Drag to the canvas to add a note node"
arrow
>
<
div
className
=
{
styles
.
item
}
>
...
...
@@ -22,4 +22,4 @@ function AddGeneralNodeButton() {
);
}
export
default
Add
General
No
d
eButton
;
export
default
AddNo
t
eButton
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment