-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 test. Settings player step. #2539
Cypress test. Settings player step. #2539
Conversation
@DmitriyOparin Please recheck the test for the current develop branch. |
Recheck of test is success for the current develop branch. |
|
||
describe(`Testing case "${caseId}"`, () => { | ||
it('Change player step ', () => { | ||
changePlayerStep(); |
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.
What is reason to make a separated function here? The code is used only here as I can see.
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.
I thought this function will be use in several steps. It changed now.
// get and save current step | ||
cy.get('.cvat-player-frame-selector').within(() => { | ||
cy.get('[role="spinbutton"]') | ||
.should('have.attr', 'aria-valuenow') | ||
.then((valueStepNow) => { | ||
startStep = Number(valueStepNow); | ||
}); | ||
}); |
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.
In this code you get not a current step, you get initial frame. So, I would rename "startStep" to "initialFrame" or "startFrame"
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.
Thanks. Variable renamed.
Cypress test. Settings player step.
Motivation and context
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.