I am testing a webpage and need to use this repeater and model to make sure that the correct text was entered.
I tried doing this to get the expected text to match what I want:
expect(element.all(by.repeater('n in [].constructor(product.config.num_streamers) track by $index')).get(1).all(by.model('name.value')).getAttribute('value')).toEqual("testtext");
My issue is its showing an object with brackets instead of just text in quotes. This is my failed exception.: Expected [ 'testtext' ] to equal 'testtext'.
The only reason this fails is because there are open and closing brackets with a space. Could someone help me find a solution and explain why the brackets appear?
Aucun commentaire:
Enregistrer un commentaire