xolvio / chimp

Tooling that helps you do quality, faster.
MIT License
798 stars 139 forks source link

webdriverio plugins #644

Closed joscha closed 6 years ago

joscha commented 7 years ago
Expected behaviour

Loading a webdriverio plugin (https://github.com/percy/percy-webdriverio).

Actual behaviour

Plugins seem to be ignored, e.g. a chimp.js with:

module.exports = {
  jsonOutput: 'target/cucumber/report.json',
  path: 'src',
  profile: 'integration-tests',
  saveScreenshotsToReport: true,
  screenshotsPath: 'target/cucumber/screenshots',
  showXolvioMessages: false,
  webdriverio: {
    plugins: {
      'percy-webdriverio': {}
    }
  }
};

doesn't seem to load percy-webdriverio.

Exact steps to reproduce / repository that demonstrates the problem

Please put long code snips in a Gist and provide a link here.

Version & tools:
Console / Log Output
1) Scenario: Layer opens - src/ui/layer/features/layer.feature:4
   Step: Before
   Step Definition: src/features/step_definitions/general.steps.ts:17
   Message:
     TypeError: browser.percyUseAssetLoader is not a function
         at World.<anonymous> (src/features/step_definitions/general.steps.ts:25:15)

2) Scenario: Layer opens - src/ui/layer/features/layer.feature:4
   Step: After
   Step Definition: src/features/step_definitions/general.steps.ts:29
   Message:
     TypeError: browser.percyFinalizeBuild is not a function
         at World.<anonymous> (src/features/step_definitions/general.steps.ts:31:15)

Join our Slack xolv.io/community #chimp channel, where you can find help and help others.

samhatoum commented 6 years ago

this won't work with chimp as you need to use the wdio runner to use plugins AFAIK

percy looks awesome though. I'll look into integrating it to chimp 2.0