This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import LoginPage from './LoginPage.vue';
|
import LoginPage from './LoginPage.vue';
|
||||||
import { expect, userEvent, within } from '@storybook/test';
|
import { expect, userEvent, within } from '@storybook/test';
|
||||||
|
import { storybookRouter } from '../../.storybook/router.js';
|
||||||
|
|
||||||
export default { title: 'Pages/LoginPage', component: LoginPage };
|
export default { title: 'Pages/LoginPage', component: LoginPage };
|
||||||
export const Empty = {};
|
export const Empty = {};
|
||||||
@@ -20,3 +21,11 @@ export const ErrorFocus = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const SessionExpired = {
|
||||||
|
beforeEach: async () => { await storybookRouter.push({ name: 'login', query: { reason: 'session-expired' } }); },
|
||||||
|
play: async ({ canvasElement }) => {
|
||||||
|
const canvas = within(canvasElement);
|
||||||
|
await expect(canvas.getByRole('alert')).toHaveTextContent('Your session expired. Sign in again to continue.');
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|||||||
@@ -278,6 +278,7 @@ Remaining roadmap areas are approved external provider credentials/adapters, bro
|
|||||||
- Login error focus behavior now has Storybook interaction coverage using a deterministic failed-authentication response.
|
- Login error focus behavior now has Storybook interaction coverage using a deterministic failed-authentication response.
|
||||||
- Admin logout now exposes a busy state and disables repeat activation while the session is being revoked.
|
- Admin logout now exposes a busy state and disables repeat activation while the session is being revoked.
|
||||||
- Expired admin sessions now redirect to login with an accessible explanation that prompts the user to sign in again.
|
- Expired admin sessions now redirect to login with an accessible explanation that prompts the user to sign in again.
|
||||||
|
- Session-expired login messaging now has Storybook interaction coverage.
|
||||||
|
|
||||||
## Local Commands
|
## Local Commands
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user