Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
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
RocketChat
Rocket.Chat
Commits
a2194128
Unverified
Commit
a2194128
authored
4 months ago
by
Martin Schoeler
Committed by
GitHub
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
test: fix flaky omnichannel-units tests (#33790)
parent
e15ba7eb
No related branches found
Branches containing commit
Tags
6.0.0-rc.10
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/meteor/tests/e2e/omnichannel/omnichannel-units.spec.ts
+9
-14
9 additions, 14 deletions
apps/meteor/tests/e2e/omnichannel/omnichannel-units.spec.ts
with
9 additions
and
14 deletions
apps/meteor/tests/e2e/omnichannel/omnichannel-units.spec.ts
+
9
−
14
View file @
a2194128
...
...
@@ -75,10 +75,8 @@ test.describe('OC - Manage Units', () => {
await
poOmnichannelUnits
.
btnSave
.
click
();
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
();
await
test
.
step
(
'
expect unit to have been created
'
,
async
()
=>
{
await
poOmnichannelUnits
.
search
(
unitName
);
await
expect
(
poOmnichannelUnits
.
findRowByName
(
unitName
)).
toBeVisible
();
});
await
poOmnichannelUnits
.
search
(
unitName
);
await
expect
(
poOmnichannelUnits
.
findRowByName
(
unitName
)).
toBeVisible
();
});
await
test
.
step
(
'
expect to delete unit
'
,
async
()
=>
{
...
...
@@ -114,9 +112,7 @@ test.describe('OC - Manage Units', () => {
await
expect
(
poOmnichannelUnits
.
contextualBar
).
toBeVisible
();
await
poOmnichannelUnits
.
inputName
.
fill
(
editedUnitName
);
await
poOmnichannelUnits
.
btnSave
.
click
();
});
await
test
.
step
(
'
expect unit to have been edited
'
,
async
()
=>
{
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
();
await
expect
(
poOmnichannelUnits
.
inputSearch
).
toBeVisible
();
await
poOmnichannelUnits
.
search
(
editedUnitName
);
await
expect
(
poOmnichannelUnits
.
findRowByName
(
editedUnitName
)).
toBeVisible
();
...
...
@@ -126,9 +122,8 @@ test.describe('OC - Manage Units', () => {
await
poOmnichannelUnits
.
findRowByName
(
editedUnitName
).
click
();
await
poOmnichannelUnits
.
selectMonitor
(
'
user3
'
);
await
poOmnichannelUnits
.
btnSave
.
click
();
}
);
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
(
);
await
test
.
step
(
'
expect unit to have been edited with 2 monitors
'
,
async
()
=>
{
await
poOmnichannelUnits
.
search
(
editedUnitName
);
await
poOmnichannelUnits
.
findRowByName
(
editedUnitName
).
click
();
...
...
@@ -141,6 +136,7 @@ test.describe('OC - Manage Units', () => {
await
poOmnichannelUnits
.
findRowByName
(
editedUnitName
).
click
();
await
poOmnichannelUnits
.
selectMonitor
(
'
user2
'
);
await
poOmnichannelUnits
.
btnSave
.
click
();
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
();
await
poOmnichannelUnits
.
search
(
editedUnitName
);
await
poOmnichannelUnits
.
findRowByName
(
editedUnitName
).
click
();
...
...
@@ -160,6 +156,7 @@ test.describe('OC - Manage Units', () => {
});
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
();
await
expect
(
poOmnichannelUnits
.
findRowByName
(
editedUnitName
)).
not
.
toBeVisible
();
});
});
...
...
@@ -183,9 +180,8 @@ test.describe('OC - Manage Units', () => {
await
expect
(
poOmnichannelUnits
.
contextualBar
).
toBeVisible
();
await
poOmnichannelUnits
.
selectDepartment
({
name
:
department2
.
data
.
name
,
_id
:
department2
.
data
.
_id
});
await
poOmnichannelUnits
.
btnSave
.
click
();
}
);
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
(
);
await
test
.
step
(
'
expect department to be in the chosen departments list and have title
'
,
async
()
=>
{
await
poOmnichannelUnits
.
search
(
unit
.
name
);
await
poOmnichannelUnits
.
findRowByName
(
unit
.
name
).
click
();
await
expect
(
poOmnichannelUnits
.
contextualBar
).
toBeVisible
();
...
...
@@ -201,11 +197,9 @@ test.describe('OC - Manage Units', () => {
await
poOmnichannelUnits
.
findRowByName
(
unit
.
name
).
click
();
await
expect
(
poOmnichannelUnits
.
contextualBar
).
toBeVisible
();
await
poOmnichannelUnits
.
selectDepartment
({
name
:
department2
.
data
.
name
,
_id
:
department2
.
data
.
_id
});
await
poOmnichannelUnits
.
selectMonitor
(
'
user2
'
);
await
poOmnichannelUnits
.
btnSave
.
click
();
}
);
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
(
);
await
test
.
step
(
'
expect department to not be in the chosen departments list
'
,
async
()
=>
{
await
poOmnichannelUnits
.
search
(
unit
.
name
);
await
poOmnichannelUnits
.
findRowByName
(
unit
.
name
).
click
();
await
expect
(
poOmnichannelUnits
.
contextualBar
).
toBeVisible
();
...
...
@@ -224,6 +218,7 @@ test.describe('OC - Manage Units', () => {
});
await
expect
(
poOmnichannelUnits
.
contextualBar
).
not
.
toBeVisible
();
await
expect
(
poOmnichannelUnits
.
findRowByName
(
unit
.
name
)).
not
.
toBeVisible
();
});
});
});
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