How to use the ember-cli-page-object.is 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 / session.js View on Github external
save: clickable('.done'),
      hasError: isVisible('.validation-error-message'),
    },
    supplemental: {
      scope: '.sessionsupplemental',
      isActive: is(':checked', 'input'),
      click: clickable('.toggle-yesno'),
    },
    specialAttire: {
      scope: '.sessionspecialattire',
      isActive: is(':checked', 'input'),
      click: clickable('.toggle-yesno'),
    },
    specialEquipment: {
      scope: '.sessionspecialequipment',
      isActive: is(':checked', 'input'),
      click: clickable('.toggle-yesno'),
    },
    attendanceRequired: {
      scope: '.sessionattendancerequired',
      isActive: is(':checked', 'input'),
      click: clickable('.toggle-yesno'),
    },
    toggleIlm: clickable('.toggle-yesno', { scope: '.independentlearningcontrol' }),
  },

  leadershipCollapsed,
  leadershipExpanded: {
    scope: '[data-test-session-leadership-expanded]',
    title: text('.title'),
    manage: clickable('.actions button'),
    save: clickable('.actions button.bigadd'),
github code-corps / code-corps-ember / tests / pages / components / payments / bank-account.js View on Github external
rendersAccountNumberField: isVisible('[name=account-number]'),
  rendersRoutingNumberField: isVisible('[name=routing-number]'),
  rendersSubmitButton:isVisible('button'),

  accountLast4Text: text('.bank-account__account p'),
  bankNameText: text('.bank-account__bank-name p'),
  routingNumberText: text('.bank-account__routing p'),

  accountNumber: fillable('[name=account-number]'),
  routingNumber: fillable('[name=routing-number]'),

  clickSubmit: clickable('button'),

  accountNumberFieldIsDisabled: is(':disabled', '[name=account-number]'),
  routingNumberFieldIsDisabled: is(':disabled', '[name=routing-number]'),
  submitButtonIsDisabled: is(':disabled', 'button')
};
github code-corps / code-corps-ember / tests / pages / components / donation / credit-card.js View on Github external
fillIn: fillable(),
    value: value()
  },

  cardYear: {
    scope: 'select.year',
    selectOption: selectable(),
    value: value()
  },

  clickSubmit: clickable('button.submit-card'),
  clickCancel: clickable('div.cancel-add-card a'),

  submitButtonIsVisible: isVisible('button.submit-card'),
  submitButtonText: text('button.submit-card'),
  submitDisabled: is(':disabled', 'button')
};
github code-corps / code-corps-ember / tests / pages / components / payments / funds-recipient / personal-id-number.js View on Github external
import { clickable, fillable, is, isVisible } from 'ember-cli-page-object';

export default {
  scope: '.personal-id-number',

  clickSubmit: clickable('button'),

  legalEntityPersonalIdNumber: fillable('input[type=text]'),
  legalEntityPersonalIdNumberFieldIsDisabled: is(':disabled', 'input[type=text]'),

  renderslegalEntityPersonalIdNumberField: isVisible('input[type=text]'),
  rendersSubmitButton: isVisible('button'),

  submitButtonIsDisabled: is(':disabled', 'button')
};