@graphcommerce/magento-payment-braintree 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
|
|
10
|
+
- @graphcommerce/graphql@3.0.6
|
|
11
|
+
- @graphcommerce/next-ui@4.5.0
|
|
12
|
+
- @graphcommerce/image@3.1.2
|
|
13
|
+
- @graphcommerce/magento-cart@4.2.2
|
|
14
|
+
- @graphcommerce/magento-cart-payment-method@3.0.6
|
|
15
|
+
- @graphcommerce/magento-store@4.1.4
|
|
16
|
+
- @graphcommerce/react-hook-form@3.0.6
|
|
17
|
+
|
|
3
18
|
## 3.0.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-payment-braintree",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
|
16
|
-
"@graphcommerce/magento-cart-shipping-address": "^3.0.
|
|
17
|
-
"@graphcommerce/magento-product": "^4.
|
|
18
|
-
"@graphcommerce/magento-product-configurable": "^4.0.
|
|
19
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.3",
|
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.5",
|
|
17
|
+
"@graphcommerce/magento-product": "^4.1.3",
|
|
18
|
+
"@graphcommerce/magento-product-configurable": "^4.0.7",
|
|
19
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.5",
|
|
20
20
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
21
|
-
"@playwright/test": "^1.
|
|
22
|
-
"@types/braintree-web": "^3.75.19"
|
|
21
|
+
"@playwright/test": "^1.20.1",
|
|
22
|
+
"@types/braintree-web": "^3.75.19",
|
|
23
|
+
"type-fest": "2.12.1"
|
|
23
24
|
},
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"@graphcommerce/graphql": "^3.0.
|
|
26
|
-
"@graphcommerce/image": "^3.1.
|
|
27
|
-
"@graphcommerce/magento-cart": "^4.
|
|
28
|
-
"@graphcommerce/magento-cart-payment-method": "^3.0.
|
|
29
|
-
"@graphcommerce/magento-store": "^4.1.
|
|
30
|
-
"@graphcommerce/next-ui": "^4.
|
|
31
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
32
|
-
"braintree-web": "^3.85.2"
|
|
33
|
-
"type-fest": "^2.12.0"
|
|
26
|
+
"@graphcommerce/graphql": "^3.0.6",
|
|
27
|
+
"@graphcommerce/image": "^3.1.2",
|
|
28
|
+
"@graphcommerce/magento-cart": "^4.2.2",
|
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "^3.0.6",
|
|
30
|
+
"@graphcommerce/magento-store": "^4.1.4",
|
|
31
|
+
"@graphcommerce/next-ui": "^4.5.0",
|
|
32
|
+
"@graphcommerce/react-hook-form": "^3.0.6",
|
|
33
|
+
"braintree-web": "^3.85.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@lingui/macro": "^3.13.2",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { waitForGraphQlResponse } from '@graphcommerce/graphql/
|
|
2
|
+
import { waitForGraphQlResponse } from '@graphcommerce/graphql/test/apolloClient.fixture'
|
|
3
3
|
import { PaymentMethodPlaceOrderNoopDocument } from '@graphcommerce/magento-cart-payment-method/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql'
|
|
4
|
-
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/
|
|
5
|
-
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/
|
|
6
|
-
import { test } from '@graphcommerce/magento-product/
|
|
4
|
+
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/test/fillShippingAddressForm'
|
|
5
|
+
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/test/addConfigurableProductToCart'
|
|
6
|
+
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
|
7
7
|
import { expect } from '@playwright/test'
|
|
8
8
|
|
|
9
9
|
test('place order', async ({ page, productURL }) => {
|
|
@@ -19,9 +19,9 @@ test('place order', async ({ page, productURL }) => {
|
|
|
19
19
|
await fillShippingAddressForm(page)
|
|
20
20
|
|
|
21
21
|
await page.click('button[value=flatrate-flatrate]')
|
|
22
|
-
await page.click('
|
|
22
|
+
await page.click('#next')
|
|
23
23
|
|
|
24
|
-
await page.click('button[value=
|
|
24
|
+
await page.click('button[value=braintree]')
|
|
25
25
|
|
|
26
26
|
await page.click('button:has-text("Credit Card")')
|
|
27
27
|
|
|
@@ -40,7 +40,7 @@ test('place order', async ({ page, productURL }) => {
|
|
|
40
40
|
await expirationFrame?.fill('input[name="expiration"]', '102022')
|
|
41
41
|
|
|
42
42
|
// Click button:has-text("Pay (Credit Card)")
|
|
43
|
-
await page.click('
|
|
43
|
+
await page.click('#place-order')
|
|
44
44
|
|
|
45
45
|
const result = await waitForGraphQlResponse(page, PaymentMethodPlaceOrderNoopDocument)
|
|
46
46
|
expect(result.errors).toBeUndefined()
|
package/{_playwright/braintree_local_payments.spec.ts → test/braintree_local_payments.playwright.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { waitForGraphQlResponse } from '@graphcommerce/graphql/
|
|
2
|
+
import { waitForGraphQlResponse } from '@graphcommerce/graphql/test/apolloClient.fixture'
|
|
3
3
|
import { PaymentMethodPlaceOrderNoopDocument } from '@graphcommerce/magento-cart-payment-method/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql'
|
|
4
|
-
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/
|
|
5
|
-
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/
|
|
6
|
-
import { test } from '@graphcommerce/magento-product/
|
|
4
|
+
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/test/fillShippingAddressForm'
|
|
5
|
+
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/test/addConfigurableProductToCart'
|
|
6
|
+
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
|
7
7
|
import { expect } from '@playwright/test'
|
|
8
8
|
|
|
9
9
|
test('place order', async ({ page, productURL }) => {
|
|
@@ -19,13 +19,13 @@ test('place order', async ({ page, productURL }) => {
|
|
|
19
19
|
await fillShippingAddressForm(page)
|
|
20
20
|
|
|
21
21
|
await page.click('button[value=flatrate-flatrate]')
|
|
22
|
-
await page.click('
|
|
22
|
+
await page.click('#next')
|
|
23
23
|
|
|
24
24
|
await page.click('button[value=braintree_local_payment___ideal]')
|
|
25
25
|
|
|
26
26
|
const [braintreePopup] = await Promise.all([
|
|
27
27
|
page.waitForEvent('popup'),
|
|
28
|
-
page.click('
|
|
28
|
+
page.click('#place-order'),
|
|
29
29
|
])
|
|
30
30
|
|
|
31
31
|
await braintreePopup.click('text=Proceed with Sandbox Purchase')
|