[9.0] unskip Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/maps/group4/file_upload/shapefile·js (#211310) (#214430)

# Backport

This will backport the following commits from `main` to `9.0`:
- [unskip Failing test: Chrome X-Pack UI Functional
Tests.x-pack/test/functional/apps/maps/group4/file_upload/shapefile·js
(#211310)](https://github.com/elastic/kibana/pull/211310)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-03-13T15:55:41Z","message":"unskip
Failing test: Chrome X-Pack UI Functional
Tests.x-pack/test/functional/apps/maps/group4/file_upload/shapefile·js
(#211310)\n\nCloses https://github.com/elastic/kibana/issues/209228
and\nhttps://github.com/elastic/kibana/issues/209848\n\nMaps only fetch
data for visible area. A smaller screen could result in\nless documents
getting returned. This PR resolves the flakyness by\nsetting the screen
size before running to ensure the correct screen area\nand consistent
results.\n\nFlaky test runner
(25)\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7887\nFlaky
test runner
(100)\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8027\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"165db29bdcfe3793b0bdc81f95be29a24cc6581f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["test","Team:Presentation","release_note:skip","v9.0.0","backport:version","v9.1.0"],"title":"unskip
Failing test: Chrome X-Pack UI Functional
Tests.x-pack/test/functional/apps/maps/group4/file_upload/shapefile·js","number":211310,"url":"https://github.com/elastic/kibana/pull/211310","mergeCommit":{"message":"unskip
Failing test: Chrome X-Pack UI Functional
Tests.x-pack/test/functional/apps/maps/group4/file_upload/shapefile·js
(#211310)\n\nCloses https://github.com/elastic/kibana/issues/209228
and\nhttps://github.com/elastic/kibana/issues/209848\n\nMaps only fetch
data for visible area. A smaller screen could result in\nless documents
getting returned. This PR resolves the flakyness by\nsetting the screen
size before running to ensure the correct screen area\nand consistent
results.\n\nFlaky test runner
(25)\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7887\nFlaky
test runner
(100)\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8027\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"165db29bdcfe3793b0bdc81f95be29a24cc6581f"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/211310","number":211310,"mergeCommit":{"message":"unskip
Failing test: Chrome X-Pack UI Functional
Tests.x-pack/test/functional/apps/maps/group4/file_upload/shapefile·js
(#211310)\n\nCloses https://github.com/elastic/kibana/issues/209228
and\nhttps://github.com/elastic/kibana/issues/209848\n\nMaps only fetch
data for visible area. A smaller screen could result in\nless documents
getting returned. This PR resolves the flakyness by\nsetting the screen
size before running to ensure the correct screen area\nand consistent
results.\n\nFlaky test runner
(25)\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7887\nFlaky
test runner
(100)\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8027\n\n---------\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"165db29bdcfe3793b0bdc81f95be29a24cc6581f"}}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-14 04:41:21 +11:00 committed by GitHub
parent a42d428264
commit e8606d3c3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -5,8 +5,16 @@
* 2.0.
*/
export default function ({ loadTestFile }) {
import { FtrProviderContext } from '../../../../ftr_provider_context';
export default function ({ loadTestFile, getService }: FtrProviderContext) {
const browser = getService('browser');
describe('geo file upload', function () {
before(async () => {
await browser.setWindowSize(1600, 1000);
});
loadTestFile(require.resolve('./wizard'));
loadTestFile(require.resolve('./geojson'));
loadTestFile(require.resolve('./shapefile'));

View file

@ -14,8 +14,7 @@ export default function ({ getPageObjects, getService }) {
const security = getService('security');
const retry = getService('retry');
// Failing: See https://github.com/elastic/kibana/issues/209228
describe.skip('shapefile upload', () => {
describe('shapefile upload', () => {
let indexName = '';
before(async () => {
await security.testUser.setRoles([