i have no experience with web development , but recently i had started develop my website using emberJs framework . Now the issue is that queryselectionAll generate an error when i write this code:
// [list-scalatutorials-testJs]
test('List of Programming Tutorials', async function(assert){
await visit('/');
assert.equal(this.element.querySelectionAll('.listing').length, 'Tutorials Display');
});
it works but results are not display …
Error received
failed@ 284 ms
Expected:
"Display listing"
Result:
36
Diff:
"Display listing"36
Source:
at Object.<anonymous> (http://localhost:7357/assets/tests.js:14:14)
Template:
{{#each model as |tutorial|}}
<article class = "listing">
<h3>{{tutorial.no}}</h3>
<div class = "topic name">
<span>Name:</span>{{tutorial.name}}
</div>
</article>
{{/each}}
Kindly Help me