Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed chartsV8 dependency from chartsV9 testcase files. #32869

Merged

Conversation

v-asurse
Copy link
Contributor

Previous Behavior

ChartsV9 is using some dependency from chartsV8 in there testcase files.

New Behavior

Removed chartsV8 dependency from chartsV9 testcase files.

Removed dep.: 1. resetIds, 2. DarkTheme, 3. DefaultPalette, 4. mergeStyles.

Replace the 'ThemeProvider' with "FluentProvider".

@v-asurse v-asurse requested a review from a team as a code owner September 19, 2024 13:03
beforeEach(() => {
sharedBeforeEach();

root = document.createElement('div');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why removing this code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I push the new updates; I revert back the previous code and now only removed the "sharedBeforeEach();" line.

afterEach(sharedAfterEach);

test('Should reflect theme change', () => {
// Arrange
const { container } = render(
<ThemeProvider theme={DarkTheme}>
<FluentProvider theme={{ colorNeutralBackground1: '#ccc' }}>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which color does this #ccc represent? Like why are you checking for this specific color?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The color "#ccc" represents a light gray color. It is often used as a neutral background color and I take this color is referenced from the "react-components/react-portal-compat" package.

In the earlier VR stories for HorizontalBarChart and VerticalBarChart, they used the charts "1. HorizontalBarChartWithAxis, 2. VerticalStackedBarChart, 3. GroupedVerticalBarChart." However, these charts have not yet been defined or created in ChartsV9. Therefore, we have removed this code.
…ne chart.

And fixed 2 Vertical bar chart test cases.
@AtishayMsft AtishayMsft removed the request for review from a team September 27, 2024 09:25
@AtishayMsft AtishayMsft merged commit aa4861f into microsoft:usr/atisjai/chartsV9 Sep 27, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants