Skip to content

Commit

Permalink
@releng - fixing test after AEM docker image update
Browse files Browse the repository at this point in the history
  • Loading branch information
LSantha committed Nov 8, 2023
1 parent 1f328d3 commit 4067b2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/ci/it-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ try {

// Run integration tests
if (TYPE === 'integration') {
let excludedCategory = classifier === 'classic' ? 'com.venia.it.category.IgnoreOnCloud' : 'com.venia.it.category.IgnoreOn65';
let excludedCategory = classifier === 'classic' ? 'com.venia.it.category.IgnoreOn65' : 'com.venia.it.category.IgnoreOnCloud';
ci.dir('it.tests', () => {
ci.sh(`mvn clean verify -U -B -Plocal -Dexclude.category=${excludedCategory}`); // The -Plocal profile comes from the AEM archetype
});
Expand Down
6 changes: 4 additions & 2 deletions it.tests/src/main/java/com/venia/it/tests/ProductPageIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ public class ProductPageIT extends CommerceTestBase {
private static final String GROUPED_PRODUCTS_SELECTOR = PRODUCT_SELECTOR + ".productFullDetail__groupedProducts";

@Test
@Category(IgnoreOn65.class)
public void testProductPageWithSampleData() throws ClientException, IOException {
testProductPageWithSampleData("datalayer/simple-product.json");
}

@Test
@Category(IgnoreOnCloud.class)
public void testProductPageWithSampleData65() throws ClientException, IOException {
testProductPageWithSampleData("datalayer/simple-product-65.json");
}
Expand Down Expand Up @@ -88,13 +90,13 @@ public void testProductPageWithSampleData(String jsonFile) throws ClientExceptio
}

@Test
@Category({ IgnoreOn65.class })
@Category(IgnoreOn65.class )
public void testProductPageWithSampleDataForGroupedProduct() throws ClientException, IOException {
testProductPageWithSampleDataForGroupedProduct("datalayer/grouped-product.json");
}

@Test
@Category({ IgnoreOnCloud.class })
@Category(IgnoreOnCloud.class)
public void testProductPageWithSampleDataForGroupedProduct65() throws ClientException, IOException {
testProductPageWithSampleDataForGroupedProduct("datalayer/grouped-product-65.json");
}
Expand Down

0 comments on commit 4067b2a

Please sign in to comment.