test: make sure all components can be created with document.createEle…#34977
Conversation
📊 Bundle size report✅ No changes found |
|
Pull request demo site: URL |
|
Should this instead create the element and insert it onto the page, then expect it to be attached? test('should create with `document.createElement()`', async ({ fastPage, page }) => {
const { element } = fastPage;
await fastPage.setTemplate('');
await page.evaluate(() => {
const node = document.createElement('fluent-accordion-item');
document.body.append(node);
});
await expect(element).toBeAttached();
}); |
@radium-v That will not catch this particular issue, because if the JS class has code to modify attribute (e.g. by calling |
Previous Behavior
No tests to make sure components can be created with
document.createElement().New Behavior
Added tests.