Skip to content

Commit

Permalink
Update integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romainruaud committed Jul 19, 2021
1 parent dcefcaa commit e8f5e6f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/20-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,17 @@ jobs:
INSTALL_COMMAND="$INSTALL_COMMAND --elasticsearch-host=elasticsearch"
INSTALL_COMMAND="$INSTALL_COMMAND --elasticsearch-port=9200"
fi
DISABLE_MODULES = ""
if [ "$MAGENTO_EDITION" = "community" ]; then
INSTALL_COMMAND="$INSTALL_COMMAND --disable-modules=Smile_ElasticsuiteCatalogOptimizerCustomerSegment,Smile_ElasticsuiteAbCampaignCustomerSegment"
DISABLE_MODULES="$DISABLE_MODULES Smile_ElasticsuiteCatalogOptimizerCustomerSegment,Smile_ElasticsuiteAbCampaignCustomerSegment"
fi
if [ $(version $MAGENTO_VERSION) -lt $(version "2.3.4") ]; then
DISABLE_MODULES="$DISABLE_MODULES Smile_ElasticsuiteRecommenderGraphQl"
fi
if [ "$DISABLE_MODULES" != "" ]; then
INSTALL_COMMAND="$INSTALL_COMMAND --disable-modules=$DISABLE_MODULES"
fi
$INSTALL_COMMAND --quiet
Expand Down
21 changes: 21 additions & 0 deletions Resources/tests/graphql/productdetail/query.gql
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,27 @@ query productDetail($urlKey: String, $onServer: Boolean!) {
__typename
}
url_key
upsell_products {
id
name
sku
url_key
__typename
},
crosssell_products {
id
name
sku
url_key
__typename
},
related_products {
id
name
sku
url_key
__typename
}
... on ConfigurableProduct {
configurable_options {
attribute_code
Expand Down

0 comments on commit e8f5e6f

Please # to comment.