Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e5adec78
Commit
e5adec78
authored
Nov 11, 2020
by
Denys Mishunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed flaky IDE spec
parent
70084dd3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
spec/frontend/ide/components/ide_spec.js
spec/frontend/ide/components/ide_spec.js
+15
-15
No files found.
spec/frontend/ide/components/ide_spec.js
View file @
e5adec78
...
@@ -44,11 +44,11 @@ describe('ide component, empty repo', () => {
...
@@ -44,11 +44,11 @@ describe('ide component, empty repo', () => {
vm
.
$destroy
();
vm
.
$destroy
();
});
});
it
(
'
renders "New file" button in empty repo
'
,
done
=>
{
it
(
'
renders "New file" button in empty repo
'
,
async
()
=>
{
vm
.
$nextTick
(()
=>
{
await
waitForPromises
();
await
vm
.
$nextTick
();
expect
(
vm
.
$el
.
querySelector
(
'
.ide-empty-state button[title="New file"]
'
)).
not
.
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.ide-empty-state button[title="New file"]
'
)).
not
.
toBeNull
();
done
();
});
});
});
});
});
...
@@ -105,11 +105,11 @@ describe('ide component, non-empty repo', () => {
...
@@ -105,11 +105,11 @@ describe('ide component, non-empty repo', () => {
});
});
describe
(
'
non-existent branch
'
,
()
=>
{
describe
(
'
non-existent branch
'
,
()
=>
{
it
(
'
does not render "New file" button for non-existent branch when repo is not empty
'
,
done
=>
{
it
(
'
does not render "New file" button for non-existent branch when repo is not empty
'
,
async
()
=>
{
vm
.
$nextTick
(()
=>
{
await
waitForPromises
();
await
vm
.
$nextTick
();
expect
(
vm
.
$el
.
querySelector
(
'
.ide-empty-state button[title="New file"]
'
)).
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.ide-empty-state button[title="New file"]
'
)).
toBeNull
();
done
();
});
});
});
});
});
...
@@ -118,11 +118,11 @@ describe('ide component, non-empty repo', () => {
...
@@ -118,11 +118,11 @@ describe('ide component, non-empty repo', () => {
store
.
state
.
trees
[
'
abcproject/master
'
].
tree
=
[
file
()];
store
.
state
.
trees
[
'
abcproject/master
'
].
tree
=
[
file
()];
});
});
it
(
'
does not render "New file" button
'
,
done
=>
{
it
(
'
does not render "New file" button
'
,
async
()
=>
{
vm
.
$nextTick
(()
=>
{
await
waitForPromises
();
await
vm
.
$nextTick
();
expect
(
vm
.
$el
.
querySelector
(
'
.ide-empty-state button[title="New file"]
'
)).
toBeNull
();
expect
(
vm
.
$el
.
querySelector
(
'
.ide-empty-state button[title="New file"]
'
)).
toBeNull
();
done
();
});
});
});
});
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment