Polymer / pwa-starter-kit

Starter templates for building full-featured Progressive Web Apps from web components.
https://pwa-starter-kit.polymer-project.org
2.36k stars 431 forks source link

routing test error for webpack template #372

Closed jperera84 closed 4 years ago

jperera84 commented 5 years ago

Hi there, I've created an application using the webpack template, trying to run the integration test for routing.js and it always failed:

1) routing tests
       the page selector switches pages:
     Error: Timeout of 25000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/jpmorales/Documents/Projects/bo/test/integration/router.js)
      at listOnTimeout (internal/timers.js:531:17)
      at processTimers (internal/timers.js:475:7)

I don't know if this is actually a problem that I'm having because I didn't changed at all the example tests I did only change the page I need to test:

it('the page selector switches pages', async function() {
    await page.goto(`${appUrl}`);
    await page.waitForSelector('bo-app', {visible: true});

    await testNavigation(page, 'dashboard', 'dashboard');

  });

Something that worries me is if I run the application using webpack-dev-server --env.mode development and instead I try polymer serve it loads in the index.html with the bo-app component empty. Wonder if that is something that it is braking the tests because it actually use polymer serve to run the integration tests. Running this in Mac OS environment.