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