test: refs #8717 add integration test for agencyModes #1545

Merged
jtubau merged 27 commits from 8717-reviewAndFixAgencySection into dev 2025-04-01 05:19:07 +00:00
1 changed files with 10 additions and 7 deletions
Showing only changes of commit 9a2c7c8012 - Show all commits

View File

@ -53,17 +53,20 @@ describe('Route extended list', () => {
function fillField(selector, type, value) {
switch (type) {
case 'select':
cy.get(selector).should('be.visible').click();
cy.dataCy('null_select').clear().type(value);
cy.get(selector).should('be.visible').click().clear().type(value);
cy.get('.q-item').contains(value).click();
break;
case 'input':
cy.get(selector).should('be.visible').click();
cy.dataCy('null_input').clear().type(`${value}`);
cy.get(selector)
.should('be.visible')
.click()
.type(`{selectall}{backspace}${value}`);
break;
case 'date':
cy.get(selector).should('be.visible').click();
cy.dataCy('null_inputDate').clear().type(`${value}`);
cy.get(selector)
.should('be.visible')
.click()
.type(`{selectall}{backspace}${value}`);
break;
case 'checkbox':
cy.get(selector).should('be.visible').click().click();
@ -177,7 +180,7 @@ describe('Route extended list', () => {
const [month, day, year] = value.split('/');
value = `${day}/${month}/${year}`;
}
cy.validateContent(selector, value);
cy.get(selector).should('contain', value);
});
});