Skip to content

Commit eb99deb

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define([
2424
}
2525
},
2626
paypalExpressAbstract,
27-
templateElement = $('<div data-bind="template: getTemplate()"></div>')[0];
27+
tplElement = $('<div data-bind="with: child"><div data-bind="template: getTemplate()"></div></div>')[0];
2828

2929
/**
3030
* Click on PayPal help link and call expectation
@@ -52,8 +52,9 @@ define([
5252
}
5353
});
5454

55-
$(document.body).append(templateElement);
56-
ko.applyBindings(paypalExpressAbstract, templateElement);
55+
paypalExpressAbstract.child = paypalExpressAbstract;
56+
$(document.body).append(tplElement);
57+
ko.applyBindings(paypalExpressAbstract, tplElement);
5758
done();
5859
});
5960
});
@@ -83,7 +84,7 @@ define([
8384
});
8485

8586
afterAll(function (done) {
86-
templateElement.remove();
87+
tplElement.remove();
8788
done();
8889
});
8990
});

0 commit comments

Comments
 (0)