forked from verdnatura/salix-front
refactor: remove unnecesary things
This commit is contained in:
parent
0e55f7abdc
commit
a2d84c48c0
|
@ -106,7 +106,6 @@ watch(
|
|||
:limit="50"
|
||||
:user-params="catalogParams"
|
||||
:auto-load="autoLoad"
|
||||
data-cy="orderCatalogPage"
|
||||
>
|
||||
<template #body="{ rows }">
|
||||
<div class="catalog-list">
|
||||
|
|
|
@ -42,31 +42,26 @@ describe('OrderCatalog', () => {
|
|||
};
|
||||
|
||||
it('Shows empty state', () => {
|
||||
// PASS;
|
||||
cy.dataCy('orderCatalogPage').should('exist');
|
||||
cy.dataCy('orderCatalogPage').contains('No data to display');
|
||||
});
|
||||
|
||||
it('filter by category', () => {
|
||||
// PASS;
|
||||
selectCategory();
|
||||
cy.dataCy('orderCatalogItem').should('exist');
|
||||
});
|
||||
|
||||
it('filters by type', () => {
|
||||
// PASS;
|
||||
selectCategory();
|
||||
selectTypeFilter('Anthurium');
|
||||
});
|
||||
|
||||
it('filters by custom value select', () => {
|
||||
// PASS
|
||||
selectCategory();
|
||||
searchByCustomTagInput('Silver');
|
||||
});
|
||||
|
||||
it('filters by custom value dialog', () => {
|
||||
// PASS
|
||||
Cypress.on('uncaught:exception', (err) => {
|
||||
if (err.message.includes('canceled')) {
|
||||
return false;
|
||||
|
@ -87,7 +82,6 @@ describe('OrderCatalog', () => {
|
|||
});
|
||||
|
||||
it('removes a secondary tag', () => {
|
||||
// PASS
|
||||
selectCategory();
|
||||
selectTypeFilter('Anthurium');
|
||||
cy.dataCy('vnFilterPanelChip').should('exist');
|
||||
|
@ -105,7 +99,6 @@ describe('OrderCatalog', () => {
|
|||
});
|
||||
|
||||
it('Removes category tag', () => {
|
||||
// PASS
|
||||
selectCategory();
|
||||
cy.get(
|
||||
"div.q-page-container [data-cy='catalogFilterCustomTag'] > i.q-chip__icon--remove"
|
||||
|
|
Loading…
Reference in New Issue