Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress. Dummy cloud storages. #3988

Merged

Conversation

dvkruchinin
Copy link
Contributor

Motivation and context

Creating dummy cloud storages and checking their fields.
I disabled this test for Firefox due to the lack of unsupported platform module window. This can be finalized, but you will have to spend more time because most likely you will have to finalize other tests.
I also decided to split the variables with dummy parameters into 3 parts for each type of cloud storage. This was done in order to be able to check notifications when creating CS without status and preview.

How has this been tested?

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

@Marishka17 Marishka17 self-assigned this Dec 6, 2021
@Marishka17 Marishka17 self-requested a review December 6, 2021 12:29
tests/cypress/support/dummy-data.js Outdated Show resolved Hide resolved
tests/cypress/support/dummy-data.js Outdated Show resolved Hide resolved
tests/cypress/support/dummy-data.js Outdated Show resolved Hide resolved
Comment on lines +52 to +57
cy.intercept('GET', `api/v1/cloudstorages/${id}/status`, status).as('csStatus');
cy.intercept(
'GET',
`api/v1/cloudstorages/${id}/preview`,
{ fixture: `${imageFolder}/${image}` },
).as('csPreview');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to move these actions into separate commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then will have to go to the models page 2 times and back in order for the request to work.

Copy link
Contributor

@Marishka17 Marishka17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Marishka17
Copy link
Contributor

@bsekachev, Hi, could you please also take a look at this PR?

@bsekachev bsekachev merged commit e45d57b into cvat-ai:develop Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants