[Data Views] Unskip data view field editor Serverless tests (#166408)

## Summary

This PR unskips the data view field editor Serverless tests. I ran 100x
flaky test runs against each project type to confirm they should no
longer be flaky.

Flaky test runs:
- x100 (`.only`):
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3112
- x100 Search:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3119
- x100 O11y:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3145
- x100 Security:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3154

Resolves #165384.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [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
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
Davis McPhee 2023-09-19 00:08:43 -03:00 committed by GitHub
parent 29df2bd6e3
commit 447a56a70a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,25 +11,36 @@ import type { FtrProviderContext } from '../../../../ftr_provider_context';
export default function ({ getService, getPageObjects, loadTestFile }: FtrProviderContext) {
const browser = getService('browser');
const es = getService('es');
const PageObjects = getPageObjects(['common', 'header', 'settings', 'svlCommonNavigation']);
const PageObjects = getPageObjects([
'common',
'header',
'settings',
'svlCommonNavigation',
'svlCommonPage',
]);
const testSubjects = getService('testSubjects');
const find = getService('find');
const retry = getService('retry');
const kibanaServer = getService('kibanaServer');
// FLAKY: https://github.com/elastic/kibana/issues/165384
describe.skip('data view field editor example', function () {
describe('data view field editor example', function () {
before(async () => {
// TODO: Serverless tests require login first
await PageObjects.svlCommonPage.login();
// TODO: emptyKibanaIndex fails in Serverless with
// "index_not_found_exception: no such index [.kibana_ingest]",
// so it was switched to `savedObjects.cleanStandardList()`
await kibanaServer.savedObjects.cleanStandardList();
await browser.setWindowSize(1300, 900);
await es.transport.request({
path: '/blogs/_doc',
method: 'POST',
body: { user: 'matt', message: 20 },
});
await es.transport.request(
{
path: '/blogs/_doc',
method: 'POST',
body: { user: 'matt', message: 20 },
},
// TODO: Extend timeout in Serverless
{ requestTimeout: '1m' }
);
// TODO: Navigation to Data View Management is different in Serverless
await PageObjects.common.navigateToApp('management');