Skip to content

Commit

Permalink
[tests] Skip JSDOM in style related conformance tests (mui#24668)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova authored and natac13 committed Jan 30, 2021
1 parent 14a5bad commit 576aea2
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions test/utils/describeConformanceV5.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ function testThemeStyleOverrides(element, getOptions) {
const render = createClientRender();

describe('theme: style overrides', () => {
it("respect theme's styleOverrides custom state", () => {
it("respect theme's styleOverrides custom state", function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { muiName, testStateOverrides } = getOptions();

if (!testStateOverrides) {
Expand Down Expand Up @@ -102,7 +106,11 @@ function testThemeStyleOverrides(element, getOptions) {
expect(container.firstChild).to.toHaveComputedStyle(testStyle);
});

it("respect theme's styleOverrides slots", () => {
it("respect theme's styleOverrides slots", function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { muiName, testDeepOverrides } = getOptions();

const testStyle = {
Expand Down Expand Up @@ -185,7 +193,11 @@ function testThemeVariants(element, getOptions) {
const render = createClientRender();

describe('theme: variants', () => {
it("respect theme's variants", () => {
it("respect theme's variants", function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}

const { muiName, testVariantProps = {} } = getOptions();

const testStyle = {
Expand Down

0 comments on commit 576aea2

Please sign in to comment.