Hey I have following problem with qunit acceptance test:
test('', assert => {
selectSearch('.address-lookup', '359 Paterson Road');
fillIn('input.mailing-address-city', 'Arlington');
fillIn('input.mailing-address-postal-code', '76002');
andThen(() => {
const discoverDriverBtn = find('.discover-driver-button')
click(discoverDriverBtn);
});
})
button .discover-driver-button
is in template in if
statement whe all inputs are filled
I see this button in qunit preview when running test and after stopping it I can find it in console
yet test is failing with message:
Error: Element [object Object] not found.
when I deleted if
from view and displayed button all time the test passed
I think it might be connected somehow with run loop
Aucun commentaire:
Enregistrer un commentaire