describe('Out of Band Swaps', function() { afterEach(function() { cleanupTest() }) it('Basic OOB swap works', async function() { // Set up mock response mockResponse('GET', '/demo', new MockResponse( `
Success!
Success OOB!

`)); // Create test button createProcessedHTML(`
Div 1
Div 2
`); // Click the button find('#btn1').click() await forRequest(); // verify the oob swap occurred assertTextContentIs('#d3', "Success OOB!"); }) })