Skip to content

Commit

Permalink
[Spaces] Fix flackiness in welcome tour test (#196909)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga authored Oct 21, 2024
1 parent 9c59469 commit 7fb2b0f
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 7fb2b0f

Please sign in to comment.