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

Closes https://github.com/elastic/kibana/issues/209228 and
https://github.com/elastic/kibana/issues/209848

Maps only fetch data for visible area. A smaller screen could result in
less documents getting returned. This PR resolves the flakyness by
setting the screen size before running to ensure the correct screen area
and consistent results.

Flaky test runner (25)
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7887
Flaky test runner (100)
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/8027

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2025-03-13 09:55:41 -06:00 committed by GitHub
parent 5d9fd46b2a
commit 165db29bdc
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([