forked from verdnatura/salix-front
26 lines
940 B
JavaScript
26 lines
940 B
JavaScript
|
/// <reference types="cypress" />
|
||
|
describe('VnLog', () => {
|
||
|
const chips = [
|
||
|
':nth-child(1) > :nth-child(1) > .q-item__label > .q-chip > .q-chip__content',
|
||
|
':nth-child(2) > :nth-child(1) > .q-item__label > .q-chip > .q-chip__content',
|
||
|
];
|
||
|
beforeEach(() => {
|
||
|
cy.login('developer');
|
||
|
cy.visit(`/#/claim/${1}/log`);
|
||
|
cy.openRightMenu();
|
||
|
});
|
||
|
// Se tiene que cambiar el Accept-Language a 'en', ya hay una tarea para eso #7189.
|
||
|
xit('should filter by insert actions', () => {
|
||
|
cy.checkOption(':nth-child(7) > .q-checkbox');
|
||
|
cy.get('.q-page').click();
|
||
|
cy.validateContent(chips[0], 'Document');
|
||
|
cy.validateContent(chips[1], 'Beginning');
|
||
|
});
|
||
|
|
||
|
xit('should filter by entity', () => {
|
||
|
cy.selectOption('.q-drawer--right .q-item > .q-select', 'Claim');
|
||
|
cy.get('.q-page').click();
|
||
|
cy.validateContent(chips[0], 'Claim');
|
||
|
});
|
||
|
});
|