-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into jcharron/PWA-1950-click-target-for-spinni…
…ng-tabs
- Loading branch information
Showing
53 changed files
with
3,937 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
14 changes: 14 additions & 0 deletions
14
venia-integration-tests/src/actions/storeSwitcher/index.js
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { | ||
headerStoreSwitcherGroup, | ||
headerStoreSwitcherTrigger | ||
} from '../../fields/storeSwitcher'; | ||
|
||
export const toggleHeaderStoreSwitcher = () => { | ||
cy.get(headerStoreSwitcherTrigger).click(); | ||
}; | ||
|
||
export const selectStoreView = label => { | ||
cy.get(headerStoreSwitcherGroup) | ||
.contains(label) | ||
.click(); | ||
}; |
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
16 changes: 16 additions & 0 deletions
16
venia-integration-tests/src/assertions/categoryTree/index.js
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { | ||
categoryTreeListItem, | ||
categoryTreeRoot | ||
} from '../../fields/categoryTree'; | ||
|
||
export const assertNumberOfCategoriesInCategoryTree = number => { | ||
cy.get(categoryTreeRoot).within(() => { | ||
cy.get(categoryTreeListItem).should('have.length', number); | ||
}); | ||
}; | ||
|
||
export const assertCategoryInCategoryTree = categoryText => { | ||
cy.get(categoryTreeRoot).within(() => { | ||
cy.get(categoryTreeListItem).contains(categoryText); | ||
}); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { megaMenuRoot, megaMenuItem } from '../../fields/megaMenu'; | ||
|
||
export const assertCategoryInMegaMenu = categoryText => { | ||
cy.get(megaMenuRoot).within(() => { | ||
cy.get(megaMenuItem).contains(categoryText); | ||
}); | ||
}; | ||
|
||
export const assertNumberOfCategoriesInMegaMenu = number => { | ||
cy.get(megaMenuRoot).within(() => { | ||
cy.get(megaMenuItem).should('have.length', number); | ||
}); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const categoryTreeRoot = '[data-cy="CategoryTree-root"]'; | ||
|
||
export const categoryTreeListItem = | ||
'[data-cy^="CategoryTree-"][data-cy$="target"]'; |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const megaMenuRoot = '[data-cy="MegaMenu-megaMenu"]'; | ||
|
||
export const megaMenuItem = '[data-cy="MegaMenu-MegaMenuItem-megaMenuItem"]'; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const headerStoreSwitcherRoot = | ||
'[data-cy="Header-switchers"] [data-cy="StoreSwitcher-root"]'; | ||
|
||
export const headerStoreSwitcherMenu = | ||
'[data-cy="Header-switchers"] [data-cy="StoreSwitcher-root"] [data-cy="StoreSwitcher-menu"]'; | ||
|
||
export const headerStoreSwitcherGroup = | ||
'[data-cy="Header-switchers"] [data-cy="StoreSwitcher-root"] [data-cy="StoreSwitcher-group"]'; | ||
|
||
export const headerStoreSwitcherTrigger = | ||
'[data-cy="Header-switchers"] [data-cy="StoreSwitcher-root"] [data-cy="StoreSwitcher-trigger"]'; | ||
|
||
export const headerStoreSwitcherView = | ||
'[data-cy="Header-switchers"] [data-cy="StoreSwitcher-root"] [data-cy="StoreSwitcher-view"]'; |
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
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
71 changes: 71 additions & 0 deletions
71
venia-integration-tests/src/fixtures/multiStore/data/availableStores.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"data": { | ||
"availableStores": [ | ||
{ | ||
"category_url_suffix": ".html", | ||
"default_display_currency_code": "USD", | ||
"locale": "en_US", | ||
"product_url_suffix": ".html", | ||
"secure_base_media_url": "https:\/\/venia.magento.com\/media\/", | ||
"store_code": "default", | ||
"store_group_code": "main_website_store", | ||
"store_group_name": "Main Website Store", | ||
"store_name": "Default Store View", | ||
"store_sort_order": 0, | ||
"__typename": "StoreConfig" | ||
}, | ||
{ | ||
"category_url_suffix": ".html", | ||
"default_display_currency_code": "USD", | ||
"locale": "en_US", | ||
"product_url_suffix": ".html", | ||
"secure_base_media_url": "https:\/\/venia.magento.com\/media\/", | ||
"store_code": "view_1", | ||
"store_group_code": "main_website_store", | ||
"store_group_name": "Main Website Store", | ||
"store_name": "View One", | ||
"store_sort_order": 1, | ||
"__typename": "StoreConfig" | ||
}, | ||
{ | ||
"category_url_suffix": ".html", | ||
"default_display_currency_code": "USD", | ||
"locale": "en_US", | ||
"product_url_suffix": ".html", | ||
"secure_base_media_url": "https:\/\/venia.magento.com\/media\/", | ||
"store_code": "view_1_b", | ||
"store_group_code": "store_b", | ||
"store_group_name": "Store B", | ||
"store_name": "View One B", | ||
"store_sort_order": 1, | ||
"__typename": "StoreConfig" | ||
}, | ||
{ | ||
"category_url_suffix": ".html", | ||
"default_display_currency_code": "USD", | ||
"locale": "en_US", | ||
"product_url_suffix": ".html", | ||
"secure_base_media_url": "https:\/\/venia.magento.com\/media\/", | ||
"store_code": "view_2", | ||
"store_group_code": "main_website_store", | ||
"store_group_name": "Main Website Store", | ||
"store_name": "View Two", | ||
"store_sort_order": 10, | ||
"__typename": "StoreConfig" | ||
}, | ||
{ | ||
"category_url_suffix": ".html", | ||
"default_display_currency_code": "USD", | ||
"locale": "en_US", | ||
"product_url_suffix": ".html", | ||
"secure_base_media_url": "https:\/\/venia.magento.com\/media\/", | ||
"store_code": "view_2_b", | ||
"store_group_code": "store_b", | ||
"store_group_name": "Store B", | ||
"store_name": "View Two B", | ||
"store_sort_order": 10, | ||
"__typename": "StoreConfig" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.