How to use the ember-cli-page-object.create function in ember-cli-page-object

To help you get started, we’ve selected a few ember-cli-page-object examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ilios / frontend / tests / pages / components / dashboard-myreports.js View on Github external
chooseObject: fillable('[data-test-report-object]'),
    objectCount: count('[data-test-report-object] option'),
    chooseAcademicYear: fillable('[data-test-report-year-filter]'),
    fillMeshSearch: fillable('[data-test-mesh-manager] [data-test-search-box] input'),
    runMeshSearch: clickable('[data-test-mesh-manager] [data-test-search-box] .search-icon'),
    meshSearchResults: collection('[data-test-search-results] li', {
      name: text('[data-test-name]'),
      pick: clickable()
    }),
    save: clickable('[data-test-report-save]'),
  }

};

export default definition;
export const component = create(definition);
github ilios / frontend / tests / pages / components / curriculum-inventory-verification-preview-table7.js View on Github external
title: text('[data-test-title]'),
  table: {
    scope: 'table',
    headings: collection('thead tr th'),
    rows: collection('tbody tr', {
      id: text('td', {at: 0}),
      title: text('td', {at: 1}),
      numSummative: text('td', {at: 2}),
      numFormative: text('td', {at: 3}),
    }),
    footer: collection('tfoot tr td'),
  },
};

export default definition;
export const component = create(definition);
github jelhan / croodle / tests / pages / create / index.js View on Github external
import PageObject from 'ember-cli-page-object';
import { defaultsForCreate } from 'croodle/tests/pages/defaults';
import { hasFocus } from 'croodle/tests/pages/helpers';

const {
  assign
} = Object;

const {
  fillable,
  visitable
} = PageObject;

export default PageObject.create(assign({}, defaultsForCreate, {
  pollType: fillable('.poll-type select'),
  pollTypeHasFocus: hasFocus('.poll-type select'),
  visit: visitable('/create')
}));