Skip to content

nightmare running never called #532

@joeypedicini92

Description

@joeypedicini92

What are you trying to achieve?

Trying to run my scenario end to end without crashing

What do you get instead?

When it gets to the first line where I'm using yield it just stops, no error or anything.

[secondBranch]    [2] Queued | hook StepLogFilter._beforeStep()
[secondBranch]    [2] Queued | waitForElement: "#document-table"
[secondBranch]    Emitted | step.after (I wait for element "#document-table")
[secondBranch]    [2] Queued | hook Jsfailure._afterStep()
[secondBranch]    [2] Queued | return step result
[secondBranch]    Emitted | step.before (I execute script function(), {"path":"/fact/queue","factQueueTab":"a[href=\"/fact/queue\"]","docTypeFilterBox":"input[data-test=\"filter_by_document_type\"]","docTypeFilterInput":"input[placeholder=\"Add Document Type\"]","typeaheadSelections":"div[class=\"typeahead-suggestion\"]","applyFilterButton":"button[data-test=\"apply_filter\"]","documentTable":"#document-table","documentRow":"tbody > tr","startDateFilterInput":"input[data-test=\"start\"]"})
[secondBranch]    [2] Queued | hook StepLogFilter._beforeStep()
[secondBranch]    [2] Queued | executeScript: function(), {"path":"/fact/queue","factQueueTab":"a[href=\"/fact/queue\"]","docTypeFilterBox":"input[data-test=\"filter_by_document_type\"]","docTypeFilterInput":"input[placeholder=\"Add Document Type\"]","typeaheadSelections":"div[class=\"typeahead-suggestion\"]","applyFilterButton":"button[data-test=\"apply_filter\"]","documentTable":"#document-table","documentRow":"tbody > tr","startDateFilterInput":"input[data-test=\"start\"]"}
[secondBranch]    Emitted | step.after (I execute script function(), {"path":"/fact/queue","factQueueTab":"a[href=\"/fact/queue\"]","docTypeFilterBox":"input[data-test=\"filter_by_document_type\"]","docTypeFilterInput":"input[placeholder=\"Add Document Type\"]","typeaheadSelections":"div[class=\"typeahead-suggestion\"]","applyFilterButton":"button[data-test=\"apply_filter\"]","documentTable":"#document-table","documentRow":"tbody > tr","startDateFilterInput":"input[data-test=\"start\"]"})
[secondBranch]    [2] Queued | hook Jsfailure._afterStep()
[secondBranch]    [2] Queued | return step result
[secondBranch]    [2] Queued | create new promises queue for generator

Provide test source code if related

//line that it fails at
    let numDocs = yield I.executeScript((factQueue) => {
      return $(factQueue.documentRow).length;
    }, factQueue);

Details

  • CodeceptJS version: 0.5.1
  • NodeJS Version: 6.9.1
  • Operating System: ubuntu
  • Protractor || WebDriverIO || Nightmare version (if related) Nightmare 2.10.0
  • Configuration file:
  "tests": "./ui-tests/scenarios/*_test.js",
  "timeout": 10000,
  "output": "./ui-tests/output/test_data",
  "helpers": {
    "Nightmare": {
      "show": false,
      "waitForTimeout": 8000,
      "openDevTools": false,
      "restart": false,
      "typeInterval": 20
    },
    "StepLogFilter": {
      "require": "./ui-tests/helpers/steplogfilter_helper.js"
    },
    "WaitDontBreak": {
      "require": "./ui-tests/helpers/waitdontbreak_helper.js"
    },
    "Jsfailure": {
      "require": "./ui-tests/helpers/jsfailure_helper.js"
    }
  },
  "include": {
    "I": "./ui-tests/steps_file.js"
  },
  "bootstrap": "./ui-tests/setupdata.js",
  "mocha": {
    "reporterOptions": {
      "reportDir": "./ui-tests/output",
      "reportTitle": "Midas Staging",
      "reportPageTitle": "Midas Staging",
      "enableCode": false,
      "inlineAssets": true
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions