Skip to content

Commit 0ad6484

Browse files
[9.0] [Spaces] Deleted obsolete test for session expiration toast (#237876) (#238132)
# Backport This will backport the following commits from `main` to `9.0`: - [[Spaces] Deleted obsolete test for session expiration toast (#237876)](#237876) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Shostak","email":"165678770+elena-shostak@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-10-07T18:20:07Z","message":"[Spaces] Deleted obsolete test for session expiration toast (#237876)\n\n## Summary\n\nIn scope of #235957 session\ntimeout toast with `Extend` button has been moved to a modal. Deleted\nobsolete test that is no longer valid.\n\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\n__Related: https://github.com/elastic/kibana/issues/138333__","sha":"8c387558d2d8b69ac75d29962f702fed720c38f1","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","release_note:skip","Feature:Security/Session Management","backport:version","v9.2.0","v9.3.0","v9.1.6","v8.18.9","v8.19.6","v9.0.9"],"title":"[Spaces] Deleted obsolete test for session expiration toast","number":237876,"url":"https://github.com/elastic/kibana/pull/237876","mergeCommit":{"message":"[Spaces] Deleted obsolete test for session expiration toast (#237876)\n\n## Summary\n\nIn scope of #235957 session\ntimeout toast with `Extend` button has been moved to a modal. Deleted\nobsolete test that is no longer valid.\n\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\n__Related: https://github.com/elastic/kibana/issues/138333__","sha":"8c387558d2d8b69ac75d29962f702fed720c38f1"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.1","8.18","8.19","9.0"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/237876","number":237876,"mergeCommit":{"message":"[Spaces] Deleted obsolete test for session expiration toast (#237876)\n\n## Summary\n\nIn scope of #235957 session\ntimeout toast with `Extend` button has been moved to a modal. Deleted\nobsolete test that is no longer valid.\n\n\n### Checklist\n\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.\n\n__Related: https://github.com/elastic/kibana/issues/138333__","sha":"8c387558d2d8b69ac75d29962f702fed720c38f1"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.9","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Elena Shostak <165678770+elena-shostak@users.noreply.github.com>
1 parent 2e48003 commit 0ad6484

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

x-pack/platform/plugins/shared/security/public/session/session_expiration_toast.test.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,4 @@ describe('SessionExpirationToast', () => {
6868
);
6969
getByText(/You will be logged out in [0-9]+ seconds/);
7070
});
71-
72-
it('does not render extend button if session cannot be extended', () => {
73-
const sessionState$ = of<SessionState>({
74-
lastExtensionTime: Date.now(),
75-
expiresInMs: 60 * 1000,
76-
canBeExtended: false,
77-
});
78-
79-
const { queryByRole } = render(
80-
<I18nProvider>
81-
<SessionExpirationToast sessionState$={sessionState$} />
82-
</I18nProvider>
83-
);
84-
expect(queryByRole('button', { name: 'Stay logged in' })).toBeNull();
85-
});
8671
});

0 commit comments

Comments
 (0)