salix-front/test/cypress/integration/Supplier/SupplierBalance.spec.js

58 lines
2.2 KiB
JavaScript

describe('Supplier Balance', () => {
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/supplier/1/balance`);
});
/* ==== Test Created with Cypress Studio ==== */
it('literal', function () {
/* ==== Generated with Cypress Studio ==== */
cy.get('.q-page').click();
// cy.get('.bg-header > :nth-child(1)').click();
cy.get('.q-pa-md > .q-drawer-container > .q-drawer > .q-drawer__content').click();
cy.get('.q-pa-md > #subToolbar').click();
cy.get('.text-bold').should('have.text', 'Total by company');
// cy.get('.q-tr > :nth-child(4) > span').should('have.text', '1181.87');
// cy.get('.q-tr > :nth-child(6)').should('have.text', '-3997.99');
// cy.get(':nth-child(5) > span').should('have.text', '1000');
/* ==== End Cypress Studio ==== */
/* ==== Generated with Cypress Studio ==== */
// cy.get(':nth-child(1) > :nth-child(2) > .row > span').should(
// 'have.text',
// 'S/Fra 1235'
// );
// cy.get(':nth-child(10) > :nth-child(1) > .row > span').should(
// 'have.text',
// '15/09/2024, 00:00'
// );
// cy.get(':nth-child(10) > :nth-child(2) > .row > span').should(
// 'have.text',
// 'PayMethod one'
// );
// cy.get('.q-virtual-scroll__content > :nth-child(10) > :nth-child(3)').should(
// 'have.text',
// '1'
// );
/* ==== End Cypress Studio ==== */
/* ==== Generated with Cypress Studio ==== */
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
cy.fillInForm({
Date: { val: '01-01-2024', type: 'date' },
Company: { val: 'VNL', type: 'select' },
Bank: { val: 1, type: 'select' },
Amount: { val: 1123, type: 'input' },
Reference: { val: 'Test', type: 'input' },
Type: { val: 'issued', type: 'select' },
Currency: { val: 'Euro', type: 'select' },
});
// cy.dataCy('FormModelPopup_save').click();
cy.get('.q-mt-lg > .q-btn--standard').click();
/* ==== End Cypress Studio ==== */
});
});