used function saveJob

main
Dmitriy Oparin 5 years ago
parent 52b517171a
commit 05e2d4b948

@ -18,17 +18,13 @@ context('Dump annotation if cuboid created', () => {
secondY: 450,
};
function save() {
cy.get('button').contains('Save').click({ force: true });
}
before(() => {
cy.openTaskJob(taskName);
});
after('Go to task list', () => {
cy.removeAnnotations();
save();
cy.saveJob();
});
describe(`Testing issue "${issueId}"`, () => {
@ -38,7 +34,7 @@ context('Dump annotation if cuboid created', () => {
});
it('Dump an annotation', () => {
cy.get('.cvat-annotation-header-left-group').within(() => {
save();
cy.saveJob();
cy.get('button').contains('Menu').trigger('mouseover', { force: true });
});
cy.get('.cvat-annotation-menu').within(() => {

Loading…
Cancel
Save