How to use the ember-classy-page-object.attribute 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 ember-learn / ember-cli-addon-docs / tests / pages / api / module.js View on Github external
scope: '[data-test-item]',

      header: text('[data-test-item-header]'),
      importPath: text('[data-test-import-path]'),
      description: text('[data-test-item-description]'),

      params: collection({
        scope: '[data-test-item-params] [data-test-item-param]'
      })
    })
  }),

  // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
  editLink: {
    scope: '[data-test-edit-page-link]',
    href: attribute('href', 'a'),
  },

  // eslint-disable-next-line ember/avoid-leaking-state-in-ember-objects
  index: {
    scope: '[data-test-page-index]',

    items: collection({
      scope: '[data-test-index-item]'
    })
  }
});

export default ModulePage.create();