samedi 8 juillet 2017

Fetching canvas width using Ember test id

<rect data-test-id="drawingboard" id="drawingboard-1-ember1135" width="200" height="300" transform="translate(-792, -612)" class="artboard"></rect>

Below snippet gives me 0 instead of 200

test ('create-figure-with-markers', async function(assert){
const k = find(testSelector('drawing-board'));
var vid = $('.artboard').width();
var vid2 = $('k').width();})
var vid3 = $('k').attr(width);

What is the right approach




Aucun commentaire:

Enregistrer un commentaire