-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cypress. Dummy cloud storages. #3988
Conversation
…o dkru/cypress-case-109-dummy-cloud-storage
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Outdated
Show resolved
Hide resolved
…o dkru/cypress-case-109-dummy-cloud-storage
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Outdated
Show resolved
Hide resolved
cy.intercept('GET', `api/v1/cloudstorages/${id}/status`, status).as('csStatus'); | ||
cy.intercept( | ||
'GET', | ||
`api/v1/cloudstorages/${id}/preview`, | ||
{ fixture: `${imageFolder}/${image}` }, | ||
).as('csPreview'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Show resolved
Hide resolved
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Outdated
Show resolved
Hide resolved
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Outdated
Show resolved
Hide resolved
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Show resolved
Hide resolved
tests/cypress/integration/actions_tasks3/case_109_dummy_cloud_storage.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@bsekachev, Hi, could you please also take a look at this PR? |
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
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.