How to use the ember-classy-page-object.alias function in ember-classy-page-object

To help you get started, we’ve selected a few ember-classy-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 Addepar / ember-table / addon-test-support / pages / -private / ember-table-body.js View on Github external
checkbox: {
      scope: '[data-test-select-row]',
      isChecked: property('checked'),

      async clickWith(options) {
        await click(findElement(this), options);
      },
    },

    checkboxContainer: {
      scope: '[data-test-select-row-container]',

      isHidden: hasClass('et-speech-only'),
    },

    toggleSelect: alias('checkbox.click'),

    collapse: {
      scope: '[data-test-collapse-row]',
      isCollapsed: property('checked'),
    },

    toggleCollapse: alias('collapse.click'),

    isSelected: hasClass('is-selected'),

    /**
      Helper function to click with options like the meta key and ctrl key set

      @param {Object} options - click event options
    */
    async clickWith(options) {
github Addepar / ember-table / addon-test-support / pages / ember-table.js View on Github external
* Page object for table header.
   */
  header: EmberTableHeaderPage,

  /**
   * Page object for table body.
   */
  body: EmberTableBodyPage,

  /**
   * Page object for table footer.
   */
  footer: EmberTableFooterPage,

  rows: alias('body.rows'),
  getCell: alias('body.getCell'),

  headers: alias('header.headers'),
  footers: alias('footer.footers'),

  /**
   * Returns the table width.
   */
  get width() {
    return findElement(this, 'table').offsetWidth;
  },

  /**
   * Returns the table container width.
   */
  get containerWidth() {
    return findElement(this).offsetWidth;
github Addepar / ember-table / addon-test-support / pages / ember-table.js View on Github external
/**
   * Page object for table body.
   */
  body: EmberTableBodyPage,

  /**
   * Page object for table footer.
   */
  footer: EmberTableFooterPage,

  rows: alias('body.rows'),
  getCell: alias('body.getCell'),

  headers: alias('header.headers'),
  footers: alias('footer.footers'),

  /**
   * Returns the table width.
   */
  get width() {
    return findElement(this, 'table').offsetWidth;
  },

  /**
   * Returns the table container width.
   */
  get containerWidth() {
    return findElement(this).offsetWidth;
  },

  /**
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-body.js View on Github external
},

    checkboxContainer: {
      scope: '[data-test-select-row-container]',

      isHidden: hasClass('et-speech-only'),
    },

    toggleSelect: alias('checkbox.click'),

    collapse: {
      scope: '[data-test-collapse-row]',
      isCollapsed: property('checked'),
    },

    toggleCollapse: alias('collapse.click'),

    isSelected: hasClass('is-selected'),

    /**
      Helper function to click with options like the meta key and ctrl key set

      @param {Object} options - click event options
    */
    async clickWith(options) {
      await click(findElement(this), options);
    },

    doubleClick: triggerable('dblclick'),
  }),

  /**
github Addepar / ember-table / addon-test-support / pages / ember-table.js View on Github external
/**
   * Page object for table header.
   */
  header: EmberTableHeaderPage,

  /**
   * Page object for table body.
   */
  body: EmberTableBodyPage,

  /**
   * Page object for table footer.
   */
  footer: EmberTableFooterPage,

  rows: alias('body.rows'),
  getCell: alias('body.getCell'),

  headers: alias('header.headers'),
  footers: alias('footer.footers'),

  /**
   * Returns the table width.
   */
  get width() {
    return findElement(this, 'table').offsetWidth;
  },

  /**
   * Returns the table container width.
   */
  get containerWidth() {
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-header.js View on Github external
},

  /**
    Helper function to click with options like the meta key and ctrl key set

    @param {Object} options - click event options
  */
  async clickWith(options) {
    await click(findElement(this), options);
  },

  isSortable: hasClass('is-sortable'),

  sort: SortPage,
  sortIndicator: alias('sort.indicator'),
  sortToggle: alias('sort.toggle'),

  resizeHandle: ResizePage,
});

export default {
  scope: 'thead',

  /**
   * List of columns in the header.
   */
  headers: collection('th', Header),

  /**
    Returns the number of rows in the footer.
  */
  get rowCount() {
github Addepar / ember-table / addon-test-support / pages / ember-table.js View on Github external
header: EmberTableHeaderPage,

  /**
   * Page object for table body.
   */
  body: EmberTableBodyPage,

  /**
   * Page object for table footer.
   */
  footer: EmberTableFooterPage,

  rows: alias('body.rows'),
  getCell: alias('body.getCell'),

  headers: alias('header.headers'),
  footers: alias('footer.footers'),

  /**
   * Returns the table width.
   */
  get width() {
    return findElement(this, 'table').offsetWidth;
  },

  /**
   * Returns the table container width.
   */
  get containerWidth() {
    return findElement(this).offsetWidth;
  },
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-header.js View on Github external
await mouseUp(header, startX + deltaX, header.clientHeight / 2);
  },

  /**
    Helper function to click with options like the meta key and ctrl key set

    @param {Object} options - click event options
  */
  async clickWith(options) {
    await click(findElement(this), options);
  },

  isSortable: hasClass('is-sortable'),

  sort: SortPage,
  sortIndicator: alias('sort.indicator'),
  sortToggle: alias('sort.toggle'),

  resizeHandle: ResizePage,
});

export default {
  scope: 'thead',

  /**
   * List of columns in the header.
   */
  headers: collection('th', Header),

  /**
    Returns the number of rows in the footer.
  */