1) I'm using acceptance test cases using Qunit for my home or Landing page.
2) I used all my home page logic in application.js route.
3) I created application-test file. Below are code.
import { test } from 'qunit';
import moduleForAcceptance from 'landingui/tests/helpers/module-for-acceptance';
moduleForAcceptance('Acceptance | application');
test('visiting /', function (assert) {
visit('/');
andThen(function () {
assert.equal(currentURL(), '/');
});
});
4) When I run my test cases its failing. Below are error which occurred.
Acceptance | application: visiting / (1, 1, 2)Rerun1668 ms
okay@ 1018 ms
Promise rejected after "visiting /": Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.@ 1649 ms
Source:
Error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
at clear (http://localhost:8080/assets/vendor.js:26486:20)
at RenderResult.destroy (http://localhost:8080/assets/vendor.js:31483:13)
at RootState.destroy (http://localhost:8080/assets/vendor.js:43036:24)
at InteractiveRenderer._clearAllRoots (http://localhost:8080/assets/vendor.js:43280:22)
at InteractiveRenderer.destroy (http://localhost:8080/assets/vendor.js:43177:18)
at destroyDestroyables (http://localhost:8080/assets/vendor.js:34043:15)
at Container.destroy (http://localhost:8080/assets/vendor.js:33801:7)
at Backburner._run (http://localhost:8080/assets/vendor.js:33569:35)
at Backburner.run (http://localhost:8080/assets/vendor.js:33258:25)
at run (http://localhost:8080/assets/vendor.js:50002:29)
Please help to fix this issue.
Aucun commentaire:
Enregistrer un commentaire