Merge pull request #2519 from dvkruchinin/dkru/cypress-test-bitmap-feature

Cypress test. Canvas bitmap feature.
main
Boris Sekachev 5 years ago committed by GitHub
commit 434eb0eead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,25 @@
// Copyright (C) 2020 Intel Corporation
//
// SPDX-License-Identifier: MIT
/// <reference types="cypress" />
import { taskName } from '../../support/const';
context('Canvas bitmap feature', () => {
const caseId = '25';
before(() => {
cy.openTaskJob(taskName);
});
describe(`Testing case "${caseId}"`, () => {
it('Bitmap not visible.', () => {
cy.get('#cvat_canvas_bitmap').should('not.be.visible');
});
it('Activate bitmap.', () => {
cy.get('.cvat-appearance-bitmap-checkbox').click();
cy.get('#cvat_canvas_bitmap').should('be.visible').and('have.css', 'background-color', 'rgb(0, 0, 0)');
});
});
});
Loading…
Cancel
Save