From 7e30e2963abb96ce813ef33ba86fc2f7740b1ff3 Mon Sep 17 00:00:00 2001 From: Anton Khitrenovich Date: Thu, 25 Aug 2022 18:53:02 -0400 Subject: [PATCH 1/2] docs: add reference to `applyAccept` from `upload()` --- docs/user-event/api-utility.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/user-event/api-utility.mdx b/docs/user-event/api-utility.mdx index 33466a461..6f201e137 100644 --- a/docs/user-event/api-utility.mdx +++ b/docs/user-event/api-utility.mdx @@ -149,6 +149,8 @@ upload( Change a file input as if a user clicked it and selected files in the resulting file upload dialog. +Files that don't match an `accept` property will be automatically discarded, +unless [`applyAccept`](options.mdx#applyaccept) is set to `false`. ```jsx test('upload file', async () => { From 4d76e449780181a0d76ea574506f3b91bfc77cde Mon Sep 17 00:00:00 2001 From: Anton Khitrenovich Date: Mon, 29 Aug 2022 09:16:11 -0400 Subject: [PATCH 2/2] make note stand out --- docs/user-event/api-utility.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/user-event/api-utility.mdx b/docs/user-event/api-utility.mdx index 6f201e137..853f881d1 100644 --- a/docs/user-event/api-utility.mdx +++ b/docs/user-event/api-utility.mdx @@ -149,8 +149,9 @@ upload( Change a file input as if a user clicked it and selected files in the resulting file upload dialog. -Files that don't match an `accept` property will be automatically discarded, -unless [`applyAccept`](options.mdx#applyaccept) is set to `false`. + +> Files that don't match an `accept` property will be automatically discarded, +> unless [`applyAccept`](options.mdx#applyaccept) is set to `false`. ```jsx test('upload file', async () => {