import { TextCompareStrategy } from "../page-element/page-element";
import { PageElementButton } from "../page-element/page-element-button";
import { PageElementSnackbar } from "../page-element/page-element-snack-bar";

export const defaultUpdateEntityPageStructure = {
  saveButton: () => new PageElementButton({
    id: '#saveButton',
    text: 'Save'
  }),

  snackBarCreationSuccess: () => new PageElementSnackbar({
    id: 'simple-snack-bar',
    text: 'Create operation success.',
    textCompareStrategy: TextCompareStrategy.INCLUDES
  }),
  snackBarEditionSuccess: () => new PageElementSnackbar({
    id: 'simple-snack-bar',
    text: 'Update operation success.',
    textCompareStrategy: TextCompareStrategy.INCLUDES
  }),
  snackBarDeletionSuccess: () => new PageElementSnackbar({
    id: 'simple-snack-bar',
    text: 'Delete operation success.',
    textCompareStrategy: TextCompareStrategy.INCLUDES
  }),
}
