-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
62 additions
and
111 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,50 @@ | ||
@importing_products | ||
Feature: Enqueuing products | ||
In order to import my products from Akeneo | ||
Feature: Importing products | ||
In order to show updated data about my products | ||
As a Store Owner | ||
I want to add them to the Akeneo PIM queue | ||
I want to import products from Akeneo PIM | ||
|
||
@cli | ||
Scenario: Enqueuing products modified since a given date | ||
Given there is a product "product-1" updated at "2020-01-10 22:23:13" on Akeneo | ||
And there is a product "product-2" updated at "2020-01-21 09:54:12" on Akeneo | ||
And there is a product "product-3" updated at "2020-01-22 08:15:08" on Akeneo | ||
When I import items for all importers modified since date "2020-01-20 01:00:00" | ||
Then the queue item with identifier "product-1" for the "Product" importer should not be in the Akeneo queue | ||
And the queue item with identifier "product-2" for the "Product" importer should be in the Akeneo queue | ||
And the queue item with identifier "product-3" for the "Product" importer should be in the Akeneo queue | ||
Background: | ||
Given there is a product "BRAIDED_HAT_M" on Akeneo | ||
And there is a product "BRAIDED_HAT_L" on Akeneo | ||
|
||
@cli | ||
Scenario: There are no products modified since datetime read in file | ||
Given there is a file with name "last-date" and content "2020-01-20 01:00:00" | ||
And current date time is "2020-01-25T12:00:00+01:00" | ||
When I import items for all importers modified since date specified from file "last-date" | ||
Then there should be no item in the queue for the "Product" importer | ||
And there is a file with name "last-date" that contains "2020-01-25T12:00:00+01:00" | ||
Scenario: Importing single product model and its variants | ||
Given the store operates on a single channel | ||
And the store is also available in "it_IT" | ||
When I import all from Akeneo | ||
Then the product "MODEL_BRAIDED_HAT" should exists with the right data | ||
And the product variant "BRAIDED_HAT_M" of product "MODEL_BRAIDED_HAT" should exists with the right data | ||
And the product variant "BRAIDED_HAT_L" of product "MODEL_BRAIDED_HAT" should exists with the right data | ||
|
||
@cli | ||
Scenario: Enqueuing products modified since datetime read in file | ||
Given there is a product "product-1" updated at "2020-01-10 22:23:13" on Akeneo | ||
And there is a product "product-2" updated at "2020-01-21 09:54:12" on Akeneo | ||
And there is a file with name "last-date" and content "2020-01-20 01:00:00" | ||
And current date time is "2020-01-25T12:00:00+01:00" | ||
When I import items for all importers modified since date specified from file "last-date" | ||
Then the queue item with identifier "product-1" for the "Product" importer should not be in the Akeneo queue | ||
And the queue item with identifier "product-2" for the "Product" importer should be in the Akeneo queue | ||
And there is a file with name "last-date" that contains "2020-01-25T12:00:00+01:00" | ||
|
||
@ui | ||
Scenario: Enqueuing a simple product | ||
Given I am logged in as an administrator | ||
And the store has a product "Braided hat m" | ||
When I browse products | ||
And I schedule an Akeneo PIM import for the "Braided hat m" product | ||
Then I should be notified that it has been successfully enqueued | ||
Scenario: Importing products with images should not leave temporary files in temporary files directory | ||
Given the store operates on a single channel | ||
And the store is also available in "it_IT" | ||
When I import all from Akeneo | ||
Then there should not be any temporary file in the temporary files directory | ||
|
||
@ui | ||
Scenario: Enqueuing a product already enqueued | ||
Given I am logged in as an administrator | ||
And the store has a product "Braided hat l" | ||
And there is one item to import with identifier "BRAIDED_HAT_L" for the "Product" importer in the Akeneo queue | ||
Scenario: Importing a simple product | ||
Given there is a product "11164822" on Akeneo | ||
And I am logged in as an administrator | ||
And the store has a product "11164822" | ||
When I browse products | ||
And I schedule an Akeneo PIM import for the "Braided hat l" product | ||
And I schedule an Akeneo PIM import for the "11164822" product | ||
Then I should be notified that it has been successfully enqueued | ||
And the product "11164822" should exists with the right data | ||
And the product variant "11164822" of product "11164822" should exists with the right data | ||
|
||
@ui | ||
Scenario: Enqueuing a configurable product | ||
Scenario: Importing a configurable product | ||
Given the store operates on a single channel | ||
And the store has a "Braided hat" configurable product | ||
And this product has "Small", "Medium" and "Large" variants | ||
And the store has a "Model Braided Hat" configurable product | ||
And this product has "Braided Hat S", "Braided Hat M" and "Braided Hat L" variants | ||
And I am logged in as an administrator | ||
When I browse products | ||
And I schedule an Akeneo PIM import for the "Braided hat" product | ||
And I schedule an Akeneo PIM import for the "Model Braided Hat" product | ||
Then I should be notified that it has been successfully enqueued | ||
Then the product "MODEL_BRAIDED_HAT" should exists with the right data | ||
And the product variant "BRAIDED_HAT_S" of product "MODEL_BRAIDED_HAT" should exists with the right data | ||
And the product variant "BRAIDED_HAT_M" of product "MODEL_BRAIDED_HAT" should exists with the right data | ||
And the product variant "BRAIDED_HAT_L" of product "MODEL_BRAIDED_HAT" should exists with the right data |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../ApiClientMock/Product/braided-hat-l.json → .../ApiClientMock/Product/BRAIDED_HAT_L.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../ApiClientMock/Product/braided-hat-m.json → .../ApiClientMock/Product/BRAIDED_HAT_M.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../ApiClientMock/Product/braided-hat-s.json → .../ApiClientMock/Product/BRAIDED_HAT_S.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.