Skip to content

Conversation

@kdinev
Copy link
Member

@kdinev kdinev commented Mar 28, 2025

Closes #

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them

@kdinev kdinev requested a review from Copilot April 29, 2025 10:38
@kdinev kdinev marked this pull request as ready for review April 29, 2025 10:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the test setups by removing legacy calls to configureTestSuite() and replacing them with beforeEach(waitForAsync(…)) to improve test isolation and reliability. It also introduces a temporary fix for test fixture destruction by hardcoding component IDs and updates Karma configuration by removing an obsolete CSS file reference.

Reviewed Changes

Copilot reviewed 173 out of 175 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
projects/igniteui-angular/src/lib/chips/chip.spec.ts Replaces configureTestSuite with beforeEach and adds a fixed id assignment for fixture cleanup.
projects/igniteui-angular/src/lib/checkbox/checkbox.component.spec.ts Updates test setup from configureTestSuite to beforeEach and adds a fixed id for fixture destruction.
projects/igniteui-angular/src/lib/carousel/carousel.component.spec.ts Replaces deprecated configureTestSuite with beforeEach for TestBed configuration.
projects/igniteui-angular/src/lib/card/card.spec.ts Switches test initialization to beforeEach without using configureTestSuite.
projects/igniteui-angular/src/lib/calendar/month-picker/month-picker.component.spec.ts Uses beforeEach instead of configureTestSuite.
projects/igniteui-angular/src/lib/calendar/days-view/days-view.component.spec.ts Replaces beforeAll with beforeEach for asynchronous test setup.
projects/igniteui-angular/src/lib/calendar/calendar.component.spec.ts Updates test configuration pattern from beforeAll to beforeEach.
projects/igniteui-angular/src/lib/calendar/calendar-multi-view.component.spec.ts Uses beforeEach rather than configureTestSuite for TestBed initialization.
projects/igniteui-angular/src/lib/buttonGroup/buttongroup.component.spec.ts Switches test setup to beforeEach from the legacy configureTestSuite.
projects/igniteui-angular/src/lib/banner/banner.component.spec.ts Adopts beforeEach for asynchronous test initialization and removes configureTestSuite.
projects/igniteui-angular/src/lib/badge/badge.component.spec.ts Replaces configureTestSuite with beforeEach for TestBed configuration.
projects/igniteui-angular/src/lib/avatar/avatar.component.spec.ts Removes legacy test configuration helper in favor of beforeEach.
projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-pinning-actions.component.spec.ts Updates test setup from configureTestSuite to beforeEach.
projects/igniteui-angular/src/lib/action-strip/grid-actions/grid-editing-actions.component.spec.ts Replaces deprecated initialization pattern with beforeEach.
projects/igniteui-angular/src/lib/action-strip/action-strip.component.spec.ts Modifies test configuration to utilize beforeEach instead of configureTestSuite.
projects/igniteui-angular/src/lib/accordion/accordion.component.spec.ts Moves test initialization from beforeAll to beforeEach and removes configureTestSuite.
projects/igniteui-angular/karma.watch.conf.js Removes obsolete global CSS file reference to streamline test execution.
projects/igniteui-angular/karma.conf.js Removes the igniteui-angular.css reference to update the Karma configuration.
Files not reviewed (2)
  • angular.json: Language not supported
  • package.json: Language not supported
Comments suppressed due to low confidence (2)

projects/igniteui-angular/karma.watch.conf.js:11

  • Removal of the global CSS file reference may affect component styling in tests; please verify that the required global styles are loaded through an alternative configuration.
{ pattern: '../../dist/igniteui-angular/styles/igniteui-angular.css', watched: false }

projects/igniteui-angular/karma.conf.js:12

  • Ensure that removing the igniteui-angular.css reference does not inadvertently omit essential global styles needed for consistent styling in tests.
{ pattern: '../../dist/igniteui-angular/styles/igniteui-angular.css', watched: false }

@damyanpetev damyanpetev changed the base branch from master to 19.2.x April 29, 2025 10:53
@damyanpetev damyanpetev merged commit 8374b56 into 19.2.x Apr 29, 2025
5 checks passed
@damyanpetev damyanpetev deleted the tests-refactor branch April 29, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants