fix: #8349 fixed ItemFixedPrice crashing and it's e2e test not working #1289
|
@ -23,6 +23,7 @@ import { isLower, isBigger } from 'src/filters/date.js';
|
|||
import RightMenu from 'src/components/common/RightMenu.vue';
|
||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||
import { QCheckbox } from 'quasar';
|
||||
import { debounce } from 'lodash';
|
||||
|
||||
const quasar = useQuasar();
|
||||
const stateStore = useStateStore();
|
||||
|
@ -38,6 +39,9 @@ const warehousesOptions = ref([]);
|
|||
const hasSelectedRows = computed(() => rowsSelected.value.length > 0);
|
||||
const rowsSelected = ref([]);
|
||||
const itemFixedPriceFilterRef = ref();
|
||||
const reloadTable = debounce(() => {
|
||||
|
||||
tableRef.value.reload();
|
||||
}, 500);
|
||||
|
||||
onMounted(async () => {
|
||||
stateStore.rightDrawer = true;
|
||||
|
@ -304,7 +308,7 @@ const openEditTableCellDialog = () => {
|
|||
|
||||
const onEditCellDataSaved = async () => {
|
||||
rowsSelected.value = [];
|
||||
tableRef.value.reload();
|
||||
reloadTable();
|
||||
};
|
||||
|
||||
const removeFuturePrice = async () => {
|
||||
|
|
|
@ -37,8 +37,7 @@ describe('Handle Items FixedPrice', () => {
|
|||
cy.dataCy('VnConfirm_confirm').click();
|
||||
});
|
||||
|
||||
it.skip('Massive edit', function () {
|
||||
//Falla debido a que hay una petición doble
|
||||
it('Massive edit', function () {
|
||||
provira marked this conversation as resolved
Outdated
alexm
commented
Se deja en skip?? Se deja en skip??
|
||||
cy.get(' .bg-header > :nth-child(1) > .q-checkbox > .q-checkbox__inner ').click();
|
||||
cy.get('#subToolbar > .q-btn--standard').click();
|
||||
cy.selectOption("[data-cy='field-to-edit']", 'Min price');
|
||||
|
|
Loading…
Reference in New Issue
No creo que un timeout (es parecido) sea la mejor opcion. Si el problema es que hace reload demasiado rapido. Habra algo que se pueda mirar para saber que ya debe recargar