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-show="btn.show ? btn.show(row) : true"
|
||||
:key="index"
|
||||
:title="btn.title == 'function' ? btn.title(row) : btn.title"
|
||||
:title="
|
||||
typeof btn.title === 'function'
|
||||
? btn.title(row)
|
||||
: btn.title
|
||||
"
|
||||
:icon="btn.icon"
|
||||
class="q-pa-xs"
|
||||
flat
|
||||
|
|
|
@ -2,6 +2,7 @@ describe('Item Request', () => {
|
|||
const rowIndex = 0;
|
||||
const itemFkField = `td[data-row-index="${rowIndex}"][data-col-field="itemFk"]`;
|
||||
const saleQuantityField = `td[data-row-index="${rowIndex}"][data-col-field="saleQuantity"]`;
|
||||
const ticketInputFilter = '[data-cy="Ticket id_input"]';
|
||||
|
||||
before(() => {
|
||||
cy.login('buyer');
|
||||
|
@ -10,6 +11,7 @@ describe('Item Request', () => {
|
|||
|
||||
it('should fill the id and quantity then check the concept was updated', () => {
|
||||
cy.waitForElement('tbody');
|
||||
cy.get(ticketInputFilter).should('exist').type('38{enter}');
|
||||
cy.get(itemFkField).should('exist').click();
|
||||
cy.get(`${itemFkField} input`).should('exist').type('4');
|
||||
cy.get(saleQuantityField).should('exist').click();
|
||||
|
|
Loading…
Reference in New Issue