mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
parent
d42e2be2ef
commit
aed73026a5
1 changed files with 10 additions and 2 deletions
|
@ -173,8 +173,16 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
|
|||
}
|
||||
|
||||
async clickEdit() {
|
||||
log.debug('Clicking edit');
|
||||
return await testSubjects.click('dashboardEditMode');
|
||||
log.debug('Switching to edit mode');
|
||||
await testSubjects.click('dashboardEditMode');
|
||||
// wait until the count of dashboard panels equals the count of toggle menu icons
|
||||
await retry.waitFor('in edit mode', async () => {
|
||||
const [panels, menuIcons] = await Promise.all([
|
||||
testSubjects.findAll('dashboardPanel'),
|
||||
testSubjects.findAll('dashboardPanelToggleMenuIcon'),
|
||||
]);
|
||||
return panels.length === menuIcons.length;
|
||||
});
|
||||
}
|
||||
|
||||
async getIsInViewMode() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue