Skip to content

Commit

Permalink
unskip tests for chrome, fix tags (#158405)
Browse files Browse the repository at this point in the history
## Summary

With Firefox update to v113 on our CI workers, we noticed that tests are
run slower and more often fail with timeouts.
Unfortunately our auto-skip functionality skip the test suite
completely, meaning it won't run on Chrome as well.

This PR unskips the firefox failed test to run on Chrome, I also fix the
labels for some suites to run only sub set of tests for now.
  • Loading branch information
dmlemeshko authored May 26, 2023
1 parent e7ddab7 commit 5d4eec5
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 21 deletions.
8 changes: 5 additions & 3 deletions test/functional/apps/visualize/group5/_tsvb_time_series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions x-pack/test/functional/apps/infra/home_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const testSubjects = getService('testSubjects');

// Failing: See https://github.com/elastic/kibana/issues/157713
// Fails on both Chrome and Firefox
describe.skip('Home page', function () {
this.tags('includeFirefox');
before(async () => {
Expand Down
7 changes: 3 additions & 4 deletions x-pack/test/functional/apps/infra/hosts_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
5 changes: 3 additions & 2 deletions x-pack/test/functional/apps/infra/metrics_explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
});

// FLAKY: https://github.com/elastic/kibana/issues/157738
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();
Expand Down
6 changes: 3 additions & 3 deletions x-pack/test/functional/apps/security/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 4 additions & 3 deletions x-pack/test/functional/apps/spaces/spaces_selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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';

Expand Down
4 changes: 1 addition & 3 deletions x-pack/test/functional/apps/watcher/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
*/

export default function ({ loadTestFile }) {
describe('watcher app', function () {
this.tags('includeFirefox');

describe('watcher app', () => {
loadTestFile(require.resolve('./watcher_test'));
});
}
5 changes: 3 additions & 2 deletions x-pack/test/functional/apps/watcher/watcher_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion x-pack/test/functional/config.firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
],

Expand Down

0 comments on commit 5d4eec5

Please sign in to comment.