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