mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Metrics UI] Re-enabled saved view tests (#108725)
* [Metrics UI] Re-enabled saved view tests * Adding ensureViewIsLoadable back in Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
e8e53e36e5
commit
d4b4b0e7b0
3 changed files with 4 additions and 7 deletions
|
@ -87,8 +87,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/106660
|
||||
describe.skip('Saved Views', () => {
|
||||
describe('Saved Views', () => {
|
||||
before(() => esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_and_logs'));
|
||||
after(() => esArchiver.unload('x-pack/test/functional/es_archives/infra/metrics_and_logs'));
|
||||
it('should have save and load controls', async () => {
|
||||
|
|
|
@ -87,8 +87,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
});
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/106651
|
||||
describe.skip('Saved Views', () => {
|
||||
describe('Saved Views', () => {
|
||||
before(() => esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_and_logs'));
|
||||
after(() => esArchiver.unload('x-pack/test/functional/es_archives/infra/metrics_and_logs'));
|
||||
describe('save functionality', () => {
|
||||
|
|
|
@ -79,9 +79,8 @@ export function InfraSavedViewsProvider({ getService }: FtrProviderContext) {
|
|||
},
|
||||
|
||||
async ensureViewIsLoadable(name: string) {
|
||||
const subjects = await testSubjects.getVisibleTextAll('savedViews-loadList');
|
||||
const includesName = subjects.some((s) => s.includes(name));
|
||||
expect(includesName).to.be(true);
|
||||
const subject = await testSubjects.find('savedViews-loadList');
|
||||
await subject.findByCssSelector(`li[title="${name}"]`);
|
||||
},
|
||||
|
||||
async closeSavedViewsLoadModal() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue