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

INT-3299: Fixed id prop logging a warning when it shouldn't #392

Merged
merged 8 commits into from
Jul 8, 2024

Conversation

danoaky-tiny
Copy link
Contributor

@danoaky-tiny danoaky-tiny commented Jun 17, 2024

Ticket: INT-3299

Changes:

  • Added an extra check for duplicate editor IDs. As well as checking if a current element exists with that ID, it checks that this element is not equal to the elementRef in the EditorComponent. If it is, it logs a warning as before.
  • Added PropTest.ts to test: that one editor instance with an ID does not log a warning, multiple editors with the same ID does log a warning and multiple editors with different IDs does not log a warning.
  • Added a captureLogs function.
  • Added chai and edited the eslint config to support it.

Relevant Github Issue: #374

@danoaky-tiny danoaky-tiny requested a review from a team as a code owner June 17, 2024 00:47
@danoaky-tiny danoaky-tiny requested review from spocke, TheSpyder and ltrouton and removed request for a team June 17, 2024 00:47
@danoaky-tiny danoaky-tiny marked this pull request as draft June 17, 2024 01:52
@danoaky-tiny danoaky-tiny marked this pull request as ready for review June 18, 2024 21:35
@danoaky-tiny danoaky-tiny merged commit 6ca801c into feature/INT-3298 Jul 8, 2024
3 checks passed
@danoaky-tiny danoaky-tiny deleted the feature/INT-3299 branch July 8, 2024 05:29
danoaky-tiny added a commit that referenced this pull request Jul 8, 2024
* INT-3298: Added TestHooks.ts

* INT-3298: Added TestHelpers.ts

* INT-3298: support for using minitature to specify tinymce version

* INT-3298: Migrated LoadTinyTest to BDD style

* INT-3298: throwTimeout message param is now optional

* INT-3298: Migrated NgZoneTest.ts to BDD style

* INT-3298: Initial migration changes to NgModelTest.ts

* INT-3298: Added a *Test.ts eslint override

* INT-3298: Refactored EditorFixture to extend ComponentFixture

* INT-3298: Increased skin load timeout

* INT-3298: loadedEditor$ is reset in now reset in a beforeEach

* INT-3298: Removed old tests in NgModelTest.ts

* INT-3298: Enabled `destroyAfterEach` teardown option

* INT-3298: Refactored TestHooks.ts to account for teardown option being turned on now

* INT-3298: Refactored migrated tests to new TestHooks.ts changes

* INT-3298: Refactor to use `eachVersionContext`

* INT-3298: `editorHook` can now be used with a single standalone component, removing the need for editorHookStandalone

* INT-3298: Migrated EventBlacklistingTest.ts to BDD style

Also removed TestStore.ts as it's no longer needed.

* INT-3298: Added **/test/ts/**/*.ts to test eslint override

* INT-3298: Moved fakeType to TestHelpers.ts

* INT-3298: Added FormGroup test with default and onpush change detection

* INT-3299: Fixed id prop logging a warning when it shouldn't (#392)

* INT-3299: Check that an existing element with an id does not equal the current elementRef

* INT-3299: Added captureLogs function

* INT-3299: Added chai package for testing as well allowing it in eslint

* INT-3299: Added PropTest.ts

* INT-3299: Removed a comment

* INT-3299: Increased timeout

* INT-3299: use a `pTryUntil` instead of `waitForEditorsToLoad`

* INT-3298: Added a changelog entry
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