Created
March 27, 2013 16:10
-
-
Save leopic/5255489 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| diff --git a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java | |
| index 16e6fde..91c976e 100644 | |
| --- a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java | |
| +++ b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/RecommendationsBoxTest.java | |
| @@ -20,10 +20,15 @@ public class RecommendationsBoxTest extends RetailBaseTestCase { | |
| @Test(dataProvider = "getTestData", dataProviderClass = FileDataProvider.class) | |
| @DataProviderArguments("dataFilePrefix=testdata/retail/%s/PdpTest tableName=POOSProductData") | |
| - public void verifyRecommendationsBox(String productUrl) { | |
| + public void verifyRecommendationsBox(String productUrl, String productUrl1, String productUrl2, String productUrl3) { | |
| + | |
| + // The new RR implementation doesn't recommend products if you haven't | |
| + // browsed the site before, so we need to seed the recommendation box | |
| + goToPage(productUrl1); | |
| + goToPage(productUrl2); | |
| + goToPage(productUrl3); | |
| // for now go directly to PDP by url: | |
| - LOG.debug(".productUrl: " + productUrl); | |
| goToPage(productUrl); | |
| //Verify recommendations box is displayed | |
| diff --git a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java | |
| index f0c4509..5e1e62c 100644 | |
| --- a/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java | |
| +++ b/qa-automation-tests/src/test/java/com/backcountry/tests/retail/pdp/poos/RecommendationsBoxTest.java | |
| @@ -21,10 +21,15 @@ public class RecommendationsBoxTest extends RetailBaseTestCase { | |
| @Test(dataProvider = "getTestData", dataProviderClass = FileDataProvider.class) | |
| @DataProviderArguments("dataFilePrefix=testdata/retail/%s/PdpTest tableName=POOSProductData") | |
| - public void verifyRecommendationsBox(String productUrl) { | |
| + public void verifyRecommendationsBox(String productUrl, String productUrl1, String productUrl2, String productUrl3) { | |
| + | |
| + // The new RR implementation doesn't recommend products if you haven't | |
| + // browsed the site before, so we need to seed the recommendation box | |
| + goToPage(productUrl1); | |
| + goToPage(productUrl2); | |
| + goToPage(productUrl3); | |
| // for now go directly to POOS by url: | |
| - LOG.debug("productUrl: " + productUrl); | |
| goToPage(productUrl); | |
| //Verify recommendations box is displayed | |
| diff --git a/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv b/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv | |
| index 14c1b8d..debfe56 100644 | |
| --- a/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv | |
| +++ b/qa-automation-tests/testdata/retail/csv/PdpTest/backcountry/POOSProductData.csv | |
| @@ -1,3 +1,2 @@ | |
| -productUrl | |
| -/gore-bike-wear-xenon-so-bib-tight-w-cham-mens-gbw0235 | |
| - | |
| +productUrl,productUrl1,productUrl2,productUrl3 | |
| +/gore-bike-wear-xenon-so-bib-tight-w-cham-mens-gbw0235,/capo-nico-bib-short-mens,/capo-nico-jersey-short-sleeve-mens,/capo-sc-12-jersey-short-sleeve-mens | |
| diff --git a/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv b/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv | |
| index 8baaf78..6f42b3b 100644 | |
| --- a/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv | |
| +++ b/qa-automation-tests/testdata/retail/csv/PdpTest/competitivecyclist/POOSProductData.csv | |
| @@ -1,3 +1,2 @@ | |
| -productUrl | |
| -/craft-performance-tour-jersey-short-sleeve-womens | |
| - | |
| +productUrl,productUrl1,productUrl2,productUrl3 | |
| +/craft-performance-tour-jersey-short-sleeve-womens,/capo-nico-bib-short-mens,/capo-nico-jersey-short-sleeve-mens,/capo-sc-12-jersey-short-sleeve-mens |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment