fix: refs #8684 update button title handling and improve test case for item request
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
0c701b23b6
commit
a62d973c82
|
@ -922,7 +922,11 @@ const handleHeaderSelection = (evt, data) => {
|
||||||
v-for="(btn, index) of col.actions"
|
v-for="(btn, index) of col.actions"
|
||||||
v-show="btn.show ? btn.show(row) : true"
|
v-show="btn.show ? btn.show(row) : true"
|
||||||
:key="index"
|
:key="index"
|
||||||
:title="btn.title == 'function' ? btn.title(row) : btn.title"
|
:title="
|
||||||
|
typeof btn.title === 'function'
|
||||||
|
? btn.title(row)
|
||||||
|
: btn.title
|
||||||
|
"
|
||||||
:icon="btn.icon"
|
:icon="btn.icon"
|
||||||
class="q-pa-xs"
|
class="q-pa-xs"
|
||||||
flat
|
flat
|
||||||
|
|
|
@ -2,6 +2,7 @@ describe('Item Request', () => {
|
||||||
const rowIndex = 0;
|
const rowIndex = 0;
|
||||||
const itemFkField = `td[data-row-index="${rowIndex}"][data-col-field="itemFk"]`;
|
const itemFkField = `td[data-row-index="${rowIndex}"][data-col-field="itemFk"]`;
|
||||||
const saleQuantityField = `td[data-row-index="${rowIndex}"][data-col-field="saleQuantity"]`;
|
const saleQuantityField = `td[data-row-index="${rowIndex}"][data-col-field="saleQuantity"]`;
|
||||||
|
const ticketInputFilter = '[data-cy="Ticket id_input"]';
|
||||||
|
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login('buyer');
|
cy.login('buyer');
|
||||||
|
@ -10,6 +11,7 @@ describe('Item Request', () => {
|
||||||
|
|
||||||
it('should fill the id and quantity then check the concept was updated', () => {
|
it('should fill the id and quantity then check the concept was updated', () => {
|
||||||
cy.waitForElement('tbody');
|
cy.waitForElement('tbody');
|
||||||
|
cy.get(ticketInputFilter).should('exist').type('38{enter}');
|
||||||
cy.get(itemFkField).should('exist').click();
|
cy.get(itemFkField).should('exist').click();
|
||||||
cy.get(`${itemFkField} input`).should('exist').type('4');
|
cy.get(`${itemFkField} input`).should('exist').type('4');
|
||||||
cy.get(saleQuantityField).should('exist').click();
|
cy.get(saleQuantityField).should('exist').click();
|
||||||
|
|
Loading…
Reference in New Issue