Skip to content

Commit

Permalink
[8.x] [Spaces] Fix flackiness in welcome tour test (#196909) (#197090)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Spaces] Fix flackiness in welcome tour test
(#196909)](#196909)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sébastien
Loix","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-21T15:17:54Z","message":"[Spaces]
Fix flackiness in welcome tour test
(#196909)","sha":"7fb2b0ff11b9fa6c4fff6f66173a6665c6715078","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Security","Feature:Security/Spaces","release_note:skip","test-failure-flaky","v9.0.0","Team:SharedUX","backport:prev-minor"],"title":"[Spaces]
Fix flackiness in welcome tour
test","number":196909,"url":"https://github.com/elastic/kibana/pull/196909","mergeCommit":{"message":"[Spaces]
Fix flackiness in welcome tour test
(#196909)","sha":"7fb2b0ff11b9fa6c4fff6f66173a6665c6715078"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196909","number":196909,"mergeCommit":{"message":"[Spaces]
Fix flackiness in welcome tour test
(#196909)","sha":"7fb2b0ff11b9fa6c4fff6f66173a6665c6715078"}}]}]
BACKPORT-->

Co-authored-by: Sébastien Loix <[email protected]>
  • Loading branch information
kibanamachine and sebelga authored Oct 21, 2024
1 parent 392c4f2 commit 6623f02
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

await es
.delete(
{ id: `config-global:${version}`, index: '.kibana', refresh: true },
{ id: `config-global:${version}`, index: '.kibana', refresh: 'wait_for' },
{ headers: { 'kbn-xsrf': 'spaces' } }
)
.catch((error) => {
if (error.statusCode === 404) return; // ignore 404 errors
throw error;
});

await PageObjects.common.sleep(500); // just to be on the safe side
};

before(async () => {
Expand Down

0 comments on commit 6623f02

Please sign in to comment.