Commit Graph

38 Commits

Author SHA1 Message Date
Phil Hughes 3bdd7ff427 Merge branch 'winh-jest-console' into 'master'
Provide custom Jest environment with mocked console

Closes #58203

See merge request gitlab-org/gitlab-ce!26577
2019-03-27 08:37:25 +00:00
Winnie Hellmann fbe1f8b4cb Provide custom Jest environment with mocked console 2019-03-26 20:49:05 +01:00
Winnie Hellmann f9f5ebc2ac Add jest-environment-jsdom and jest-util dependencies 2019-03-26 20:48:34 +01:00
Phil Hughes 9137dea187 Merge branch '54916-extended-tooltip-for-merge-request-links' into 'master'
Resolve "Extended tooltip for merge request links"

Closes #54916

See merge request gitlab-org/gitlab-ce!25221
2019-03-26 08:58:37 +00:00
Winnie Hellmann 514ee63826 Move some tests from Karma to Jest 2019-03-23 17:53:46 +01:00
Winnie Hellmann 6d330015df Copy vue_mount_component_helper.js to Jest 2019-03-23 17:53:42 +01:00
Kushal Pandya 5765c5989a Merge branch 'winh-jest-time' into 'master'
Mock and wait for timers in Jest

Closes #56056

See merge request gitlab-org/gitlab-ce!26433
2019-03-22 07:24:40 +00:00
Kushal Pandya 9618f419f2 Merge branch 'winh-toggle-comment-draft' into 'master'
Display draft when toggling replies

Closes #48211 and #56364

See merge request gitlab-org/gitlab-ce!25563
2019-03-22 07:18:42 +00:00
Winnie Hellmann fcf64da04b Delete dummy test 2019-03-21 18:05:59 +01:00
Winnie Hellmann d1251b42a0 Wait for pending timers in Jest 2019-03-21 18:05:21 +01:00
Winnie Hellmann 202e9ae88b Add dummy test with setTimeout() 2019-03-21 18:02:17 +01:00
Sam Bigelow 1a14e5230e Add merge request popover with details
- Show pipeline status, title, MR Status and project path
- Popover attached to gitlab flavored markdown everywhere, including:
  + MR/Issue Title
  + MR/Issue description
  + MR/Issue comments
  + Rendered markdown files
2019-03-21 10:24:18 -04:00
Kushal Pandya 5dc56f83b3 Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'
Move gfm_autocomplete_spec.rb out of quarantine

Closes #57995 and #56843

See merge request gitlab-org/gitlab-ce!25958
2019-03-20 08:49:06 +00:00
Mike Greiling 7f3719f328 Prefer node_modules At.js and jquery.carat versions
Remove references to the vendored copies of At.js and jquery.carat
as well as the legacy rails wrapper gem.
2019-03-13 14:02:19 +00:00
Winnie Hellmann c75da766ae Add autosave utilities 2019-03-12 12:03:30 +01:00
Winnie Hellmann af3307f7b4 Add getJSONFixture() helper to Jest 2019-03-11 14:55:18 +01:00
Winnie Hellmann aeffdd2acd Increase timeout for gfm_auto_complete_spec.js 2019-03-11 11:30:19 +01:00
Phil Hughes 9ff9047402 Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'
Move gfm_autocomplete_spec.rb out of quarantine

Closes #57995 and #56843

See merge request gitlab-org/gitlab-ce!25542

(cherry picked from commit 2dcbc0fa56)
2019-03-11 11:20:27 +01:00
Winnie Hellmann f066683071
Add setTestTimeout for Jest tests
Allows contributors to set the timeout
for individual jest tests.
2019-03-08 16:21:10 +00:00
Winnie Hellmann 55f76ce8f6 Revert "Merge branch 'winh-dequarantine-labels-autocomplete' into 'master'"
This reverts merge request !25542
2019-03-05 11:02:00 +00:00
Winnie Hellmann f524dff3e9 Add tests for labels dropdown to gfm_auto_complete_spec.js 2019-02-27 09:08:41 +01:00
Phil Hughes 224417e2b4 Added GraphQL Jest transform 2019-02-26 12:26:15 +00:00
Kushal Pandya a40bb1e8ec Merge branch 'winh-jest-gfm_auto_complete_spec' into 'master'
Move gfm_auto_complete_spec.js to Jest

See merge request gitlab-org/gitlab-ce!25463
2019-02-22 10:06:06 +00:00
Winnie Hellmann f3006b6a1e Move gfm_auto_complete_spec.js to Jest 2019-02-21 14:26:27 +01:00
Winnie Hellmann db735b66a0 Add snapshot test to discussion_jump_to_next_button_spec.js 2019-02-21 11:02:32 +01:00
Winnie Hellmann fd87496971 Remove localVue from discussion_jump_to_next_button_spec.js 2019-02-21 11:02:32 +01:00
Winnie Hellmann 8d74aab428 Load i18n Vue plugin for Jest tests 2019-02-21 11:02:31 +01:00
Winnie Hellmann 0e619d01b0 Move discussion_jump_to_next_button_spec.js to Jest 2019-02-21 10:53:00 +01:00
Winnie Hellmann 13bb3483d8 Fail tests for unmocked axios requests 2019-02-21 09:39:59 +01:00
Winnie Hellmann 69f9ec77c2 Move ajax_cache_spec.js to Jest 2019-02-21 09:39:59 +01:00
Phil Hughes 12edecd002
Add headers to files in the tree list on merge requests
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54807
2019-01-08 09:31:23 +00:00
Winnie Hellmann 3feab0a6a3 Delete dummy spec 2018-12-11 15:03:59 +01:00
Winnie Hellmann d0d776b69d Move timeline_entry_item_spec.js to Jest 2018-12-11 15:03:59 +01:00
Winnie Hellmann 6356862630 Set timeout for Jest to 300ms 2018-12-11 13:06:19 +01:00
Winnie Hellmann fac4d54f3d Fail long running tests 2018-12-11 13:06:19 +01:00
Winnie Hellmann ca3603de56 Move jest.config.js to root directory 2018-12-11 13:06:19 +01:00
Winnie Hellmann 5c4cf3b3a3 Move emoji_menu_spec.js to Jest 2018-12-11 13:06:19 +01:00
Winnie Hellmann a8a13d3259 Setup Jest test environment 2018-12-05 09:24:42 +01:00