mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Fix tests
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
b77feb9764
commit
c4325b4fd0
@ -36,16 +36,19 @@ describe('UpgradePlanModal', () => {
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
@ -769,16 +769,19 @@ exports[`<EditPage /> renders and matches the snapshot 1`] = `
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
@ -454,16 +454,19 @@ exports[`DynamicTable renders and matches the snapshot 1`] = `
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
@ -29,7 +29,7 @@ import { VisuallyHidden } from '@strapi/parts/VisuallyHidden';
|
||||
import { Switch } from '@strapi/parts/Switch';
|
||||
import { Main } from '@strapi/parts/Main';
|
||||
import { LinkButton } from '@strapi/parts/LinkButton';
|
||||
import { notifyStatus } from '@strapi/parts/LiveRegions';
|
||||
import { useNotifyAT } from '@strapi/parts/LiveRegions';
|
||||
import { Box } from '@strapi/parts/Box';
|
||||
import AddIcon from '@strapi/icons/AddIcon';
|
||||
import EditIcon from '@strapi/icons/EditIcon';
|
||||
@ -51,6 +51,7 @@ const ListView = () => {
|
||||
reducer,
|
||||
initialState
|
||||
);
|
||||
const { notifyStatus } = useNotifyAT();
|
||||
|
||||
useFocusWhenNavigate();
|
||||
const { push } = useHistory();
|
||||
@ -88,6 +89,8 @@ const ListView = () => {
|
||||
notifyStatus('webhooks have been loaded');
|
||||
}
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
|
||||
if (isMounted.current) {
|
||||
if (err.code !== 20) {
|
||||
toggleNotification({
|
||||
|
||||
@ -778,16 +778,19 @@ exports[`<CreatePage /> renders and matches the snapshot 1`] = `
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
@ -36,16 +36,19 @@ describe('ConfirmDialog', () => {
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
@ -316,16 +316,19 @@ exports[`Upload | SettingsPage renders and matches the snapshot 1`] = `
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
@ -57,16 +57,19 @@ describe('<FormModal />', () => {
|
||||
>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-log"
|
||||
role="log"
|
||||
/>
|
||||
<p
|
||||
aria-live="polite"
|
||||
aria-relevant="all"
|
||||
id="live-region-status"
|
||||
role="status"
|
||||
/>
|
||||
<p
|
||||
aria-live="assertive"
|
||||
aria-relevant="all"
|
||||
id="live-region-alert"
|
||||
role="alert"
|
||||
/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user