[8.8] unskip tests for chrome, fix tags (#158405) (#158545)

# Backport

This will backport the following commits from `main` to `8.8`:
- [unskip tests for chrome, fix tags
(#158405)](https://github.com/elastic/kibana/pull/158405)

<!--- Backport version: 8.9.7 -->

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

<!--BACKPORT [{"author":{"name":"Dzmitry
Lemechko","email":"dzmitry.lemechko@elastic.co"},"sourceCommit":{"committedDate":"2023-05-26T08:19:53Z","message":"unskip
tests for chrome, fix tags (#158405)\n\n## Summary\r\n\r\nWith Firefox
update to v113 on our CI workers, we noticed that tests are\r\nrun
slower and more often fail with timeouts.\r\nUnfortunately our auto-skip
functionality skip the test suite\r\ncompletely, meaning it won't run on
Chrome as well.\r\n\r\nThis PR unskips the firefox failed test to run on
Chrome, I also fix the\r\nlabels for some suites to run only sub set of
tests for
now.","sha":"5d4eec5131a797708bd2b8fae5a4706ecc3e7679","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.9.0","v8.8.1"],"number":158405,"url":"https://github.com/elastic/kibana/pull/158405","mergeCommit":{"message":"unskip
tests for chrome, fix tags (#158405)\n\n## Summary\r\n\r\nWith Firefox
update to v113 on our CI workers, we noticed that tests are\r\nrun
slower and more often fail with timeouts.\r\nUnfortunately our auto-skip
functionality skip the test suite\r\ncompletely, meaning it won't run on
Chrome as well.\r\n\r\nThis PR unskips the firefox failed test to run on
Chrome, I also fix the\r\nlabels for some suites to run only sub set of
tests for
now.","sha":"5d4eec5131a797708bd2b8fae5a4706ecc3e7679"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158405","number":158405,"mergeCommit":{"message":"unskip
tests for chrome, fix tags (#158405)\n\n## Summary\r\n\r\nWith Firefox
update to v113 on our CI workers, we noticed that tests are\r\nrun
slower and more often fail with timeouts.\r\nUnfortunately our auto-skip
functionality skip the test suite\r\ncompletely, meaning it won't run on
Chrome as well.\r\n\r\nThis PR unskips the firefox failed test to run on
Chrome, I also fix the\r\nlabels for some suites to run only sub set of
tests for
now.","sha":"5d4eec5131a797708bd2b8fae5a4706ecc3e7679"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
This commit is contained in:
Dzmitry Lemechko 2023-05-26 13:25:28 +02:00 committed by GitHub
parent 5fe0c97371
commit dc74b994f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 22 additions and 21 deletions

View file

@ -51,7 +51,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await visualBuilder.clickDataTab('timeSeries');
});
describe('basics', () => {
describe('basics', function () {
this.tags('includeFirefox');
it('should render all necessary components', async () => {
@ -237,7 +237,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
});
});
describe('Elastic charts', () => {
describe('Elastic charts', function () {
this.tags('skipFirefox');
beforeEach(async () => {
await visualBuilder.toggleNewChartsLibraryWithDebug(true);
await visualBuilder.clickPanelOptions('timeSeries');
@ -594,7 +595,8 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
after(async () => await visualBuilder.toggleNewChartsLibraryWithDebug(false));
});
describe('index pattern selection mode', () => {
describe('index pattern selection mode', function () {
this.tags('skipFirefox');
it('should disable switch for Kibana index patterns mode by default', async () => {
await visualBuilder.clickPanelOptions('timeSeries');
const isEnabled = await visualBuilder.checkIndexPatternSelectionModeSwitchIsEnabled();

View file

@ -148,10 +148,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const enableHostView = () => pageObjects.infraHostsView.clickEnableHostViewButton();
// Tests
// Failing: See https://github.com/elastic/kibana/issues/157718
describe.skip('Hosts View', function () {
this.tags('includeFirefox');
describe('Hosts View', function () {
// Failing: See https://github.com/elastic/kibana/issues/157718
// this.tags('includeFirefox');
before(async () => {
await Promise.all([

View file

@ -96,8 +96,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/111076
describe.skip('Saved Views', () => {
describe('Saved Views', function () {
// FLAKY: https://github.com/elastic/kibana/issues/157738
this.tags('skipFirefox');
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_and_logs');
await pageObjects.infraHome.goToMetricExplorer();

View file

@ -16,9 +16,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const spaces = getService('spaces');
// FLAKY: https://github.com/elastic/kibana/issues/157722
describe.skip('Security', function () {
this.tags('includeFirefox');
describe('Security', function () {
// FLAKY: https://github.com/elastic/kibana/issues/157722
// this.tags('includeFirefox');
describe('Login Page', () => {
before(async () => {
await kibanaServer.savedObjects.cleanStandardList();

View file

@ -22,7 +22,6 @@ export default function spaceSelectorFunctionalTests({
]);
const spacesService = getService('spaces');
// Failing: See https://github.com/elastic/kibana/issues/142155
describe('Spaces', function () {
const testSpacesIds = ['another-space', ...Array.from('123456789', (idx) => `space-${idx}`)];
before(async () => {
@ -95,7 +94,8 @@ export default function spaceSelectorFunctionalTests({
});
});
describe('Search spaces in popover', () => {
describe('Search spaces in popover', function () {
this.tags('skipFirefox');
const spaceId = 'default';
before(async () => {
await PageObjects.security.forceLogout();
@ -127,7 +127,8 @@ export default function spaceSelectorFunctionalTests({
});
});
describe('Spaces Data', () => {
describe('Spaces Data', function () {
this.tags('skipFirefox');
const spaceId = 'another-space';
const sampleDataHash = '/tutorial_directory/sampleData';

View file

@ -6,9 +6,7 @@
*/
export default function ({ loadTestFile }) {
describe('watcher app', function () {
this.tags('includeFirefox');
describe('watcher app', () => {
loadTestFile(require.resolve('./watcher_test'));
});
}

View file

@ -20,8 +20,9 @@ export default function ({ getService, getPageObjects }) {
const esSupertest = getService('esSupertest');
const PageObjects = getPageObjects(['security', 'common', 'header', 'settings', 'watcher']);
// FLAKY: https://github.com/elastic/kibana/issues/157723
describe.skip('watcher_test', function () {
describe('watcher_test', function () {
// FLAKY: https://github.com/elastic/kibana/issues/157723
// this.tags('includeFirefox');
before('initialize tests', async () => {
// There may be system watches if monitoring was previously enabled
// These cannot be deleted via the UI, so we need to delete via the API

View file

@ -16,7 +16,6 @@ export default async function ({ readConfigFile }) {
require.resolve('./apps/infra'),
require.resolve('./apps/security'),
require.resolve('./apps/spaces'),
require.resolve('./apps/status_page'),
require.resolve('./apps/watcher'),
],