fix: #8349 fixed ItemFixedPrice crashing and it's e2e test not working #1289

Open
provira wants to merge 18 commits from 8349-e2eItemFixedPrice into dev
2 changed files with 6 additions and 3 deletions
Showing only changes of commit b5900dc6ef - Show all commits

View File

@ -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(() => {
Outdated
Review

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

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
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 () => {

View File

@ -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
Outdated
Review

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');