8355-testToMaster #1177

Merged
alexm merged 326 commits from 8355-testToMaster into master 2025-01-07 06:46:55 +00:00
4 changed files with 12 additions and 9 deletions
Showing only changes of commit af7c6a0aaf - Show all commits

View File

@ -14,6 +14,7 @@ defineProps({
hide-dropdown-icon hide-dropdown-icon
focus-on-mount focus-on-mount
@update:model-value="promise" @update:model-value="promise"
data-cy="vnBtnSelect_select"
/> />
</QBtnDropdown> </QBtnDropdown>
</template> </template>

View File

@ -20,16 +20,15 @@ const hasContent = ref();
let observer; let observer;
onMounted(() => { onMounted(() => {
if (teleportRef.value) { if (!teleportRef.value) return;
const checkContent = () => { const checkContent = () => {
hasContent.value = teleportRef.value.innerHTML.trim() !== ''; hasContent.value = teleportRef.value?.innerHTML?.trim() !== '';
}; };
observer = new MutationObserver(checkContent); observer = new MutationObserver(checkContent);
observer.observe(teleportRef.value, { childList: true, subtree: true }); observer.observe(teleportRef.value, { childList: true, subtree: true });
checkContent(); checkContent();
}
}); });
</script> </script>

View File

@ -16,7 +16,9 @@ describe('Ticket expedtion', () => {
cy.wait('@show'); cy.wait('@show');
cy.selectRows([1, 2]); cy.selectRows([1, 2]);
cy.selectOption('[data-cy="change-state"]', 'Perdida');
cy.dataCy('change-state').click();
cy.selectOption('[data-cy="vnBtnSelect_select"]', 'Perdida');
cy.wait('@add'); cy.wait('@add');
cy.get(`${tableContent} tr:nth-child(-n+2) ${stateTd}`).each(($el) => { cy.get(`${tableContent} tr:nth-child(-n+2) ${stateTd}`).each(($el) => {

View File

@ -16,6 +16,7 @@ describe('VnBreadcrumbs', () => {
cy.visit('#/customer/list'); cy.visit('#/customer/list');
cy.get('.q-breadcrumbs__el').should('have.length', 2); cy.get('.q-breadcrumbs__el').should('have.length', 2);
cy.writeSearchbar('{enter}');
cy.get(firstCard).click(); cy.get(firstCard).click();
cy.get(`${lastBreadcrumb} > .q-icon`).should('have.text', 'launch'); cy.get(`${lastBreadcrumb} > .q-icon`).should('have.text', 'launch');
}); });