How to use the ember-classy-page-object/extend.findElement 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-header.js View on Github external
async reorderBy(deltaPosition) {
    let header = findElement(this);
    let targetElement = header;

    while (deltaPosition !== 0) {
      if (deltaPosition < 0) {
        deltaPosition++;
        targetElement = targetElement.previousElementSibling
          ? targetElement.previousElementSibling
          : targetElement;
      } else {
        deltaPosition--;
        targetElement = targetElement.nextElementSibling
          ? targetElement.nextElementSibling
          : targetElement;
      }
    }
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-body.js View on Github external
get rowCount() {
    return Number(findElement(this).getAttribute('data-test-row-count'));
  },
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-body.js View on Github external
async clickWith(options) {
      await click(findElement(this), options);
    },
github Addepar / ember-table / addon-test-support / pages / ember-table.js View on Github external
get containerWidth() {
    return findElement(this).offsetWidth;
  },
github Addepar / ember-table / addon-test-support / pages / ember-table.js View on Github external
get width() {
    return findElement(this, 'table').offsetWidth;
  },
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-header.js View on Github external
async clickWith(options) {
    await click(findElement(this), options);
  },
github Addepar / ember-table / addon-test-support / pages / -private / ember-table-header.js View on Github external
async resize(targetSize) {
    let resizeHandle = findElement(this, '.et-header-resize-area');

    if (!resizeHandle) {
      return;
    }

    let box = resizeHandle.getBoundingClientRect();
    let startX = (box.right + box.left) / 2;
    let deltaX = (targetSize - this.width) / getScale(resizeHandle);

    if (this.isFixedRight) {
      deltaX = -deltaX;
    }

    await mouseDown(resizeHandle, startX, resizeHandle.clientHeight / 2);
    await mouseMove(resizeHandle, startX + 20, resizeHandle.clientHeight / 2);
    await mouseMove(resizeHandle, startX + deltaX, resizeHandle.clientHeight / 2);