test: comments requested
This commit is contained in:
parent
65a089e562
commit
92fba2e0c4
|
@ -207,7 +207,7 @@ const getLocale = (label) => {
|
||||||
color="primary"
|
color="primary"
|
||||||
style="position: fixed; z-index: 1; right: 0; bottom: 0"
|
style="position: fixed; z-index: 1; right: 0; bottom: 0"
|
||||||
icon="search"
|
icon="search"
|
||||||
data-cy="search"
|
data-cy="vnFilterPanel_search"
|
||||||
@click="search()"
|
@click="search()"
|
||||||
>
|
>
|
||||||
<QTooltip bottom anchor="bottom right">
|
<QTooltip bottom anchor="bottom right">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
describe('OrderCatalog', () => {
|
describe('OrderCatalog', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login('developer');
|
cy.login('developer');
|
||||||
cy.viewport(1920, 720);
|
cy.viewport(1920, 1080);
|
||||||
cy.visit('/#/order/8/catalog');
|
cy.visit('/#/order/8/catalog');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -24,13 +24,13 @@ describe('Monitor Clients actions', () => {
|
||||||
cy.dataCy('DepartmentDescriptor').should('exist');
|
cy.dataCy('DepartmentDescriptor').should('exist');
|
||||||
|
|
||||||
cy.dataCy('clientsOnWebsite')
|
cy.dataCy('clientsOnWebsite')
|
||||||
.find(' .q-ml-md')
|
.find('.q-ml-md')
|
||||||
.should('have.text', 'Clients on website');
|
.should('have.text', 'Clients on website');
|
||||||
cy.dataCy('recentOrderActions')
|
cy.dataCy('recentOrderActions')
|
||||||
.find('.q-ml-md')
|
.find('.q-ml-md')
|
||||||
.should('have.text', 'Recent order actions');
|
.should('have.text', 'Recent order actions');
|
||||||
cy.get('[data-cy="From_inputDate"]').should('have.value', '01/01/2001');
|
cy.dataCy('From_inputDate').should('have.value', '01/01/2001');
|
||||||
cy.get('[data-cy="To_inputDate"]').should('have.value', '01/01/2001');
|
cy.dataCy('To_inputDate').should('have.value', '01/01/2001');
|
||||||
cy.get(`${clientFk} [data-cy="_select"]`).click();
|
cy.get(`${clientFk} [data-cy="_select"]`).click();
|
||||||
cy.clickOption();
|
cy.clickOption();
|
||||||
cy.countTableRows('eq', 0);
|
cy.countTableRows('eq', 0);
|
||||||
|
|
|
@ -107,13 +107,6 @@ Cypress.Commands.add('waitSpinner', () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
// Cypress.Commands.add('waitRightSpinner', () => {
|
|
||||||
// cy.get('body').then(($body) => {
|
|
||||||
// if ($body.find('.q-inner-loading').length) {
|
|
||||||
// cy.get('.q-inner-loading').should('not.be.visible');
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// });
|
|
||||||
|
|
||||||
// Fill Inputs
|
// Fill Inputs
|
||||||
Cypress.Commands.add('selectOption', (selector, option, timeout = 2500) => {
|
Cypress.Commands.add('selectOption', (selector, option, timeout = 2500) => {
|
||||||
|
|
|
@ -68,7 +68,7 @@ const waitForApiReady = (url, maxRetries = 20, delay = 1000) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.viewport(1920, 720);
|
cy.viewport(1920, 1080);
|
||||||
waitForApiReady('/api/Applications/status');
|
waitForApiReady('/api/Applications/status');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue