|
@@ -4,17 +4,20 @@ import {
|
|
|
Selector,
|
|
Selector,
|
|
|
InputPageObjectType,
|
|
InputPageObjectType,
|
|
|
InputPageObject,
|
|
InputPageObject,
|
|
|
|
|
+ PageObject,
|
|
|
} from 'e2e-test/core/pageObjects';
|
|
} from 'e2e-test/core/pageObjects';
|
|
|
import { TestPage } from 'e2e-test/core/pages';
|
|
import { TestPage } from 'e2e-test/core/pages';
|
|
|
|
|
|
|
|
export interface SaveDashboardModal {
|
|
export interface SaveDashboardModal {
|
|
|
name: InputPageObjectType;
|
|
name: InputPageObjectType;
|
|
|
save: ClickablePageObjectType;
|
|
save: ClickablePageObjectType;
|
|
|
|
|
+ success: PageObject;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const saveDashboardModal = new TestPage<SaveDashboardModal>({
|
|
export const saveDashboardModal = new TestPage<SaveDashboardModal>({
|
|
|
pageObjects: {
|
|
pageObjects: {
|
|
|
name: new InputPageObject(Selector.fromAriaLabel('Save dashboard title field')),
|
|
name: new InputPageObject(Selector.fromAriaLabel('Save dashboard title field')),
|
|
|
save: new ClickablePageObject(Selector.fromAriaLabel('Save dashboard button')),
|
|
save: new ClickablePageObject(Selector.fromAriaLabel('Save dashboard button')),
|
|
|
|
|
+ success: new PageObject(Selector.fromSelector('.alert-success')),
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|