Prevent false Stuffbox failure when the successful popup closes first
Hop-State: A_06FP8DE7KCCAG4HXZNBATBG Hop-Proposal: R_06FP8DDKY394CXK69M1Q78R Hop-Task: T_06FP8D3ECRPSTFC8CT8DZB0 Hop-Attempt: AT_06FP8D3ECRDMQ2HEYDAE7W0
This commit is contained in:
@@ -7,7 +7,7 @@ describe('renderStuffboxPopupResponse', () => {
|
||||
|
||||
expect(html).toContain("new BroadcastChannel('synapsis:stuffbox')");
|
||||
expect(html).toContain("localStorage.setItem('synapsis:stuffbox:result'");
|
||||
expect(html).toContain('window.close()');
|
||||
expect(html).toContain('window.setTimeout(() => window.close(), 250)');
|
||||
expect(html).not.toContain('window.location.replace');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user