wdio-webcomponents icon indicating copy to clipboard operation
wdio-webcomponents copied to clipboard

Tests failing on Firefox

Open bennypowers opened this issue 6 years ago • 0 comments

Hello! Thank you for taking the initiative and publishing this plugin.

I've written some rudimentary tests, and they pass on chrome, but to a one, they fail on FF.

Here's an example of my tests. All my eve-foo elements are regular polymer 2 class elements.

suite('When logged out', () => {
  setup(() => {
    browser.url('/');
    browser.waitForVisible('eve-app eve-auth');
  });

  test('clicking auth menu opens login view', () => {
    browser.click('eve-app eve-auth');
    browser.isVisible('eve-app eve-auth #dropdown').should.be.true;
    browser.isVisible('eve-app eve-auth eve-auth-ui').should.be.true;
    browser.isVisible('eve-app eve-auth eve-confirm').should.be.false;
    browser.isVisible('eve-app eve-auth eve-profile-ui').should.be.false;
    browser.click('eve-app');
    browser.pause(500);
    browser.isVisible('eve-app eve-auth #dropdown').should.be.false;
  });

  test('clicking secondary button opens reset password dialog', () => {
    browser.click('eve-app eve-auth');
    browser.waitForVisible('eve-app eve-auth #dropdown', 500);
    // NOTE: Chrome barfed on this element when trying to click'er, so we JS it.
    // browser.click('eve-app eve-auth eve-auth-ui #secondaryButton');
    browser.execute(() => document.getElementById('app').$.auth.$.auth.$.secondaryButton.click());
    browser.isVisible('eve-app eve-auth eve-auth-ui eve-reset-password').should.be.true;
  });
});

The only test that passes is

  test('eve-app element should exist', () => {
    browser.isVisible('#app').should.be.true;
  });

bennypowers avatar Dec 23 '17 19:12 bennypowers