#8599: Modified tests to be more complete and added new ones #1409
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1409
Loading…
Reference in New Issue
No description provided.
Delete Branch "8599-ModifyAndCreateInvoiceOutTests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WIP: #8599: Modified tests to be more complete and added new onesto #8599: Modified tests to be more complete and added new ones@ -1,11 +1,30 @@
/// <reference types="cypress" />
describe('InvoiceOut negative bases', () => {
const clientDescriptor =
Entiendo que al ser solo 3 variables no abulta mucho, pero creo que lo podemos dejar algo mas linpio
Opcion A
Opcion B
Definir un objeto que la clave se le pase a la funcion de la opcion A y que el valor de esa clave sea lo que le pasemos en el should
@ -5,25 +5,54 @@ describe('InvoiceOut summary', () => {
Type: { val: 'Error in customer data', type: 'select' },
};
const firstTicketRowDescriptor = 'tbody > :nth-child(1) > :nth-child(1) > .q-btn';
Intentar que ambas líneas acaben en el mismo punto, o q-btn o q-btn__content.
Una vez salvado esto, hacer una función que le pasemos el segundo índice
@ -22,0 +35,4 @@
it('should open the ticket list', () => {
cy.get(toTicketList).click();
cy.get('.descriptor').should('be.visible');
cy.get('[data-cy="vnFilterPanelChip"]').should('include.text', 'T1111111');
dataCy
@ -27,0 +50,4 @@
it('should send the invoice', () => {
cy.dataCy('descriptor-more-opts').click();
cy.get('.q-menu > .q-list > :nth-child(3)').click();
cy.get('#q-portal--menu--3 > .q-menu > .q-list > :nth-child(1)').click();
ufffff...dangerous. Puede generar intermitencias
Has probado a darle un dataCy?
@ -43,0 +72,4 @@
it('should generate the invoice PDF', () => {
cy.dataCy('descriptor-more-opts').click();
cy.get('.q-menu > .q-list > :nth-child(6)').click();
se repite un patrón