Skip to content

Commit

Permalink
[docs-infra] Skip shadow DOM regression test (#43500)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah authored Aug 28, 2024
1 parent f71b23a commit 029eb3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

export default function ShadowDOMDemo() {
export default function ShadowDOMDemoNoSnap() {
return (
<iframe
title="codesandbox"
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/customization/shadow-dom/shadow-dom.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ const theme = createTheme({

In the example below you can see that the component outside of the shadow DOM is affected by global styles, while the component inside of the shadow DOM is not:

{{"demo": "ShadowDOMDemo.js", "hideToolbar": true, "bg": true}}
{{"demo": "ShadowDOMDemoNoSnap.js", "hideToolbar": true, "bg": true}}
4 changes: 3 additions & 1 deletion test/regressions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ importRegressionFixtures.keys().forEach((path) => {
}, []);

const blacklist = [
// Excludes demos that we don't want
/^docs-(.*)(?<=NoSnap)\.png$/,
// Blog template components and theme customizations
'docs-getting-started-templates-blog/Blog.png',
'docs-getting-started-templates-blog/TemplateFrame.png',
Expand Down Expand Up @@ -254,7 +256,7 @@ function excludeDemoFixture(suite, name) {
}

// assume regex
if (pattern.test(suite)) {
if (pattern.test(`${suite}/${name}.png`)) {
unusedBlacklistPatterns.delete(pattern);
return true;
}
Expand Down

0 comments on commit 029eb3b

Please sign in to comment.