How to use the ember-cli-page-object.isPresent 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 travis-ci / travis-web / tests / pages / profile.js View on Github external
function githubAppsRepositoryCollection(scope) {
  return collection(`${scope} li.profile-repolist-item`, {
    name: text('a.profile-repo'),

    isPublic: isPresent('.icon.public'),
    isPrivate: isPresent('.icon.private'),

    settings: {
      scope: '.profile-settings',
      isDisabled: hasClass('disabled')
    }
  });
}
github travis-ci / travis-web / tests / pages / plans.js View on Github external
thanks: {
    scope: PLANS_THANKS_PAGE_CONTAINER,
    isPresent: isPresent(),

    title: {
      scope: PLANS_THANKS_PAGE_TITLE,
      isPresent: isPresent(),
      text: text(),
    },
    image: {
      scope: PLANS_THANKS_PAGE_IMAGE,
      isPresent: isPresent(),
    },
    body: {
      scope: PLANS_THANKS_PAGE_BODY,
      isPresent: isPresent(),
      text: text(),
    },
    button: {
      scope: PLANS_THANKS_PAGE_BUTTON,
      isPresent: isPresent(),
      text: text(),
    },
  },
});
github ilios / frontend / tests / pages / components / sessions-grid.js View on Github external
canExpand: hasClass('link', '[data-test-expand-collapse-control] svg'),
    expandTitle: text('[data-test-expand-collapse-control] title'),
    title: text('span', { at: 1 }),
    visit: clickable('span:nth-of-type(2) a'),
    type: text('span', { at: 2 }),
    groupCount: text('span', { at: 3 }),
    objectiveCount: text('span', { at: 4 }),
    termCount: text('span', { at: 5 }),
    firstOffering: text('span', { at: 6 }),
    offeringCount: text('span', { at: 7 }),
    status: text('span', { at: 8 }),
    offerings,
    noOfferings: text('[data-test-no-offerings]'),
    trash: clickable('[data-test-actions] .remove'),
    confirm: clickable('[data-test-confirm-removal] [data-test-yes]'),
    hasInstructionalNotes: isPresent('[data-test-status] .instructional-notes'),
  }),
  expandedSessions: collection('[data-test-expanded-session]'),
};