Skip to content

Commit 2ce926b

Browse files
committed
ACP2E-636: Cannot get graphql customer token
1 parent c9c994c commit 2ce926b

File tree

7 files changed

+45
-45
lines changed

7 files changed

+45
-45
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/PageCache/ProductInMultipleStoresCacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,9 @@ public function testProductFromSpecificAndDefaultStoreWithMultiCurrency()
298298
'Product name in fixture store is invalid.'
299299
);
300300
$this->assertEquals(
301-
'USD',
301+
'EUR',
302302
$response['products']['items'][0]['price']['minimalPrice']['amount']['currency'],
303-
'Currency code USD in fixture store default is unexpected'
303+
'Currency code EUR in fixture store default is unexpected'
304304
);
305305

306306
// test cached response store + currency header with non existing currency, and no valid response, no cache

dev/tests/api-functional/testsuite/Magento/GraphQl/Tax/ProductViewTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -284,16 +284,16 @@ private function assertBaseFields($product, $actualResponse)
284284
[
285285
'minimalPrice' => [
286286
'amount' => [
287-
'value' => 4.1065,
288-
'currency' => 'USD'
287+
'value' => 8.213,
288+
'currency' => 'EUR'
289289
],
290290
'adjustments' => [
291291
0 =>
292292
[
293293
'amount' =>
294294
[
295-
'value' => 0.2865,
296-
'currency' => 'USD',
295+
'value' => 0.573,
296+
'currency' => 'EUR',
297297
],
298298
'code' => 'TAX',
299299
'description' => 'INCLUDED',
@@ -302,16 +302,16 @@ private function assertBaseFields($product, $actualResponse)
302302
],
303303
'regularPrice' => [
304304
'amount' => [
305-
'value' => 10.7500,
306-
'currency' => 'USD'
305+
'value' => 21.5,
306+
'currency' => 'EUR'
307307
],
308308
'adjustments' => [
309309
0 =>
310310
[
311311
'amount' =>
312312
[
313-
'value' => 0.7500,
314-
'currency' => 'USD',
313+
'value' => 1.5,
314+
'currency' => 'EUR',
315315
],
316316
'code' => 'TAX',
317317
'description' => 'INCLUDED',
@@ -320,16 +320,16 @@ private function assertBaseFields($product, $actualResponse)
320320
],
321321
'maximalPrice' => [
322322
'amount' => [
323-
'value' => 4.1065,
324-
'currency' => 'USD'
323+
'value' => 8.213,
324+
'currency' => 'EUR'
325325
],
326326
'adjustments' => [
327327
0 =>
328328
[
329329
'amount' =>
330330
[
331-
'value' => 0.2865,
332-
'currency' => 'USD',
331+
'value ' => 0.573,
332+
'currency' => 'EUR',
333333
],
334334
'code' => 'TAX',
335335
'description' => 'INCLUDED',

dev/tests/api-functional/testsuite/Magento/GraphQl/VariablesSupportQueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function setUp(): void
2929
public function testQueryObjectVariablesSupport()
3030
{
3131
$productSku = 'simple-249';
32-
$minPrice = 153;
32+
$minPrice = 306;
3333

3434
$query
3535
= <<<'QUERY'

dev/tests/api-functional/testsuite/Magento/GraphQl/Weee/CartItemPricesWithFPTTest.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -132,27 +132,27 @@ public function cartItemFixedProductTaxDataProvider(): array
132132
[
133133
'taxSettings' => [
134134
'tax/weee/enable' => '1',
135-
'tax/weee/apply_vat' => '0',
135+
'tax/weee/apply_vat' => ' 0',
136136
'tax/calculation/price_includes_tax' => '0',
137137
'tax/display/type' => '1',
138138
],
139139
'expectedFtps' => [
140140
[
141141
'label' => 'fixed_product_attribute_front_label',
142142
'amount' => [
143-
'value' => 10.0
143+
'value' => 20.0
144144
]
145145
],
146146
[
147147
'label' => 'fpt_for_all_front_label',
148148
'amount' => [
149-
'value' => 12.7
149+
'value' => 25.4
150150
]
151151
],
152152
[
153153
'label' => 'fixed_product_attribute_front_label',
154154
'amount' => [
155-
'value' => 5.0
155+
'value' => 10.0
156156
]
157157
],
158158
]
@@ -168,19 +168,19 @@ public function cartItemFixedProductTaxDataProvider(): array
168168
[
169169
'label' => 'fixed_product_attribute_front_label',
170170
'amount' => [
171-
'value' => 10.0
171+
'value' => 20.0
172172
]
173173
],
174174
[
175175
'label' => 'fpt_for_all_front_label',
176176
'amount' => [
177-
'value' => 12.7
177+
'value' => 25.4
178178
]
179179
],
180180
[
181181
'label' => 'fixed_product_attribute_front_label',
182182
'amount' => [
183-
'value' => 5.0
183+
'value' => 10.0
184184
]
185185
],
186186
]
@@ -196,19 +196,19 @@ public function cartItemFixedProductTaxDataProvider(): array
196196
[
197197
'label' => 'fixed_product_attribute_front_label',
198198
'amount' => [
199-
'value' => 10.0
199+
'value' => 20.0
200200
]
201201
],
202202
[
203203
'label' => 'fpt_for_all_front_label',
204204
'amount' => [
205-
'value' => 12.7
205+
'value' => 25.4
206206
]
207207
],
208208
[
209209
'label' => 'fixed_product_attribute_front_label',
210210
'amount' => [
211-
'value' => 5.0
211+
'value' => 10
212212
]
213213
],
214214
]
@@ -224,19 +224,19 @@ public function cartItemFixedProductTaxDataProvider(): array
224224
[
225225
'label' => 'fixed_product_attribute_front_label',
226226
'amount' => [
227-
'value' => 10.75
227+
'value' => 21.5
228228
]
229229
],
230230
[
231231
'label' => 'fpt_for_all_front_label',
232232
'amount' => [
233-
'value' => 13.66
233+
'value' => 27.31
234234
]
235235
],
236236
[
237237
'label' => 'fixed_product_attribute_front_label',
238238
'amount' => [
239-
'value' => 5.38
239+
'value' => 10.75
240240
]
241241
],
242242
]
@@ -252,19 +252,19 @@ public function cartItemFixedProductTaxDataProvider(): array
252252
[
253253
'label' => 'fixed_product_attribute_front_label',
254254
'amount' => [
255-
'value' => 10.0
255+
'value' => 20
256256
]
257257
],
258258
[
259259
'label' => 'fpt_for_all_front_label',
260260
'amount' => [
261-
'value' => 12.7
261+
'value' => 25.41
262262
]
263263
],
264264
[
265265
'label' => 'fixed_product_attribute_front_label',
266266
'amount' => [
267-
'value' => 5.01
267+
'value' => 10
268268
]
269269
],
270270
]
@@ -280,19 +280,19 @@ public function cartItemFixedProductTaxDataProvider(): array
280280
[
281281
'label' => 'fixed_product_attribute_front_label',
282282
'amount' => [
283-
'value' => 10.75
283+
'value' => 21.5
284284
]
285285
],
286286
[
287287
'label' => 'fpt_for_all_front_label',
288288
'amount' => [
289-
'value' => 13.65
289+
'value' => 27.31
290290
]
291291
],
292292
[
293293
'label' => 'fixed_product_attribute_front_label',
294294
'amount' => [
295-
'value' => 5.38
295+
'value' => 10.75
296296
]
297297
],
298298
]

dev/tests/api-functional/testsuite/Magento/GraphQl/Weee/ProductPriceWithFPTTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function testCatalogPriceExcludeTaxAndIncludeFPTOnly(array $weeTaxSetting
112112
$product = $result['products']['items'][0];
113113

114114
// final price and regular price are the sum of product price and FPT
115-
$this->assertEquals(112.7, $product['price_range']['minimum_price']['regular_price']['value']);
115+
$this->assertEquals(225.4, $product['price_range']['minimum_price']['regular_price']['value']);
116116
$this->assertEquals(112.7, $product['price_range']['minimum_price']['final_price']['value']);
117117

118118
$this->assertEquals(112.7, $product['price_range']['maximum_price']['regular_price']['value']);
@@ -169,7 +169,7 @@ public function testCatalogPriceExcludeTaxAndIncludeFPTWithDescription(array $we
169169
$product = $result['products']['items'][0];
170170

171171
// final price and regular price are the sum of product price and FPT
172-
$this->assertEquals(112.7, $product['price_range']['minimum_price']['regular_price']['value']);
172+
$this->assertEquals(225.4, $product['price_range']['minimum_price']['regular_price']['value']);
173173
$this->assertEquals(112.7, $product['price_range']['minimum_price']['final_price']['value']);
174174

175175
$this->assertEquals(112.7, $product['price_range']['maximum_price']['regular_price']['value']);
@@ -240,7 +240,7 @@ public function testCatalogPriceExcludeTaxCatalogDisplayIncludeTaxAndIncludeFPTO
240240
$this->assertNotEmpty($product['price_range']['minimum_price']['fixed_product_taxes']);
241241

242242
// final price and regular price are the sum of product price, FPT and product tax
243-
$this->assertEquals(120.2, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
243+
$this->assertEquals(240.4, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
244244
$this->assertEquals(120.2, round($product['price_range']['minimum_price']['final_price']['value'], 2));
245245

246246
$this->assertEquals(120.2, round($product['price_range']['maximum_price']['regular_price']['value'], 2));
@@ -307,7 +307,7 @@ public function testCatalogPriceExclTaxCatalogDisplayInclTaxAndInclFPTWithDescri
307307

308308
$this->assertNotEmpty($product['price_range']['minimum_price']['fixed_product_taxes']);
309309
// final price and regular price are the sum of product price and FPT
310-
$this->assertEquals(120.2, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
310+
$this->assertEquals(240.4, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
311311
$this->assertEquals(120.2, round($product['price_range']['minimum_price']['final_price']['value'], 2));
312312

313313
$this->assertEquals(120.2, round($product['price_range']['maximum_price']['regular_price']['value'], 2));
@@ -360,7 +360,7 @@ public function testCatalogPriceInclTaxCatalogDisplayExclTaxAndInclFPTWithDescri
360360
$product = $result['products']['items'][0];
361361

362362
// final price and regular price are the sum of product price and FPT
363-
$this->assertEquals(112.7, $product['price_range']['minimum_price']['regular_price']['value']);
363+
$this->assertEquals(225.4, $product['price_range']['minimum_price']['regular_price']['value']);
364364
$this->assertEquals(112.7, $product['price_range']['minimum_price']['final_price']['value']);
365365

366366
$this->assertEquals(112.7, $product['price_range']['maximum_price']['regular_price']['value']);
@@ -418,7 +418,7 @@ public function testCatalogPriceInclTaxCatalogDisplayInclTaxAndInclFPTOnly(array
418418
$product = $result['products']['items'][0];
419419

420420
// final price and regular price are the sum of product price and FPT
421-
$this->assertEquals(112.7, $product['price_range']['minimum_price']['regular_price']['value']);
421+
$this->assertEquals(225.4, $product['price_range']['minimum_price']['regular_price']['value']);
422422
$this->assertEquals(112.7, $product['price_range']['minimum_price']['final_price']['value']);
423423

424424
$this->assertEquals(112.7, $product['price_range']['maximum_price']['regular_price']['value']);
@@ -492,7 +492,7 @@ public function testCatalogPriceIncTaxCatalogDisplayInclTaxInclFPTWithDescrWithT
492492
//12.7 + 7.5% of 12.7 = 13.65
493493
$fptWithTax = round(13.65, 2);
494494
// final price and regular price are the sum of product price and FPT
495-
$this->assertEquals(113.65, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
495+
$this->assertEquals(227.31, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
496496
$this->assertEquals(113.65, round($product['price_range']['minimum_price']['final_price']['value'], 2));
497497

498498
$this->assertEquals(113.65, round($product['price_range']['maximum_price']['regular_price']['value'], 2));
@@ -566,7 +566,7 @@ public function testCatalogPriceInclTaxCatalogDisplayIncludeTaxAndMuyltipleFPTs(
566566
$this->assertArrayNotHasKey('errors', $result);
567567
$this->assertNotEmpty($result['products']['items']);
568568
$product = $result['products']['items'][0];
569-
$this->assertEquals(124.40, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
569+
$this->assertEquals(248.81, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
570570
$this->assertCount(
571571
2,
572572
$product['price_range']['minimum_price']['fixed_product_taxes'],
@@ -642,7 +642,7 @@ public function testCatalogPriceDisableFPT(array $weeTaxSettings)
642642
$this->assertArrayNotHasKey('errors', $result);
643643
$this->assertNotEmpty($result['products']['items']);
644644
$product = $result['products']['items'][0];
645-
$this->assertEquals(100, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
645+
$this->assertEquals(200.0, round($product['price_range']['minimum_price']['regular_price']['value'], 2));
646646
$this->assertCount(
647647
0,
648648
$product['price_range']['minimum_price']['fixed_product_taxes'],

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/AddBundleProductToWishlistTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testAddBundleProductWithOptions(): void
105105
[
106106
'label' => 'Simple Product',
107107
'quantity' => 1,
108-
'price' => 2.75
108+
'price' => 5.5
109109
]
110110
);
111111
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Wishlist/UpdateBundleProductsFromWishlistTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testUpdateBundleProductWithOptions(): void
111111
self::assertEquals($newBundleOptionUid, $responseOptionSelection['uid']);
112112
self::assertEquals('Simple Product2', $responseOptionSelection['label']);
113113
self::assertEquals(1, $responseOptionSelection['quantity']);
114-
self::assertEquals(10, $responseOptionSelection['price']);
114+
self::assertEquals(20, $responseOptionSelection['price']);
115115
}
116116

117117
/**

0 commit comments

Comments
 (0)