mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Addressing test failures with a11y tests on management (#65758)
fixing test failure #60470
This commit is contained in:
parent
a3d3ae9661
commit
7526db98e8
2 changed files with 16 additions and 20 deletions
|
@ -49,14 +49,18 @@ interface TabsProps extends Pick<RouteComponentProps, 'history' | 'location'> {
|
|||
};
|
||||
}
|
||||
|
||||
const searchAriaLabel = i18n.translate('kbn.management.editIndexPattern.fields.searchAria', {
|
||||
defaultMessage: 'Search fields',
|
||||
});
|
||||
|
||||
const filterAriaLabel = i18n.translate('kbn.management.editIndexPattern.fields.filterAria', {
|
||||
defaultMessage: 'Filter',
|
||||
defaultMessage: 'Filter field types',
|
||||
});
|
||||
|
||||
const filterPlaceholder = i18n.translate(
|
||||
'kbn.management.editIndexPattern.fields.filterPlaceholder',
|
||||
{
|
||||
defaultMessage: 'Filter',
|
||||
defaultMessage: 'Search',
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -108,7 +112,7 @@ export function Tabs({ config, indexPattern, fields, services, history, location
|
|||
value={fieldFilter}
|
||||
onChange={e => setFieldFilter(e.target.value)}
|
||||
data-test-subj="indexPatternFieldFilter"
|
||||
aria-label={filterAriaLabel}
|
||||
aria-label={searchAriaLabel}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
{type === TAB_INDEXED_FIELDS && indexedFieldTypes.length > 0 && (
|
||||
|
@ -118,6 +122,7 @@ export function Tabs({ config, indexPattern, fields, services, history, location
|
|||
value={indexedFieldTypeFilter}
|
||||
onChange={e => setIndexedFieldTypeFilter(e.target.value)}
|
||||
data-test-subj="indexedFieldTypeFilterDropdown"
|
||||
aria-label={filterAriaLabel}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
)}
|
||||
|
|
|
@ -20,23 +20,12 @@
|
|||
import { FtrProviderContext } from '../ftr_provider_context';
|
||||
|
||||
export default function({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const PageObjects = getPageObjects(['common', 'settings']);
|
||||
const PageObjects = getPageObjects(['common', 'settings', 'header']);
|
||||
const esArchiver = getService('esArchiver');
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const testSubjects = getService('testSubjects');
|
||||
const a11y = getService('a11y');
|
||||
|
||||
// describe('Management', () => {
|
||||
// before(async () => {
|
||||
// await esArchiver.loadIfNeeded('logstash_functional');
|
||||
// await kibanaServer.uiSettings.update({
|
||||
// defaultIndex: 'logstash-*',
|
||||
// });
|
||||
// await PageObjects.common.navigateToApp('settings');
|
||||
// });
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/60470
|
||||
describe.skip('Management', () => {
|
||||
describe('Management', () => {
|
||||
before(async () => {
|
||||
await esArchiver.load('discover');
|
||||
await esArchiver.loadIfNeeded('logstash_functional');
|
||||
|
@ -57,23 +46,25 @@ export default function({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
it('Single indexpattern view', async () => {
|
||||
await PageObjects.settings.clickIndexPatternLogstash();
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
it('Create Index pattern wizard', async () => {
|
||||
it('Open create index pattern wizard', async () => {
|
||||
await PageObjects.settings.clickKibanaIndexPatterns();
|
||||
await (await testSubjects.find('createIndexPatternButton')).click();
|
||||
await PageObjects.settings.clickAddNewIndexPatternButton();
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
// index patterns page
|
||||
// We are navigating back to index pattern page to test field formatters
|
||||
it('Navigate back to logstash index page', async () => {
|
||||
await PageObjects.settings.clickKibanaIndexPatterns();
|
||||
await PageObjects.settings.clickIndexPatternLogstash();
|
||||
await a11y.testAppSnapshot();
|
||||
});
|
||||
|
||||
// Issue: https://github.com/elastic/kibana/issues/60030
|
||||
// Will be enabling this and field formatters after this issue is addressed: https://github.com/elastic/kibana/issues/60030
|
||||
it.skip('Edit field type', async () => {
|
||||
await PageObjects.settings.clickEditFieldFormat();
|
||||
await a11y.testAppSnapshot();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue