fix: refs #7187 fix responsive #393

Merged
pablone merged 3 commits from 7187-fix-workerPda into test 2024-05-23 12:43:34 +00:00
2 changed files with 21 additions and 36 deletions
Showing only changes of commit 410012df55 - Show all commits

View File

@ -71,7 +71,7 @@ function reloadData() {
bordered bordered
:key="row.id" :key="row.id"
v-for="row of rows" v-for="row of rows"
class="card q-px-md q-mb-sm" class="card q-px-md q-mb-sm container"
> >
<VnRow> <VnRow>
<VnInput <VnInput
@ -94,13 +94,11 @@ function reloadData() {
:model-value="row?.simSerialNumber" :model-value="row?.simSerialNumber"
disable disable
/> />
<QBtn
<div class="icon"> flat
<QIcon icon="delete"
name="delete"
size="sm"
color="primary" color="primary"
class="cursor-pointer" class="btn-delete"
@click=" @click="
openConfirmationModal( openConfirmationModal(
t(`Remove PDA`), t(`Remove PDA`),
@ -112,8 +110,7 @@ function reloadData() {
<QTooltip> <QTooltip>
{{ t('worker.pda.removePDA') }} {{ t('worker.pda.removePDA') }}
</QTooltip> </QTooltip>
</QIcon> </QBtn>
</div>
</VnRow> </VnRow>
</QCard> </QCard>
</template> </template>
@ -171,12 +168,9 @@ function reloadData() {
</QPage> </QPage>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.icon { .btn-delete {
display: flex;
justify-content: center;
align-items: center;
margin-top: 2%;
max-width: 4%; max-width: 4%;
margin-top: 30px;
} }
</style> </style>
<i18n> <i18n>

View File

@ -14,17 +14,8 @@ describe('WorkerPda', () => {
cy.get('.q-notification__message').should('have.text', 'Data created'); cy.get('.q-notification__message').should('have.text', 'Data created');
}); });
it('assign more than 1 pda', () => {
cy.get('.q-page-sticky > div > .q-btn > .q-btn__content > .q-icon').click();
cy.get(deviceProductionField).type('{downArrow}{enter}');
cy.get('.vn-row > #simSerialNumber').type('123{enter}');
cy.get(
':nth-child(1) > .q-notification__wrapper > .q-notification__content > .q-notification__message'
).should('have.text', 'You can only have one PDA');
});
it('delete pda', () => { it('delete pda', () => {
cy.get('.icon > .q-icon').click(); cy.get('.btn-delete').click();
cy.get( cy.get(
'.q-card__actions > .q-btn--unelevated > .q-btn__content > .block' '.q-card__actions > .q-btn--unelevated > .q-btn__content > .block'
).click(); ).click();