MitocGroup / recink

REciNK - Rethink Continuous Integration for JavaScript Applications
https://www.npmjs.org/package/recink
Mozilla Public License 2.0
14 stars 5 forks source link

Wrong behavior for e2e tests execution when using default `.recink.yml` template #150

Closed avozicov closed 6 years ago

avozicov commented 6 years ago

Please follow the provided steps to reproduce the issue:

.recink.yml example:

--- 
$:
  npm:
    dependencies:
      chai: 'latest'
  emit:
    # Files to include
    pattern:
      - /.+\.js$/i
    # Files to exclude
    ignore:
      - /^(.*\/)?node_modules(\/?$)?/i
  e2e:
    reporter: ~
    pattern:
      - /.+\.e2e\.js$/i
    ignore: ~
    screenshot:
      enabled: false                  
      path: 'path/to/screenshots'
      take-on-fail: false
    browsers:
      - chrome

e2e:
  root: './scripts/'

e2e script example from lovely TestCafe framework ;)

import { Selector } from 'testcafe';

fixture `My fixture`
    .page `http://devexpress.github.io/testcafe/example/`;

test('Assertion with Selector', async t => {
    const developerNameInput = Selector('#developer-name');

    await t
        .expect(developerNameInput.innerText).eql('')
        .typeText(developerNameInput, 'Peter')
        .expect(developerNameInput.innerText).eql('Peter');
});

Issue:

Please refer to attachment for more details: Screen Shot 2018-03-01 at 16.14.33.png

avozicov commented 6 years ago

Test Passed

To test just be sure to uncomment e2e section and add e2e root with valid test script in .recink.yml ;)

screen shot 2018-04-11 at 16 09 46
eistrati commented 6 years ago

Checked.