Skip to content

[9.4] [AI Infra] Extend GenAI Settings Scout page navigation timeout (#265692)#267990

Merged
KodeRad merged 1 commit into
elastic:9.4from
KodeRad:backport/9.4/pr-265692
May 6, 2026
Merged

[9.4] [AI Infra] Extend GenAI Settings Scout page navigation timeout (#265692)#267990
KodeRad merged 1 commit into
elastic:9.4from
KodeRad:backport/9.4/pr-265692

Conversation

@KodeRad
Copy link
Copy Markdown
Contributor

@KodeRad KodeRad commented May 6, 2026

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…ic#265692)

## Summary

Extends the timeout values in the `GenAiSettingsPage.navigateTo()` page
object to give the page sufficient time to load.

The retry logic introduced in elastic#260496 used a 3s inner `waitForSelector`
timeout, which was too short on slower VMs — the page could fail to
appear within that window even though it would have loaded given more
time. This meant the retry loop was bailing out prematurely rather than
waiting long enough per attempt.

Changes:
- `waitForSelector` timeout: `3_000` → `10_000` ms
- `.toPass` outer timeout: `30_000` → `35_000` ms (accommodates 3 full
retry attempts of up to 10s each, with intervals of 500ms / 1s / 2s
between them)

Relates to elastic#260496

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

### Identify risks

Low risk — test-only change, no production code affected.

(cherry picked from commit 5462ceb)

# Conflicts:
#	x-pack/platform/plugins/private/gen_ai_settings/test/scout/ui/fixtures/page_objects/gen_ai_settings_page.ts
@KodeRad KodeRad requested a review from kibanamachine as a code owner May 6, 2026 14:37
@KodeRad KodeRad added the backport This PR is a backport of another PR label May 6, 2026
@KodeRad KodeRad enabled auto-merge (squash) May 6, 2026 14:37
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@KodeRad KodeRad merged commit d6f4623 into elastic:9.4 May 6, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants