Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .changeset/ripe-queens-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
"@fluentui-react-native/avatar": patch
"@fluentui-react-native/badge": patch
"@fluentui-react-native/button": patch
"@fluentui-react-native/checkbox": patch
"@fluentui-react-native/chip": patch
"@fluentui-react-native/contextual-menu": patch
"@fluentui-react-native/divider": patch
"@fluentui-react-native/input": patch
"@fluentui-react-native/link": patch
"@fluentui-react-native/menu": patch
"@fluentui-react-native/notification": patch
"@fluentui-react-native/persona": patch
"@fluentui-react-native/persona-coin": patch
"@fluentui-react-native/radio-group": patch
"@fluentui-react-native/stack": patch
"@fluentui-react-native/switch": patch
"@fluentui-react-native/tablist": patch
"@fluentui-react-native/text": patch
"@fluentui-react-native/drawer": patch
"@fluentui-react-native/dropdown": patch
"@fluentui-react-native/experimental-shimmer": patch
"@fluentui-react-native/spinner": patch
---

Pin Win32 and macOS component color token values in platform-specific snapshots.

Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('DesktopAgent', () => {
await harness.close();
fs.rmSync(artifactsRoot, { force: true, recursive: true });
}
});
}, 60_000);

test('validates the artifact root before reserving a target session', async () => {
const harness = await createDesktopDriverTestHarness();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('WebdriverIO compatibility', () => {
} finally {
await harness.close();
}
});
}, 60_000);
});

function runContract(url: string, target: string): Promise<Record<string, unknown>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('sanctioned WebdriverIO API', () => {
await harness.close();
fs.rmSync(artifactsRoot, { force: true, recursive: true });
}
});
}, 60_000);
});

function runContract(url: string, targetId: string, artifactsRoot: string): Promise<Record<string, unknown>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';

jest.setTimeout(30_000);

describe('representative desktop story tests', () => {
test('runs actual WDIO stories and guards complete catalog migration and type coverage', async () => {
const artifactsRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'representative-story-plans-'));
Expand Down Expand Up @@ -33,7 +31,7 @@ describe('representative desktop story tests', () => {
} finally {
fs.rmSync(artifactsRoot, { force: true, recursive: true });
}
});
}, 120_000);
});

function runContract(artifactsRoot: string): Promise<Record<string, unknown>> {
Expand Down
1 change: 1 addition & 0 deletions packages/components/Avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"devDependencies": {
"@babel/core": "catalog:",
"@fluentui-react-native/scripts": "workspace:*",
"@fluentui-react-native/test-tools": "workspace:*",
"@office-iss/react-native-win32": "^0.81.8",
"@react-native-community/cli": "^20.0.0",
"@react-native-community/cli-platform-android": "^20.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createColorPinningTheme, resolveV1ColorTokens } from '@fluentui-react-native/test-tools';

import { stylingSettings } from './Avatar.styling';

it('pins Avatar color tokens on macOS', () => {
const theme = createColorPinningTheme();

expect(resolveV1ColorTokens(stylingSettings.tokens, theme)).toMatchSnapshot();
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { createColorPinningTheme, resolveV1ColorTokens } from '@fluentui-react-native/test-tools';

import { stylingSettings } from './Avatar.styling';

it('pins Avatar color tokens on Win32', () => {
const theme = createColorPinningTheme();

expect(resolveV1ColorTokens(stylingSettings.tokens, theme)).toMatchSnapshot();
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`pins Avatar color tokens on macOS 1`] = `
{
"anchor": {
"backgroundColor": "#bcc3c7",
"color": "#202427",
"iconColor": "#202427",
"ringColor": "#394146",
},
"backgroundColor": "#e6e6e6",
"beige": {
"backgroundColor": "#d7d4d4",
"color": "#444241",
"iconColor": "#444241",
"ringColor": "#7a7574",
},
"blue": {
"backgroundColor": "#a9d3f2",
"color": "#004377",
"iconColor": "#004377",
"ringColor": "#0078d4",
},
"borderColor": "#f0f0f0",
"brand": {
"backgroundColor": "#0078d4",
"color": "#ffffff",
"iconColor": "#ffffff",
"ringColor": "#00000000",
},
"brass": {
"backgroundColor": "#e0cea2",
"color": "#553e06",
"iconColor": "#553e06",
"ringColor": "#986f0b",
},
"brown": {
"backgroundColor": "#ddc3b0",
"color": "#50301a",
"iconColor": "#50301a",
"ringColor": "#8e562e",
},
"burgundy": {
"backgroundColor": "#e4afb2",
"color": "#5c1519",
"iconColor": "#5c1519",
"ringColor": "#a4262c",
},
"color": "#616161",
"cornflower": {
"backgroundColor": "#c8d1fa",
"color": "#2c3c85",
"iconColor": "#2c3c85",
"ringColor": "#4f6bed",
},
"cranberry": {
"backgroundColor": "#eeacb2",
"color": "#6e0811",
"iconColor": "#6e0811",
"ringColor": "#c50f1f",
},
"darkGreen": {
"backgroundColor": "#9ad29a",
"color": "#063b06",
"iconColor": "#063b06",
"ringColor": "#0b6a0b",
},
"darkRed": {
"backgroundColor": "#d69ca5",
"color": "#420610",
"iconColor": "#420610",
"ringColor": "#750b1c",
},
"forest": {
"backgroundColor": "#bdd99b",
"color": "#294903",
"iconColor": "#294903",
"ringColor": "#498205",
},
"gold": {
"backgroundColor": "#ecdfa5",
"color": "#6c5700",
"iconColor": "#6c5700",
"ringColor": "#c19c00",
},
"grape": {
"backgroundColor": "#d9a7e0",
"color": "#4c0d55",
"iconColor": "#4c0d55",
"ringColor": "#881798",
},
"hotPink": {
"backgroundColor": "#f7adda",
"color": "#7f004e",
"iconColor": "#7f004e",
"ringColor": "#e3008c",
},
"iconColor": "#616161",
"lavender": {
"backgroundColor": "#d2ccf8",
"color": "#3f3682",
"iconColor": "#3f3682",
"ringColor": "#7160e8",
},
"lightTeal": {
"backgroundColor": "#a6e9ed",
"color": "#00666d",
"iconColor": "#00666d",
"ringColor": "#00b7c3",
},
"lilac": {
"backgroundColor": "#e6bfed",
"color": "#63276d",
"iconColor": "#63276d",
"ringColor": "#b146c2",
},
"magenta": {
"backgroundColor": "#eca5d1",
"color": "#6b0043",
"iconColor": "#6b0043",
"ringColor": "#bf0077",
},
"marigold": {
"backgroundColor": "#f9e2ae",
"color": "#835b00",
"iconColor": "#835b00",
"ringColor": "#eaa300",
},
"mink": {
"backgroundColor": "#cecccb",
"color": "#343231",
"iconColor": "#343231",
"ringColor": "#5d5a58",
},
"navy": {
"backgroundColor": "#a3b2e8",
"color": "#001665",
"iconColor": "#001665",
"ringColor": "#0027b4",
},
"neutral": {
"backgroundColor": "#e6e6e6",
"color": "#616161",
"iconColor": "#616161",
"ringColor": "#00000000",
},
"orchid": {
"backgroundColor": "#d7caea",
"color": "#4c3867",
"iconColor": "#4c3867",
"ringColor": "#8764b8",
},
"peach": {
"backgroundColor": "#ffddb3",
"color": "#8f4e00",
"iconColor": "#8f4e00",
"ringColor": "#ff8c00",
},
"pink": {
"backgroundColor": "#f7c0e3",
"color": "#80215d",
"iconColor": "#80215d",
"ringColor": "#e43ba6",
},
"platinum": {
"backgroundColor": "#cdd6d8",
"color": "#3b4447",
"iconColor": "#3b4447",
"ringColor": "#69797e",
},
"plum": {
"backgroundColor": "#d696c0",
"color": "#43002b",
"iconColor": "#43002b",
"ringColor": "#77004d",
},
"pumpkin": {
"backgroundColor": "#efc4ad",
"color": "#712d09",
"iconColor": "#712d09",
"ringColor": "#ca5010",
},
"purple": {
"backgroundColor": "#c6b1de",
"color": "#341a51",
"iconColor": "#341a51",
"ringColor": "#5c2e91",
},
"red": {
"backgroundColor": "#f1bbbc",
"color": "#751d1f",
"iconColor": "#751d1f",
"ringColor": "#d13438",
},
"ringColor": "#00000000",
"royalBlue": {
"backgroundColor": "#9abfdc",
"color": "#002c4e",
"iconColor": "#002c4e",
"ringColor": "#004e8c",
},
"seafoam": {
"backgroundColor": "#a8f0cd",
"color": "#00723b",
"iconColor": "#00723b",
"ringColor": "#00cc6a",
},
"steel": {
"backgroundColor": "#94c8d4",
"color": "#00333f",
"iconColor": "#00333f",
"ringColor": "#005b70",
},
"teal": {
"backgroundColor": "#9bd9db",
"color": "#02494c",
"iconColor": "#02494c",
"ringColor": "#038387",
},
}
`;
Loading
Loading