Build CVAT with models support. Adding cypress test to check models page. (#3369)
* Try add model support to CVAT build * Added a test. Run test from different job. * Change context * Moved models test to project actions. Configs adaptations. Checking nightly * Moved canvas 3d tests to different cypress config Updated publish_docker_images.yml * Removed models from matrix * check tests on publish workflow * Rework publish yml * fix build, up -d * Removed unnecessary linemain
parent
0c524c6d14
commit
b7f8e8dd83
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2021 Intel Corporation
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
|
context('Models page.', () => {
|
||||||
|
const caseId = '51';
|
||||||
|
|
||||||
|
before(() => {
|
||||||
|
cy.visit('/');
|
||||||
|
cy.login();
|
||||||
|
});
|
||||||
|
|
||||||
|
describe(`Testing case "${caseId}"`, () => {
|
||||||
|
it('The link to the models page and the models page exists.', () => {
|
||||||
|
cy.goToModelsList();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
// Copyright (C) 2021 Intel Corporation
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
|
Cypress.Commands.add('goToModelsList', () => {
|
||||||
|
cy.get('a[value="models"]').click();
|
||||||
|
cy.url().should('include', '/models');
|
||||||
|
cy.get('.cvat-models-page').should('exist');
|
||||||
|
});
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"video": false,
|
||||||
|
"baseUrl": "http://localhost:8080",
|
||||||
|
"viewportWidth": 1300,
|
||||||
|
"viewportHeight": 960,
|
||||||
|
"defaultCommandTimeout": 25000,
|
||||||
|
"env": {
|
||||||
|
"user": "admin",
|
||||||
|
"email": "admin@localhost.company",
|
||||||
|
"password": "12qwaszx"
|
||||||
|
},
|
||||||
|
"testFiles": [
|
||||||
|
"auth_page.js",
|
||||||
|
"canvas3d_functionality/*.js",
|
||||||
|
"remove_users_tasks_projects.js"
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue