Skip to content

Commit

Permalink
fixing test data for 3.20
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowee committed Jul 26, 2024
1 parent 5a4819b commit f213132
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-guests-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

You can run order e2e tests with updated test data
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions playwright/data/e2eTestData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export const PRODUCTS = {
],
},
productWithPriceHigherThan20: {
id: "HJvZHVjdDo2NA==",
id: "UHJvZHVjdDoxMjE=",
name: "Ocean Poems",
variantSKU: "ocean-poems-mp3",
price: 22,
Expand All @@ -419,7 +419,7 @@ export const PRODUCTS = {
name: "Power Juice",
},
productWithDiscountChannelPLN: {
id: "UHJvZHVjdDo3NzA=",
id: "UHJvZHVjdDo3NzE=",
name: "e2e-do-not-touch",
rewardPercentageDiscountValue: 40,
variant: {
Expand All @@ -436,7 +436,7 @@ export const ORDERS = {
ids: ["#3266", "#3265"],
},
draftOrderChannelPLN: {
id: "T3JkZXI6Zjg0NTk3N2EtM2Y3Yy00NDY3LWI3N2MtZDY0ZjhhMDU2MmQy",
id: "T3JkZXI6ZGZjMDRjOTEtNDYyNy00Y2FhLWE5MzAtYTA5ZTE1MTlkODI1",
productInBasket: {
productName: "Black Hoodie",
price: 20,
Expand Down
2 changes: 1 addition & 1 deletion playwright/tests/orders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ for (const refund of orderRefunds) {
await expect(ordersPage.orderRefundList).not.toContainText(refund.status);
});
}
test(`TC: SALEOR_215 Inline discount is applied in a draft order @draft @discounts @e2e`, async page => {
test(`TC: SALEOR_215 Inline discount is applied in a draft order @draft @discounts @e2e`, async () => {
test.slow();

const discountedProduct = PRODUCTS.productWithDiscountChannelPLN;
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/typePolicies.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10252,4 +10252,4 @@ export type StrictTypedTypePolicies = {
fields?: _ServiceFieldPolicy,
}
};
export type TypedTypePolicies = StrictTypedTypePolicies & TypePolicies;
export type TypedTypePolicies = StrictTypedTypePolicies & TypePolicies;

0 comments on commit f213132

Please sign in to comment.