Skip to content

Commit

Permalink
test: adapt cypress tests for new URL patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
dhhyi committed Feb 12, 2020
1 parent ac67602 commit f60ac67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/cypress/integration/pages/shopping/family.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export class FamilyPage {
readonly productList = new ProductListModule('ish-product-listing');

static navigateTo(categoryUniqueId: string, page?: number) {
cy.visit(`/category/${categoryUniqueId}${page ? `?page=${page}` : ''}`);
cy.visit(`/cat${categoryUniqueId}${page ? `?page=${page}` : ''}`);
}
}
4 changes: 2 additions & 2 deletions e2e/cypress/integration/pages/shopping/product-detail.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export class ProductDetailPage {

static navigateTo(sku: string, categoryUniqueId?: string) {
if (categoryUniqueId) {
cy.visit(`/category/${categoryUniqueId}/product/${sku}`);
cy.visit(`/sku${sku}-cat${categoryUniqueId}`);
} else {
cy.visit(`/product/${sku}`);
cy.visit(`/sku${sku}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion e2e/cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"outDir": "../out-tsc",
"module": "commonjs",
"moduleResolution": "node",
"target": "es5",
"target": "es6",
"types": ["node", "cypress"]
}
}

0 comments on commit f60ac67

Please sign in to comment.