Benoit Marty
29356b96c1
Merge pull request #3554 from element-hq/feature/bma/testEmptyTimeline
...
Add unit tests on TimelineItemsSubscriber
2024-10-02 14:04:48 +02:00
Jorge Martin Espinosa
eeec7cc785
Centralise the DI code generation logic ( #3562 )
...
* Create Anvil extension helper
* Use the helper everywhere
2024-09-30 12:20:28 +00:00
Benoit Marty
f89463c3a1
Remove runCancellableScopeTest and runCancellableScopeTestWithTestScope, we can use TestScope.backgroundScope instead.
2024-09-27 18:37:16 +02:00
Benoit Marty
f61df38e55
Migrate license to AGPL.
...
Run script `uv run license-editor --repository ../element-x-android`
2024-09-06 17:19:19 +02:00
ganfra
0b32dbebb5
tests : refactor some classes
2024-07-31 21:14:29 +02:00
Jorge Martin Espinosa
b0cebf5ca0
Improve screenshot testing with ComposablePreviewScanner ( #3125 )
...
* Use ComposablePreviewScanner to rework how screenshot testing works
* Add test sharding
* Update screenshots
* Fixes for Element Gallery
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2024-07-03 13:05:06 +02:00
Benoit Marty
5d086ad82d
Fix moar ktlint issues
2024-01-11 10:02:10 +01:00
renovate[bot]
c8bd362397
Update plugin ktlint to v12.1.0 ( #2200 )
...
* Update plugin ktlint to v12.1.0
* Run `./gradlew ktlintFormat` and fix some issues manually.
* Fix other issues reproted by Ktlint
* Limit false positives, KtLint removes unnecessary curly brace in String templates.
* Remove useless Unit
* Minor improvements over ktlint changes
* Restore `AlertDialogContent` behaviour
* Update screenshots
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benoit Marty <benoit@matrix.org>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-01-10 16:22:24 +01:00
Benoit Marty
a02c5c2b44
Add test for DefaultNotificationDrawerManager
2023-11-27 16:44:47 +01:00
Benoit Marty
b4cc11ec1e
Test coverage: Add test on DefaultNavigationStateService
2023-10-24 17:17:15 +02:00
ganfra
5ec6d7c235
Navigation: fix test and update log.
2023-09-26 11:06:49 +02:00
ganfra
e285e01673
NavigationStateService : do not throw error but just log and returns
2023-09-25 20:45:29 +02:00
Benoit Marty
7083abcf09
migrate object to data object ( #1135 )
2023-08-24 09:32:44 +02:00
Jorge Martin Espinosa
9247cd765a
Fix: make sure we ignore notifications for open rooms ( #867 )
...
* Make sure we ignore notifications for open rooms
- Listen to process lifecycle changes in `AppForegroundStateService`. Use initializers to reliable create it.
- Merge `AppNavigationState` with `AppForegroundState`. Renamed the previous `AppNavigationState` to `NavigationState`, created a new `AppNavigationState` which contains both the navigation state and the foreground state.
2023-07-17 17:02:06 +02:00
Florian Renaud
719dd20555
Remove useless OptIn in tests
2023-05-12 10:05:39 +02:00
Jorge Martin Espinosa
de010545fb
Update Gradle to 8.1 and AGP to v8.0 ( #329 )
...
* Update AGP to 8.0.0.
* Set JAVA_HOME to JDK17
* Update lint version.
* Use right JDK for dependency analysis, replace deprecated env var.
* Upgrade to Gradle 8.1.
* Remove `@Supress(DSL_SCOPE_VIOLATION)` as it's no longer needed.
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-17 08:49:52 +00:00
ganfra
f001460a3a
Merge branch 'develop' into feature/fga/clean_up
2023-04-14 17:15:40 +02:00
ganfra
776e9bd221
Add some tests on RoomFlowNode
2023-04-14 15:34:41 +02:00
Benoit Marty
3854e879e9
Fix test
2023-04-13 16:18:28 +02:00
ganfra
29f3d6d725
AppNav: introduce a owner param so we avoid crash on AppNavigationState when switching quickly between screens
2023-04-12 15:45:53 +02:00
Jorge Martin Espinosa
5033e9582c
Fix lint issues that prevented CI from passing ( #310 )
2023-04-10 09:00:02 +02:00
Benoit Marty
1faedca69d
Add some tests (mainly imported from EA). Also change type from String to SessionId, RoomId, etc.
2023-04-05 16:59:17 +02:00
Benoit Marty
6aeb94fa15
Add some shortcuts
2023-04-05 16:59:17 +02:00
Benoit Marty
63fabed8ce
Introduce AppNavigationStateService.
2023-03-16 11:30:09 +01:00