ember-modal-dialog icon indicating copy to clipboard operation
ember-modal-dialog copied to clipboard

click in acceptance tests stopped working for tether-dialog

Open kasunvp opened this issue 10 years ago • 0 comments

Earlier with version 0.7.7, in testing, having { tethered: false } in modal options that is passed to https://github.com/yapplabs/ember-modal-dialog/blob/master/tests/helpers/modal-asserts.js#L24 did work fine with click inside an opened modal.

example

let modalSelector = '#testModal';
test('example test', function(assert) {
  visit('/');

  andThen(function() {
    modalOptions.whileOpen = function() {
      click(`${modalSelector}`);
      andThen(function() {
        assert.equal(Ember.$('.check-element').length, 1, 'has the element');
      });
    };

    assert.dialogOpensAndCloses(modalOptions);
  });
});

But with the newest version: 0.8.2 This would return an Element not found error saying that it can't find the element (which is #testModal here)

This is a very critical issue we're facing in testing since we are following the TDD approach.

kasunvp avatar Oct 28 '15 11:10 kasunvp