Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stock Movement - Multiple Advanced Filters "Employee & Categories" doesn't work #34334

Open
2 tasks done
Progi1984 opened this issue Oct 18, 2023 · 1 comment
Open
2 tasks done
Labels
9.0.x Branch BO Category: Back Office Bug Type: Bug Detected by TE Issue detected by TE Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Needs Specs Status: issue needs to be specified Stocks Label: Which BO under menu is concerned Verified The issue has been reproduced

Comments

@Progi1984
Copy link
Contributor

Progi1984 commented Oct 18, 2023

Prerequisites

Describe the bug and add attachments

Multiple Advanced Filters "Employee & Categories" doesn't work

Tested with 9.0.x but should apply on previous versions

Expected behavior

No response

Steps to reproduce

  1. BO > Create an employe AA BB
  2. FO > Make an order of "Hummingbird printed t-shirt"
  3. BO > Login as AA BB
  4. BO > Orders > Validate the order from BO and put Delivered as Order_Status
  5. BO > Stock > Movement : Filter by "Employee" : "AA BB"
  6. It's 👍
    image
  7. BO > Stock > Movement : Filter by "Categories" : "Clothes"
  8. It's 👎
    image
  9. BO > Stock > Movement : Unfilter by "Categories" : "Clothes"
  10. It's 👎
    image

Acceptance Tests

  • Unskip tests
    // @todo : https://github.com/PrestaShop/PrestaShop/issues/34334
    describe('BO - Check Filter "Categories"', async () => {
    it(`should set the filter "Categories" to "${Categories.clothes.name}"`, async function () {
    await testContext.addContextItem(this, 'testIdentifier', 'setFilterCategories', baseContext);
    this.skip();
    await movementsPage.setAdvancedFiltersVisible(page);
    await movementsPage.setAdvancedFiltersEmployee(page, `${employeeData.lastName} ${employeeData.firstName}`);
    await movementsPage.setAdvancedFiltersCategory(page, Categories.clothes.name, true);
    const textContent = await movementsPage.getTextForEmptyTable(page);
    expect(textContent).to.be.eq(movementsPage.emptyTableMessage);
    });
    it('should reset the filter "Categories"', async function () {
    await testContext.addContextItem(this, 'testIdentifier', 'resetFilterCategories', baseContext);
    this.skip();
    await movementsPage.resetAdvancedFilter(page);
    const numElements = await movementsPage.getNumberOfElementInGrid(page);
    expect(numElements).to.be.eq(numElementsBeforeFilter);
    });
    });

PrestaShop version(s) where the bug happened

9.0.x

PHP version(s) where the bug happened

8.1

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

@PrestaShopCorp

@Progi1984 Progi1984 added Bug Type: Bug New New issue not yet processed by QA labels Oct 18, 2023
@florine2623 florine2623 added develop Branch Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification BO Category: Back Office Stocks Label: Which BO under menu is concerned Verified The issue has been reproduced 9.0.x Branch and removed New New issue not yet processed by QA develop Branch labels Oct 18, 2023
@Progi1984 Progi1984 added the Detected by TE Issue detected by TE label Oct 18, 2023
@florine2623
Copy link
Contributor

Reproduced on 8.1.x and develop ^^

@hibatallahAouadni hibatallahAouadni added the Needs Specs Status: issue needs to be specified label Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.0.x Branch BO Category: Back Office Bug Type: Bug Detected by TE Issue detected by TE Minor Severity: minor bug > https://build.prestashop.com/news/severity-classification Needs Specs Status: issue needs to be specified Stocks Label: Which BO under menu is concerned Verified The issue has been reproduced
Projects
None yet
Development

No branches or pull requests

3 participants