Skip to content
Snippets Groups Projects
Commit b7164820 authored by Oleksandr Miroshnichenko's avatar Oleksandr Miroshnichenko
Browse files

magento/magento2#12342: JSTestDriver removal

- Fix translate-inline.test.js, save original ajax
parent b1b001ad
Branches
No related merge requests found
......@@ -80,7 +80,8 @@ define([
},
expectedEequestData = 'area=test&test=test',
translateInline = $(translateSelector).translateInline(options),
$submitButton = $('body').find('.action-primary');
$submitButton = $('body').find('.action-primary'),
originalAjax = $.ajax;
$.ajax = jasmine.createSpy().and.callFake(function (request) {
expect(request.url).toBe(options.ajaxUrl);
......@@ -94,6 +95,7 @@ define([
translateInline.trigger('edit.editTrigger');
$submitButton.trigger('click');
$.ajax = originalAjax;
});
it('Check translation destroy', function () {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment