22 Commits (86a0d51430fa090b855c196797c14d877492e59b)

Author SHA1 Message Date
Kirill Lakhov e60127001c
Upgrade Cypress to 12.x (#5681)
<!-- Raise an issue to propose your change
(https://github.com/opencv/cvat/issues).
It helps to avoid duplication of efforts from multiple independent
contributors.
Discuss your ideas with maintainers to be sure that changes will be
approved and merged.
Read the [Contribution
guide](https://opencv.github.io/cvat/docs/contributing/). -->

<!-- Provide a general summary of your changes in the Title above -->

### Motivation and context
<!-- Why is this change required? What problem does it solve? If it
fixes an open
issue, please link to the issue here. Describe your changes in detail,
add
screenshots. -->

### How has this been tested?
<!-- Please describe in detail how you tested your changes.
Include details of your testing environment, and the tests you ran to
see how your change affects other areas of the code, etc. -->

### Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply.
If an item isn't applicable for some reason, then ~~explicitly
strikethrough~~ the whole
line. If you don't do that, GitHub will show incorrect progress for the
pull request.
If you're unsure about any of these, don't hesitate to ask. We're here
to help! -->
- [ ] I submit my changes into the `develop` branch
- [ ] I have added a description of my changes into the
[CHANGELOG](https://github.com/opencv/cvat/blob/develop/CHANGELOG.md)
file
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [ ] I have linked related issues (see [GitHub docs](

https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword))
- [ ] I have increased versions of npm packages if it is necessary

([cvat-canvas](https://github.com/opencv/cvat/tree/develop/cvat-canvas#versioning),

[cvat-core](https://github.com/opencv/cvat/tree/develop/cvat-core#versioning),

[cvat-data](https://github.com/opencv/cvat/tree/develop/cvat-data#versioning)
and

[cvat-ui](https://github.com/opencv/cvat/tree/develop/cvat-ui#versioning))

### License

- [ ] I submit _my code changes_ under the same [MIT License](
https://github.com/opencv/cvat/blob/develop/LICENSE) that covers the
project.
  Feel free to contact the maintainers if that's a concern.
3 years ago
Boris Sekachev 8ebdf5db93
Fixed eslint config (#131)
* Fixed eslint config

* Updated yarn.lock
4 years ago
Kirill Sizov 2240b3f4aa
Replace npm with yarn (#113)
* package.json: private true

* delete package-lock.json

* cvat-core/package.json: fix path for cvat-data

* replace npm with yarn

* replace npm with yarn

* add yarn.lock files

* replace npm with yarn

* remark: replace npm with yarn

* fixes

* fixes

* alligment

* workflows: replace npm with yarn

* revert husky version

* replace npm with yarn on ci image

* add yarn for ci image

* enable debug mode for main workflow

* debug mode

* v0.0.0

* resolve dependencies issues

* update docs

* exit debug mode

* add yarn.lock to the ui image

* fix three version

* resolve conflicts

* [no ci] use yarn instead of npm

* fix src path
4 years ago
Kirill Sizov 2db5bcf7b0
CI: refactor cache, add coverage for CI-nightly (#79) 4 years ago
Boris Sekachev ebd04aa4de
Fixed built, improved testing system (#43)
Fixed nightly built, reworked closing platform notification, updated cypress, fixed vulnerabilities in tests/
4 years ago
Dmitry Kruchinin 5e43171486
Cypress tests. Paste labels to another task/project. (#4236)
* Start writing the test

* Rename the test

* Update the test. Added a cypress plugin

* Added comment

* Change the comment

* Started writing the test for paste labels from another task

* Added classes

* Update command

* Renamed fine name. Added test for task
4 years ago
Dmitry Kruchinin f9e10ff059
Update antd to 4.17.0. Fix the tests. (#4188)
* fix: cvat-ui/package.json & cvat-ui/package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-ASYNCVALIDATOR-2311201

* Fix case 69

* Fix case 51

* Fix case 53

* Tests reworked, fixed

* Removed cypress plugin

* Fix support/index.js

* Update support/index.js

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: dvkruchinin <dvkruchinin@gmail.com>
4 years ago
Dmitry Kruchinin 130b815f61
Cypress. Update the test for check issue 3810. (#3900)
* Add command for unpack zip

* Test adaptation

* Tests adaptation for tasks

* Fix ESLint issue for tests.

* Fix ESLint issue for cypress support/plugins

* Added tests folder to workspaces. Ignore Eslint isuue

* Fix deletingRegisteredUsers

* Update test for checking issue 3810

* Applying comments

* Removing tests from package.json workspaces.

* Adding nmp ci for tests folder

Co-authored-by: dvkruchinin <dvkruchinin@gmail.com>
4 years ago
Boris Sekachev 7bab58e1a6
Added rotated bounding boxes (#3832)
Co-authored-by: Maxim Zhiltsov <maxim.zhiltsov@intel.com>
4 years ago
Dmitry Kruchinin 5af103ee08
Migration to the latest version of Cypress (#3667)
* Updated packages. Adapt main.yml.

* Apdated function

* Test adaptations.

* Disable test for issue 1823
4 years ago
Dmitry Kruchinin b7f8e8dd83
Build CVAT with models support. Adding cypress test to check models page. (#3369)
* Try add model support to CVAT build

* Added a test. Run test from different job.

* Change context

* Moved models test to project actions.

Configs adaptations.
Checking nightly

* Moved canvas 3d tests to different cypress config

Updated publish_docker_images.yml

* Removed models from matrix

* check tests on publish workflow

* Rework publish yml

* fix build, up -d

* Removed unnecessary line
5 years ago
Dmitry Kruchinin df175a8561
Cypress test. Filters, sorting jobs. Tooltip search task filter. (#3053)
* Add scc classes

* Rework cypress command

* Update test to check task search tooltip

* Cypress test. Job filter, sorting feature.

* Fix eslint

* Update cypress/code-coverage version

* Replace comments

* small fix

* Restart CI

* Applying comments

* Fix typo
5 years ago
Dmitry Kruchinin 0d99bec0cd
Cypress test. Dump/Upload annotation. (#2771)
* Add css classes.

* Add some functions for test

* Cypress test. Dump/Upload annotation.

* Increase Cypress version to 6.4.0

* Added css classes for projects

* Replace dowloadFolder parameter

* Commands adaptation to 6.4.0

* Tests adaptation

* Additional changes related to migration to 6.4.0

* some fix

* Update cvat-ui/src/components/project-page/details.tsx

Co-authored-by: Boris Sekachev <boris.sekachev@intel.com>

* Update cvat-ui/src/components/project-page/details.tsx

Co-authored-by: Boris Sekachev <boris.sekachev@intel.com>

* Apply comment

Co-authored-by: Boris Sekachev <boris.sekachev@intel.com>
5 years ago
Dmitry Kruchinin 98d7c4d54d
Cypress test. Show attached files when creating task. (#2734)
* Cypress test. Displaying attached files when creating a task.

* Update Cypress plugin "cypress-file-upload".

* Apply comments.
5 years ago
Dmitry Kruchinin 2c88e2ddb5
Cypress test. Drawing with predefined number points. (#2583)
* Cypress test. Drawing with predefined number of points.

* Updated version.

* Fix typo

* Add css class for modal window.

Rework cypress command for remove annotation.

Co-authored-by: Kruchinin <dmitryx.kruchinin@intel.com>
5 years ago
Dmitry Kruchinin 1398bd3390
Cypress test. Group color feature. (#2589)
Co-authored-by: Kruchinin <dmitryx.kruchinin@intel.com>
5 years ago
Kruchinin 57833e2030 Rework test suite for CI. 5 years ago
Dmitry Kruchinin 70e89d6f83
The change in the measurement of CVAT-UI code coverage. (#2295)
* The change in the measurement of CVAT-UI code coverage.

* Firefox to cron without coverage.

PR, push coverage via Chrome.

* Refactoring .travis.yml.

Added a wait of 10 seconds in the first test to prevent a login error in CVAT after rebuilding containers after code instrumentation.

Co-authored-by: Kruchinin <dmitryx.kruchinin@intel.com>
5 years ago
Dmitry Kruchinin e7cf157936
CVAT-UI: measure coverage. (#2196)
* Try measure coverage

* Return first logic to runing a tests and measure coverage.

* Prepare to measure coverage.

Temporary disable run Cypress test via Firefox.

* Disable creating nyc output before implementing the coverage measurement.

* Change plugin for nyc to babel.

Add to eclude folders:
3rdparty
tests

Disable run test via Firefox.

* Update travis.yaml

Co-authored-by: Dmitry Kruchinin <dmitryx.kruchinin@intel.com>
5 years ago
Dmitry Kruchinin ab3fac5d93
Cypress test for issue 1438. (#2113)
Co-authored-by: Dmitry Kruchinin <dmitryx.kruchinin@intel.com>
6 years ago
Dmitry Kruchinin ec8ebc7473
Cupress test for issue 1785 (#2018)
* Cupress test for issue 1785

Add test.
Add functionality for create zip archive with images.
Update package.json, package-lock.json.

* Applying comments.

Code refactoring.

* Applying comments.

* Reworking commands to search for elements by new classes

* Return Promise from imageGenerator function.

Remove wait() after image generation.

* Replace "throw" to "reject" in the "imageGenerator" function.

Co-authored-by: Dmitry Kruchinin <dmitryx.kruchinin@intel.com>
6 years ago
Dmitry Kruchinin ca4b320d23
Preparation for testing. Add tests for issue 1599. (#1983)
* Automate test preparation(mandatory operations for each test cases)

- Add test for creating an annotation task.
- Add automate for creating superuser.

* Add tests for issue 1599.

* Run Cypress from Travis CI.

Remove Cypress installation command from Dockerfile.ci
Remove the unnecessary docker-compose.ci.yml

* Replase image for creation an annotation task.

Change name of imsge in the Cypress test create_new_task.js

* Temporarily deleting the annotation task creation functionality

* Image generarion functionality

Add Cypress module for auto generation images
Add package files.

* Add custome commands for create an annotation task and a shape.

* Applying comments.

* /tasks instead of /task in the tests (applying comments)

Co-authored-by: Dmitry Kruchinin <dmitryx.kruchinin@intel.com>
6 years ago