+ There are no focusable contents.
+
+ >
+ );
+
+ const outsideElement = document.querySelector('[data-testid="outside"]');
+ outsideElement.focus();
+ expect(document.activeElement).toBe(document.body);
+ });
+
+ test('focus is not trapped when inactive', () => {
+ render(
+ <>
+