-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cypress test. Save filtered object in AAM. (#3436)
* Cypress test. Save filtered object in AAM. * Update cypress command * Revert changes for cypress command. Moved the test. * Splited "changeWorkspace" and "changeLabelAAM" commands.
- Loading branch information
1 parent
c58e915
commit 1faa9b1
Showing
8 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
tests/cypress/integration/actions_objects/case_99_save_filtered_object_in_AAM.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
/// <reference types="cypress" /> | ||
|
||
import { labelName, taskName } from '../../support/const'; | ||
|
||
context('Save filtered object in AAM.', () => { | ||
const caseId = '99'; | ||
const newLabelName = `New label for case ${caseId}`; | ||
const createCuboidShape2Points = { | ||
points: 'From rectangle', | ||
type: 'Shape', | ||
labelName: labelName, | ||
firstX: 250, | ||
firstY: 350, | ||
secondX: 350, | ||
secondY: 450, | ||
}; | ||
|
||
before(() => { | ||
cy.openTask(taskName); | ||
cy.addNewLabel(newLabelName); | ||
cy.openJob(); | ||
cy.createCuboid(createCuboidShape2Points); | ||
}); | ||
|
||
describe(`Testing case "${caseId}"`, () => { | ||
it(`Set filter label == “${labelName}”.`, () => { | ||
cy.addFiltersRule(0); | ||
cy.setFilter({ | ||
groupIndex: 0, | ||
ruleIndex: 0, | ||
field: 'Label', | ||
operator: '==', | ||
value: labelName, | ||
submit: true, | ||
}); | ||
}); | ||
|
||
it(`Go to AAM and change a label for the shape. Save the changes. UI is not failed.`, () => { | ||
cy.changeWorkspace('Attribute annotation'); | ||
cy.changeLabelAAM(newLabelName); | ||
cy.saveJob(); | ||
cy.get('#cvat_canvas_shape_1').should('not.exist'); | ||
cy.get('.attribute-annotations-sidebar-not-found-wrapper').should('exist'); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters