-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The vue and vuex versions are pinned to what is currently provided by MediaWiki core. This patch needs some non-trivial changes to the jasmine tests: In order to be able to mutate the inEditMode prop, we need to wrap the component in a wrapper, because of vuejs/core#4874 not being fixed even a year later. That in turn prevents us from calling the methods defined on the component under test. Thus we need two functions to create new widgets depending on which part of the interface we want to test, methods or props. Also, this no longer asserts the internal inEditMode value, because 1) asserting internals is bad practice anyway, and 2) we no longer have access to that in the wrapped component. Bug: T304534 Change-Id: I82313a5eb6e8f19088de4a2e831666cdb656b1eb Co-Authored-By: Michael Große <[email protected]>
- Loading branch information
1 parent
d4175c8
commit 2a16c9e
Showing
13 changed files
with
489 additions
and
106 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.