My below test always fails as protractor cannot find the element by tag name.
it('should show test component',async () => {
await browser.get('/trade')
element(by.tagName(('test-component'))).isPresent()
.then(value=>{
console.log(value ,'first')
expect(value).toBeTruthy()
});
})
I have tried the same code in other test spec but it worked. What am I doing wrong here?