The following code runs great when item evaluates as in the currently-commented-out line but the shadow-root associated line fails with this: browser.$(...).shadow$ is not a function. Any indications for why this might be?
const LoginPage = require('../pageobjects/login.page');
const SecurePage = require('../pageobjects/secure.page');
describe('My Login application', () => {
it('should login with valid credentials', async () => {
await browser.url(`https://our-site/`);
// const item = await browser.$('body > cs-app')
const item = await browser.$('body > cs-app').shadow$('#page > login-page');
await expect(item).toBeExisting();
});
});