test: refs #7136 fix myEntry test
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-10-11 15:24:09 +02:00
parent 73bdad68c8
commit 5b40984ff3
2 changed files with 2 additions and 5 deletions

View File

@ -2,7 +2,6 @@
import { ref, toRefs, computed, watch, onMounted, useAttrs } from 'vue';
import { useI18n } from 'vue-i18n';
import { useArrayData } from 'src/composables/useArrayData';
import { useAttrs } from 'vue';
// import FetchData from 'src/components/FetchData.vue';
import { useValidator } from 'src/composables/useValidator';
const emit = defineEmits(['update:modelValue', 'update:options', 'remove']);
@ -106,6 +105,7 @@ const vnSelectRef = ref();
const isLoading = ref(false);
const dataRef = ref();
const lastVal = ref();
const useURL = computed(() => $props.url);
const noOneText = t('globals.noOne');
const noOneOpt = ref({
[optionValue.value]: false,
@ -122,9 +122,6 @@ const selectValue = computed({
},
});
const useURL = computed(() => $props.url);
const $attrs = useAttrs();
const arrayDataKey =
$props.dataKey ?? ($props.url?.length > 0 ? $props.url : $attrs.name ?? $attrs.label);

View File

@ -11,7 +11,7 @@ describe('EntryMy when is supplier', () => {
it('should open buyLabel when is supplier', () => {
cy.get(
'[to="/null/2"] > .q-card > .column > .q-btn > .q-btn__content > .q-icon'
'.q-table__container>.q-table__grid-content >span:nth-child(4 )> .q-card > .column > .q-btn > .q-btn__content > .q-icon'
).click();
cy.get('.q-card__actions > .q-btn').click();
cy.window().its('open').should('be.called');