core-components icon indicating copy to clipboard operation
core-components copied to clipboard

webdriver hinders local development

Open skjalgepalg opened this issue 4 years ago • 1 comments
trafficstars

Current postinstall script blocks running npm install for some developers.

Short term alternatives:

  • Global install webdriver-manager (dubious fix)
  • Remove postinstall script

Longer term:

  • Migrate away from protractor for local testing.
    • Use jest or similar framework
  • Setup remote tests using whichever framework is chosen in above task
  • While at it, look into running tests for React components also

skjalgepalg avatar Nov 03 '21 09:11 skjalgepalg

Hi!

I think at the time it was decided to use protractor because jsdom (used by some other testing frameworks) did not support custom elements. https://static.nrk.no/core-components/latest/index.html#testing.

That might have changed, but I'm not sure :-)

htor avatar Jun 28 '22 06:06 htor