[Discover] Fix failing tests due to log level badge colour changes in Borealis (#211329)

## Summary

This PR fixes functional tests that started failing due to changes to
log level badge colours in Borealis. I'm not sure why these started
failing or how the PR where it started passed CI, but based on the
timeline and test file changes, it looks like it's related to #210468.

cc @tkajtoch Maybe you have some idea what's going on here?

Resolves #211174.
Resolves #211215.

### 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/src/platform/packages/shared/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
- [x] [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
- [ ] 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 was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
This commit is contained in:
Davis McPhee 2025-02-18 23:03:04 -04:00 committed by GitHub
parent dd471d10b2
commit 767451dd0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,8 +26,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const browser = getService('browser');
const retry = getService('retry');
// Failing: See https://github.com/elastic/kibana/issues/211215
describe.skip('extension getCellRenderers', () => {
describe('extension getCellRenderers', () => {
before(async () => {
await PageObjects.svlCommonPage.loginAsViewer();
await esArchiver.loadIfNeeded('test/functional/fixtures/es_archiver/logstash_functional');
@ -38,8 +37,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
describe('ES|QL mode', () => {
// FLAKY: https://github.com/elastic/kibana/issues/211174
describe.skip('Log Level Badge Cell', () => {
describe('Log Level Badge Cell', () => {
it('should render log.level badge cell', async () => {
const state = kbnRison.encode({
dataSource: { type: 'esql' },
@ -60,7 +58,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const logLevelBadge = await firstCell.findByTestSubject('*logLevelBadgeCell-');
expect(await logLevelBadge.getVisibleText()).to.be('debug');
expect(await logLevelBadge.getComputedStyle('background-color')).to.be(
'rgba(232, 241, 255, 1)'
'rgba(189, 215, 255, 1)'
);
});
@ -201,7 +199,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
logLevelBadge = await firstCell.findByTestSubject('*logLevelBadgeCell-');
expect(await logLevelBadge.getVisibleText()).to.be('debug');
expect(await logLevelBadge.getComputedStyle('background-color')).to.be(
'rgba(232, 241, 255, 1)'
'rgba(189, 215, 255, 1)'
);
});
@ -218,7 +216,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
logLevelBadge = await firstCell.findByTestSubject('*logLevelBadgeCell-');
expect(await logLevelBadge.getVisibleText()).to.be('debug');
expect(await logLevelBadge.getComputedStyle('background-color')).to.be(
'rgba(232, 241, 255, 1)'
'rgba(189, 215, 255, 1)'
);
});
});