Cypress test. Issue 2625. (#2629)
* Add css class for modal window. * Add cypress test * Move base_actions_project_task_user.js to another folder. This folder will not be available when running through Firefox * Rework cypress main configs. * Add assert Co-authored-by: Kruchinin <dmitryx.kruchinin@intel.com>main
parent
b41afad395
commit
01d35c8794
@ -0,0 +1,28 @@
|
||||
// Copyright (C) 2020 Intel Corporation
|
||||
//
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
/// <reference types="cypress" />
|
||||
|
||||
import { projectName } from '../../support/const_project';
|
||||
|
||||
context('Delete a project via actions.', () => {
|
||||
const issueID = 2625;
|
||||
|
||||
before(() => {
|
||||
cy.openProject(projectName);
|
||||
});
|
||||
|
||||
describe(`Testing "Issue ${issueID}"`, () => {
|
||||
it('Delete a project via actions.', () => {
|
||||
cy.get('.cvat-project-top-bar-actions').trigger('mouseover');
|
||||
cy.get('.cvat-project-actions-menu').within(() => {
|
||||
cy.contains('[role="menuitem"]', 'Delete').click();
|
||||
});
|
||||
cy.get('.cvat-modal-confirm-remove-project').within(() => {
|
||||
cy.contains('button', 'Delete').click();
|
||||
});
|
||||
cy.contains('.cvat-projects-project-item-title', projectName).should('not.exist');
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in New Issue