We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e4235 commit bec5184Copy full SHA for bec5184
src/pat/inject/inject.test.js
@@ -1874,7 +1874,7 @@ describe("pat-inject", function () {
1874
registry.scan(document.body);
1875
await utils.timeout(1);
1876
1877
- $(".pat-inject").submit(); // need jquery submit here
+ document.querySelector(".pat-inject").dispatchEvent(events.submit_event());
1878
const ajaxargs = spy_ajax.mock.calls[spy_ajax.mock.calls.length - 1][0];
1879
expect(ajaxargs.cache).toBe(false);
1880
spy_ajax.mockRestore();
0 commit comments