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
d3985fb0
Commit
d3985fb0
authored
Nov 15, 2020
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete duplicate balsamiq viewer tests
parent
9724b4d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
spec/javascripts/blob/balsamiq/balsamiq_viewer_browser_spec.js
...javascripts/blob/balsamiq/balsamiq_viewer_browser_spec.js
+0
-59
No files found.
spec/javascripts/blob/balsamiq/balsamiq_viewer_browser_spec.js
deleted
100644 → 0
View file @
9724b4d6
// this file can't be migrated to jest because it relies on the browser to perform integration tests:
// see: https://gitlab.com/gitlab-org/gitlab/-/issues/194207#note_301878738
import
{
FIXTURES_PATH
}
from
'
spec/test_constants
'
;
import
BalsamiqViewer
from
'
~/blob/balsamiq/balsamiq_viewer
'
;
const
bmprPath
=
`
${
FIXTURES_PATH
}
/blob/balsamiq/test.bmpr`
;
describe
(
'
Balsamiq integration spec
'
,
()
=>
{
let
container
;
let
endpoint
;
let
balsamiqViewer
;
preloadFixtures
(
'
static/balsamiq_viewer.html
'
);
beforeEach
(()
=>
{
loadFixtures
(
'
static/balsamiq_viewer.html
'
);
container
=
document
.
getElementById
(
'
js-balsamiq-viewer
'
);
balsamiqViewer
=
new
BalsamiqViewer
(
container
);
});
describe
(
'
successful response
'
,
()
=>
{
beforeEach
(
done
=>
{
endpoint
=
bmprPath
;
balsamiqViewer
.
loadFile
(
endpoint
)
.
then
(
done
)
.
catch
(
done
.
fail
);
});
it
(
'
does not show loading icon
'
,
()
=>
{
expect
(
document
.
querySelector
(
'
.loading
'
)).
toBeNull
();
});
it
(
'
renders the balsamiq previews
'
,
()
=>
{
expect
(
document
.
querySelectorAll
(
'
.previews .preview
'
).
length
).
not
.
toEqual
(
0
);
});
});
describe
(
'
error getting file
'
,
()
=>
{
beforeEach
(
done
=>
{
endpoint
=
'
invalid/path/to/file.bmpr
'
;
balsamiqViewer
.
loadFile
(
endpoint
)
.
then
(
done
.
fail
,
null
)
.
catch
(
done
);
});
it
(
'
does not show loading icon
'
,
()
=>
{
expect
(
document
.
querySelector
(
'
.loading
'
)).
toBeNull
();
});
it
(
'
does not render the balsamiq previews
'
,
()
=>
{
expect
(
document
.
querySelectorAll
(
'
.previews .preview
'
).
length
).
toEqual
(
0
);
});
});
});
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