Skip to content

Commit 6105632

Browse files
committed
MAGETWO-58327: [Github] Links at checkout not working for PayPal #6477
1 parent 24a1c7a commit 6105632

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Paypal/frontend/js/view/payment/method-renderer/paypal-express-abstract.test.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/* eslint-disable max-nested-callbacks */
67
define([
78
'jquery',
89
'squire',
910
'ko',
10-
'mage/translate',
11-
'Magento_Ui/js/lib/knockout/bootstrap'
11+
'mage/translate'
1212
], function ($, Squire, ko, $t) {
1313
'use strict';
1414

@@ -31,9 +31,7 @@ define([
3131
* @param {Function} expectation
3232
*/
3333
function clickOnHelpLink(expectation) {
34-
var anchorElement = document.querySelector('div.payment-method-title.field.choice > label > a');
35-
36-
$(anchorElement).add('span').find('span').trigger('click');
34+
$('div.payment-method-title.field.choice > label > a > span').trigger('click');
3735
expectation();
3836
}
3937

@@ -56,7 +54,6 @@ define([
5654

5755
$(document.body).append(templateElement);
5856
ko.applyBindings(paypalExpressAbstract, templateElement);
59-
6057
done();
6158
});
6259
});
@@ -87,7 +84,6 @@ define([
8784

8885
afterAll(function (done) {
8986
templateElement.remove();
90-
9187
done();
9288
});
9389
});

0 commit comments

Comments
 (0)