diff --git a/cypress/e2e/products/productsList/filteringProducts.js b/cypress/e2e/products/productsList/filteringProducts.js index 6192d6f95..1398f05f5 100644 --- a/cypress/e2e/products/productsList/filteringProducts.js +++ b/cypress/e2e/products/productsList/filteringProducts.js @@ -99,17 +99,19 @@ describe("As an admin I should be able to filter products", () => { `should filter products by ${filterBy.type}. TC: ${filterBy.testCase}`, { tags: ["@productsList", "@allEnv", "@stable"] }, () => { + cy.addAliasToGraphRequest("ProductList"); selectFilterOption(filterBy.type, name); cy.get(SHARED_ELEMENTS.dataGridTable).contains(name).should("exist"); }, ); }); - it.only( + it( "should filter products out of stock. TC: SALEOR_2604", { tags: ["@productsList", "@allEnv", "@stable"] }, () => { const productOutOfStock = `${startsWith}${faker.datatype.number()}`; + cy.addAliasToGraphRequest("ProductList"); createProductInChannel({ name: productOutOfStock, channelId: channel.id, diff --git a/cypress/support/pages/catalog/products/productsListPage.js b/cypress/support/pages/catalog/products/productsListPage.js index 29570aaad..536048e0c 100644 --- a/cypress/support/pages/catalog/products/productsListPage.js +++ b/cypress/support/pages/catalog/products/productsListPage.js @@ -108,8 +108,7 @@ export function selectChannel(channelSlug) { } export function submitFilters() { - cy.addAliasToGraphRequest("ProductList") - .get(BUTTON_SELECTORS.submit) + cy.get(BUTTON_SELECTORS.submit) .scrollIntoView() .should("be.visible") .click() diff --git a/src/graphql/types.generated.ts b/src/graphql/types.generated.ts index f44aea3a3..3eaca855b 100644 --- a/src/graphql/types.generated.ts +++ b/src/graphql/types.generated.ts @@ -10840,4 +10840,4 @@ export type WarehouseDetailsQuery = { __typename: 'Query', warehouse: { __typena export type WarehousesCountQueryVariables = Exact<{ [key: string]: never; }>; -export type WarehousesCountQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', totalCount: number | null } | null }; \ No newline at end of file +export type WarehousesCountQuery = { __typename: 'Query', warehouses: { __typename: 'WarehouseCountableConnection', totalCount: number | null } | null };