mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
unfocus test
This commit is contained in:
1 parent
c4b0701ec7
commit
58a09a3206
1 file changed
+2
-2
+2
-2
@@ -1670,7 +1670,7 @@ describe('ReactDOMForm', () => {
|
||||
expect(divRef.current.textContent).toEqual('Current username: acdlite');
|
||||
});
|
||||
|
||||
it.only('multiple form submissions in rapid succession do not throw', async () => {
|
||||
it('multiple form submissions in rapid succession do not throw', async () => {
|
||||
const submitFormTwiceButtonRef = React.createRef();
|
||||
let actionCounter = 0;
|
||||
function App() {
|
||||
@@ -1685,7 +1685,7 @@ describe('ReactDOMForm', () => {
|
||||
|
||||
// This is a userspace action. it must take a non-zero amount of time to
|
||||
// allow the form to be submitted again before the first one finishes.
|
||||
// Otherwise, the form transitions will be batched and will not run concurrently.
|
||||
// Otherwise, the form transitions will be batched and will not run sepereately.
|
||||
async function submitForm() {
|
||||
actionCounter++;
|
||||
return new Promise(res => setTimeout(res, 1));
|
||||
|
||||
Reference in new issue
Block a user