Skip to content

fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers#60480

Closed
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:platform-browser-testing
Closed

fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers#60480
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:platform-browser-testing

Conversation

@alan-agius4
Copy link
Copy Markdown
Contributor

@alan-agius4 alan-agius4 commented Mar 20, 2025

Previously, platformBrowserTesting did not include any platformBrowser providers, causing an inconsistency with platformBrowserDynamicTesting.

This update resolves the issue by restructuring platform inheritance to ensure proper provider inclusion:

  • platformCore → platformBrowser → platformBrowserTesting
  • platformBrowser → platformBrowserDynamic → platformBrowserDynamicTesting

Now, platformBrowserTesting correctly inherits from platformBrowser, aligning with the expected behavior.

Note: This change is needed to remove @angular/platform-browser-dynamic from newly generated apps.

@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Mar 20, 2025
@ngbot ngbot bot added this to the Backlog milestone Mar 20, 2025
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Mar 20, 2025
`platformBrowserTesting` currently does not include the right providers. See: angular/angular#60480
@alan-agius4 alan-agius4 force-pushed the platform-browser-testing branch 2 times, most recently from 5c2ffcd to 5bd6a04 Compare March 20, 2025 07:58
@alan-agius4 alan-agius4 changed the title fix(platform-browser): Ensure platformBrowserTesting includes platformBrowser providers fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers Mar 20, 2025
@alan-agius4 alan-agius4 force-pushed the platform-browser-testing branch from 5bd6a04 to 55f6222 Compare March 20, 2025 08:43
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Mar 20, 2025
@alan-agius4 alan-agius4 force-pushed the platform-browser-testing branch from 55f6222 to 6466e9f Compare March 20, 2025 08:50
…formBrowser` providers

Previously, `platformBrowserTesting` did not include any `platformBrowser` providers, causing an inconsistency with `platformBrowserDynamicTesting`.

This update resolves the issue by restructuring platform inheritance to ensure proper provider inclusion:

- `platformCore → platformBrowser → platformBrowserTesting`
- `platformBrowser → platformBrowserDynamic → platformBrowserDynamicTesting`

Now, `platformBrowserTesting` correctly inherits from `platformBrowser`, aligning with the expected behavior.
@alan-agius4 alan-agius4 force-pushed the platform-browser-testing branch from 6466e9f to 72ffdc6 Compare March 20, 2025 08:55
@alan-agius4
Copy link
Copy Markdown
Contributor Author

alan-agius4 commented Mar 20, 2025

Caretaker note: This requires a build file update in G3. See cl/738717205 also the API changes are just import renames.

@alan-agius4 alan-agius4 added the merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note label Mar 20, 2025
@alan-agius4
Copy link
Copy Markdown
Contributor Author

alan-agius4 commented Mar 20, 2025

TGP
TGP Deflake

@alan-agius4 alan-agius4 added the action: global presubmit The PR is in need of a google3 global presubmit label Mar 20, 2025
@alan-agius4 alan-agius4 marked this pull request as ready for review March 20, 2025 11:44
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: global presubmit The PR is in need of a google3 global presubmit labels Mar 20, 2025
alan-agius4 added a commit to angular/angular-cli that referenced this pull request Mar 20, 2025
`platformBrowserTesting` currently does not include the right providers. See: angular/angular#60480
Copy link
Copy Markdown
Contributor

@thePunderWoman thePunderWoman left a comment

Choose a reason for hiding this comment

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

LGTM

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker PullApprove: disable and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 20, 2025
@alxhub
Copy link
Copy Markdown
Member

alxhub commented Mar 20, 2025

This PR was merged into the repository by commit 70bdb88.

The changes were merged into the following branches: main, 19.2.x

alxhub pushed a commit that referenced this pull request Mar 20, 2025
…formBrowser` providers (#60480)

Previously, `platformBrowserTesting` did not include any `platformBrowser` providers, causing an inconsistency with `platformBrowserDynamicTesting`.

This update resolves the issue by restructuring platform inheritance to ensure proper provider inclusion:

- `platformCore → platformBrowser → platformBrowserTesting`
- `platformBrowser → platformBrowserDynamic → platformBrowserDynamicTesting`

Now, `platformBrowserTesting` correctly inherits from `platformBrowser`, aligning with the expected behavior.

PR Close #60480
@alxhub alxhub closed this in 70bdb88 Mar 20, 2025
@alan-agius4 alan-agius4 deleted the platform-browser-testing branch March 20, 2025 19:35
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants