summaryrefslogtreecommitdiff
path: root/spec/frontend
Commit message (Collapse)AuthorAgeFilesLines
* Only use backslash escapes in autocomplete when neededmarkdown-autocomplete-escapingSean McGivern2019-04-171-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Autocompletion for references happens on the frontend. Those references are turned into actual references on the backend, but only after Markdown processing has happened. That means that if a reference contains a character that Markdown might consume, it won't render correctly. So we need to do some escaping on the frontend. We have these potential problem characters: https://docs.gitlab.com/ee/user/markdown.html#emphasis 1. ~ - this is ~~strikethrough~~, but only when doubled. 2. _ - used for _emphasis_, doubled is __bold__. 3. * - also used for *emphasis*, doubled is **bold** also. 4. ` - used for `code spans`, any number works. We don't need to escape `-` any more. When it comes to being inside a word: 1. a~~b~~ has strikethrough, so it needs to be escaped everywhere. 2. a_b_ has no emphasis (see [a]) so it only needs to be escaped at the start and end of words. 3. a*b* has emphasis, so it needs to be escaped everywhere. 4. a`b` has a code span, so it needs to be escaped everywhere. Or, in code terms: 1. Always escape ~~, *, and ` when being inserted by autocomplete. 2. Escape _ when it's either at the beginning or the end of a word. [a]: https://docs.gitlab.com/ee/user/markdown.html#multiple-underscores-in-words
* CE backport of Add Snowplow tracking to notesConstance Okoghenun2019-04-121-0/+6
| | | | | | Bacport of Snowplow tracking for - Reply comment button - Start discussion and Comment buttons
* Merge branch '60241-merge-request-popover-doesn-t-go-away-on-mouse-leave' ↵Phil Hughes2019-04-121-0/+30
|\ | | | | | | | | | | | | | | | | into 'master' Resolve "Merge Request popover doesn't go away on mouse leave" Closes #60241 See merge request gitlab-org/gitlab-ce!27143
| * Fix bug where MR Popover wont go away60241-merge-request-popover-doesn-t-go-away-on-mouse-leaveSam Bigelow2019-04-121-0/+30
| | | | | | | | Add a check to make sure eventListener is not added twice
* | Remove slugify text utilityfe-remove-slugifyPaul Slaughter2019-04-121-6/+0
|/ | | | | | **Why?** This function was not being used and it's documentation was out of date.
* Resolve CE/EE diff in text_utility_specfe-fix-ee-diff-in-text-utility-specPaul Slaughter2019-04-111-8/+6
|
* Merge branch '60398-increase-timeouts-clusters-bundle' into 'master'Phil Hughes2019-04-111-1/+1
|\ | | | | | | | | | | | | Increase clusters bundle specs timeout Closes #60398 See merge request gitlab-org/gitlab-ce!27269
| * Increase clusters bundle specs timeout60398-increase-timeouts-clusters-bundleEnrique Alcantara2019-04-111-1/+1
| |
* | Merge branch 'fixed-web-ide-merge-request-review' into 'master'Kushal Pandya2019-04-111-0/+18
|\ \ | | | | | | | | | | | | | | | | | | Fixes Web IDE not loading merge request files Closes #60243 See merge request gitlab-org/gitlab-ce!27225
| * | Fixes Web IDE not loading merge request filesPhil Hughes2019-04-111-0/+18
| |/ | | | | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60243
* | Replace individual ESLint rules with jest/recommendedwinh-eslint-jestWinnie Hellmann2019-04-101-5/+2
|/
* Wrap modal mutation names in template stringswinh-jest-valid-describeWinnie Hellmann2019-04-101-3/+3
|
* Hard code test name in timeline_entry_item_spec.jsWinnie Hellmann2019-04-101-1/+1
|
* Hard code test name in suggestion_diff_row_spec.jsWinnie Hellmann2019-04-101-1/+1
|
* Wrap import project mutation names in template stringsWinnie Hellmann2019-04-101-2/+2
|
* Wrap file template mutation names in template stringsWinnie Hellmann2019-04-101-5/+5
|
* Enable ESLint rule jest/valid-describeWinnie Hellmann2019-04-101-0/+1
|
* Merge branch 'winh-jest-no-identical-title' into 'master'Clement Ho2019-04-092-48/+46
|\ | | | | | | | | Enable ESLint rule jest/no-identical-title See merge request gitlab-org/gitlab-ce!27139
| * Refactor diff_spec.js to use table-based testswinh-jest-no-identical-titleWinnie Hellmann2019-04-081-48/+45
| |
| * Enable ESLint rule jest/no-identical-titleWinnie Hellmann2019-04-081-0/+1
| |
* | Replace jasmine.createSpy() with jest.fn()Winnie Hellmann2019-04-093-3/+3
| |
* | Run yarn eslint --fixWinnie Hellmann2019-04-094-10/+10
| |
* | Enable ESLint rule jest/no-jasmine-globalsWinnie Hellmann2019-04-091-0/+1
|/
* Enable ESLint rule jest/no-focused-testsWinnie Hellmann2019-04-082-5/+11
|
* Migrate clusters tests to jestEnrique Alcántara2019-04-085-0/+1404
| | | | | | Move cluster applications manager tests from karma to jest. Fixes some migration issues related with timeouts, and HTTP request expectations.
* Disable sync mode for serverless testsfix-karma-test-utils-master-overflowLuke Bennett2019-04-076-1/+9
| | | | Sync mode by default will soon be removed.
* Fix unmocked requests in serverless testsLuke Bennett2019-04-074-8/+16
|
* Move karma serverless tests to jest for isolationLuke Bennett2019-04-0713-0/+887
| | | | | These tests cause master failures because of an overflow in vue-test-utils sync watcher setup.
* Merge branch ↵Filipa Lacerda2019-04-051-0/+27
|\ | | | | | | | | | | | | 'ce-9262-move-project-search-bar-into-modal-dialog-on-operations-dashboard-page' into 'master' CE backport: Add reusable project_selector component See merge request gitlab-org/gitlab-ce!25036
| * Add reusable project_selector componentNathan Friend2019-04-021-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a resuable UI component that allows a user to search for a project name, shows the search results, and allows the user to select one or more projects. This component communicates with its parent using props and events. This component was originally created for use in the EE-specific "Operations Dashboard" page, but it is applicable for CE use cases as well, and so was added as a CE shared component. In addition, some logic was extracted from the frequent_items_list_item component into shared filters to avoid logic duplication.
* | Merge branch '57482-shortcut-to-create-merge-request-from-web-ide' into 'master'Phil Hughes2019-04-051-1/+17
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Shortcut to create merge request from Web IDE" Closes #57482 See merge request gitlab-org/gitlab-ce!26792
| * | Shortcut to create MR in web IDE57482-shortcut-to-create-merge-request-from-web-ideSam Bigelow2019-04-041-1/+17
| |/ | | | | | | | | | | | | | | | | Before the user had to choose between committing to a new branch, committing to a new branch AND creating an MR, or committing to the current branch regardless of whether or not it already has an MR. This commit separates the creation of an MR from whether or not they commit to an existing or new branch
* | Merge branch 'keyval-labels' into 'master'Sean McGivern2019-04-051-26/+90
|\ \ | | | | | | | | | | | | [CE] Add mutually exclusive labels See merge request gitlab-org/gitlab-ce!26804
| * | [frontend] backport of scoped labelsRajat Jain2019-04-041-26/+90
| | | | | | | | | | | | Scoped labels in EE require additional changes in CE code.
* | | Restore multiple series supportAdriel Santiago2019-04-051-0/+45
| | | | | | | | | | | | | | | Corrects an issue whereby queries which return multiple series results were not rendering as multiple data series on the metrics dashboard
* | | Dynamic vuln graph dimensionsFernando Arias2019-04-052-0/+85
| | | | | | | | | | | | | | | | | | * Fix up graph resize logic if navbar is collapsed Add snapshot
* | | Fixed test specsOswaldo Ferreira2019-04-041-0/+98
|/ / | | | | | | | | - added suggestions to mock data - fixed props to be not required
* | Merge branch 'feature/webide_escaping' of gitlab.com:hiddentiger/gitlab-ce ↵Kieran Andrews2019-04-031-8/+9
|/ | | | into feature/webide_escaping
* Merge branch 'winh-rejected-jest-promises' into 'master'Fatih Acet2019-04-012-4/+28
|\ | | | | | | | | | | | | Fail Jest tests for unhandled Promise rejections Closes #56053 See merge request gitlab-org/gitlab-ce!26424
| * Fail correct test for Promisewinh-rejected-jest-promisesWinnie Hellmann2019-03-291-4/+7
| |
| * Fail for unhandled Promise rejections in JestWinnie Hellmann2019-03-292-0/+21
| |
* | Add jQuery matchers to JestWinnie Hellmann2019-04-012-0/+208
| |
* | Merge branch 'winh-jest-html-fixtures' into 'master'Clement Ho2019-03-294-8/+91
|\ \ | | | | | | | | | | | | | | | | | | Add helpers for HTML fixtures to Jest Closes #57998 See merge request gitlab-org/gitlab-ce!26739
| * | Add Karma-style fixture helpers to Jestwinh-jest-html-fixturesWinnie Hellmann2019-03-293-2/+17
| | |
| * | Add helpers for HTML fixtures to JestWinnie Hellmann2019-03-291-6/+20
| | |
| * | Add workaround for innerText in JestWinnie Hellmann2019-03-291-0/+9
| | |
| * | Move abuse_reports_spec.js to JestWinnie Hellmann2019-03-291-0/+46
| | |
* | | Merge branch 'winh-jest-vue-tips' into 'master'Tim Zallmann2019-03-291-0/+3
|\ \ \ | |_|/ |/| | | | | | | | Disable Vue tips when running Jest See merge request gitlab-org/gitlab-ce!26717
| * | Disable Vue tips when running Jestwinh-jest-vue-tipsWinnie Hellmann2019-03-281-0/+3
| |/
* | Merge branch 'winh-jest-gon' into 'master'Filipa Lacerda2019-03-291-0/+6
|\ \ | | | | | | | | | | | | | | | | | | Set gon.ee in Jest Closes #59634 See merge request gitlab-org/gitlab-ce!26713