typos fixed in className

main
Dmitriy Oparin 5 years ago
parent e4d6eb314a
commit 0265313d56

@ -245,12 +245,12 @@ function TagAnnotationSidebar(props: StateToProps & DispatchToProps): JSX.Elemen
</Checkbox> </Checkbox>
</Col> </Col>
</Row> </Row>
<Row type='flex' justify='start' className='cvat-tag-anntation-sidebar-frame-tags'> <Row type='flex' justify='start' className='cvat-tag-annotation-sidebar-frame-tags'>
<Col> <Col>
<Text strong>Frame tags:&nbsp;</Text> <Text strong>Frame tags:&nbsp;</Text>
{frameTags.map((tag: any) => ( {frameTags.map((tag: any) => (
<Tag <Tag
className={'cvat-tag-anntation-sidebar-frame-tag-label'} className={'cvat-tag-annotation-sidebar-frame-tag-label'}
color={tag.label.color} color={tag.label.color}
onClose={() => { onClose={() => {
onRemoveState(tag); onRemoveState(tag);

@ -11,15 +11,15 @@ context('Tag annotation mode.', () => {
function checkCountFrameTags(countTags) { function checkCountFrameTags(countTags) {
if (countTags == 0) { if (countTags == 0) {
cy.get('span.cvat-tag-anntation-sidebar-frame-tag-label').should('not.exist'); cy.get('span.cvat-tag-annotation-sidebar-frame-tag-label').should('not.exist');
} else { } else {
cy.get('span.cvat-tag-anntation-sidebar-frame-tag-label').should('have.length', countTags); cy.get('span.cvat-tag-annotation-sidebar-frame-tag-label').should('have.length', countTags);
}; };
}; };
function checkPresenceFrameTags(labelName) { function checkPresenceFrameTags(labelName) {
cy.get('.cvat-tag-anntation-sidebar-frame-tags').within(() => { cy.get('.cvat-tag-annotation-sidebar-frame-tags').within(() => {
cy.get('span.cvat-tag-anntation-sidebar-frame-tag-label').contains(labelName).should('exist'); cy.get('span.cvat-tag-annotation-sidebar-frame-tag-label').contains(labelName).should('exist');
}); });
}; };

Loading…
Cancel
Save