mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
df0d679ea8
commit
f4afba33eb
1 changed files with 19 additions and 18 deletions
|
@ -71,24 +71,25 @@ export default function ({ getService, getPageObjects }) {
|
|||
expect(rowCount).to.be(2);
|
||||
});
|
||||
|
||||
it('should allow for cancelling overrides', async function () {
|
||||
await PageObjects.settings.navigateTo();
|
||||
await PageObjects.settings.clickKibanaSavedObjects();
|
||||
await PageObjects.settings.importFile(path.join(__dirname, 'exports', '_import_objects.json'));
|
||||
await PageObjects.common.clickConfirmOnModal();
|
||||
await PageObjects.settings.importFile(path.join(__dirname, 'exports', '_import_objects.json'));
|
||||
await PageObjects.common.clickCancelOnModal(true);
|
||||
await PageObjects.common.clickConfirmOnModal();
|
||||
await PageObjects.settings.clickVisualizationsTab();
|
||||
const rowCount = await retry.try(async () => {
|
||||
const rows = await PageObjects.settings.getVisualizationRows();
|
||||
if (rows.length !== 2) {
|
||||
throw 'Not loaded yet';
|
||||
}
|
||||
return rows.length;
|
||||
});
|
||||
expect(rowCount).to.be(2);
|
||||
});
|
||||
// Flaky: https://github.com/elastic/kibana/issues/15384
|
||||
// it('should allow for cancelling overrides', async function () {
|
||||
// await PageObjects.settings.navigateTo();
|
||||
// await PageObjects.settings.clickKibanaSavedObjects();
|
||||
// await PageObjects.settings.importFile(path.join(__dirname, 'exports', '_import_objects.json'));
|
||||
// await PageObjects.common.clickConfirmOnModal();
|
||||
// await PageObjects.settings.importFile(path.join(__dirname, 'exports', '_import_objects.json'));
|
||||
// await PageObjects.common.clickCancelOnModal(true);
|
||||
// await PageObjects.common.clickConfirmOnModal();
|
||||
// await PageObjects.settings.clickVisualizationsTab();
|
||||
// const rowCount = await retry.try(async () => {
|
||||
// const rows = await PageObjects.settings.getVisualizationRows();
|
||||
// if (rows.length !== 2) {
|
||||
// throw 'Not loaded yet';
|
||||
// }
|
||||
// return rows.length;
|
||||
// });
|
||||
// expect(rowCount).to.be(2);
|
||||
// });
|
||||
|
||||
it('should handle saved searches and objects with saved searches properly', async function () {
|
||||
await PageObjects.settings.navigateTo();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue