Skip to content

Commit

Permalink
Fix getUserMedia E2E test (#120)
Browse files Browse the repository at this point in the history
Co-authored-by: alexlapa <[email protected]>
  • Loading branch information
rogurotus and alexlapa authored Jul 13, 2023
1 parent a98e527 commit c3a601a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
5 changes: 3 additions & 2 deletions e2e/tests/features/get_user_media.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ Feature: `getUserMedia()` requests
Then Alice's `Room.on_failed_local_stream()` fires 1 time

Scenario: Member tries to enable audio and video and its `getUserMedia()` errors
Given room with joined member Alice and Bob
Given room with joined member Alice and Bob with disabled media publishing
And Alice's `getUserMedia()` errors
When Alice enables video and audio in local media settings
When Alice enables video and awaits it errors
When Alice enables audio and awaits it errors
Then Alice doesn't have live local tracks

Scenario: Latency in `getUserMedia()` request
Expand Down
40 changes: 20 additions & 20 deletions flutter/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: "4897882604d919befd350648c7f91926a9d5de99e67b455bf0917cc2362f4bb8"
sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
url: "https://pub.dev"
source: hosted
version: "47.0.0"
version: "61.0.0"
analyzer:
dependency: transitive
dependency: "direct overridden"
description:
name: analyzer
sha256: "690e335554a8385bc9d787117d9eb52c0c03ee207a607e593de3c9d71b1cfe80"
sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
url: "https://pub.dev"
source: hosted
version: "4.7.0"
version: "5.13.0"
archive:
dependency: transitive
description:
Expand Down Expand Up @@ -141,10 +141,10 @@ packages:
dependency: transitive
description:
name: dart_style
sha256: "7a03456c3490394c8e7665890333e91ae8a49be43542b616e414449ac358acd4"
sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55"
url: "https://pub.dev"
source: hosted
version: "2.2.4"
version: "2.3.2"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -220,17 +220,17 @@ packages:
dependency: "direct main"
description:
name: freezed_annotation
sha256: aeac15850ef1b38ee368d4c53ba9a847e900bb2c53a4db3f6881cbb3cb684338
sha256: c3fd9336eb55a38cc1bbd79ab17573113a8deccd0ecbbf926cca3c62803b5c2d
url: "https://pub.dev"
source: hosted
version: "2.2.0"
version: "2.4.1"
fuchsia_remote_debug_protocol:
dependency: transitive
description: flutter
source: sdk
version: "0.0.0"
gherkin:
dependency: transitive
dependency: "direct dev"
description:
name: gherkin
sha256: c3e0c98b305a94ec8c015038529a1c8c6ea3b0953619514e76647407efb66d7f
Expand Down Expand Up @@ -278,18 +278,18 @@ packages:
dependency: transitive
description:
name: json_annotation
sha256: "3520fa844009431b5d4491a5a778603520cdc399ab3406332dcc50f93547258c"
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
url: "https://pub.dev"
source: hosted
version: "4.7.0"
version: "4.8.1"
json_serializable:
dependency: "direct dev"
description:
name: json_serializable
sha256: f3c2c18a7889580f71926f30c1937727c8c7d4f3a435f8f5e8b0ddd25253ef5d
sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969
url: "https://pub.dev"
source: hosted
version: "6.5.4"
version: "6.7.1"
lints:
dependency: transitive
description:
Expand Down Expand Up @@ -421,10 +421,10 @@ packages:
dependency: transitive
description:
name: pubspec_parse
sha256: "75f6614d6dde2dc68948dffbaa4fe5dae32cd700eb9fb763fe11dfb45a3c4d0a"
sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367
url: "https://pub.dev"
source: hosted
version: "1.2.1"
version: "1.2.3"
puppeteer:
dependency: transitive
description:
Expand Down Expand Up @@ -474,18 +474,18 @@ packages:
dependency: transitive
description:
name: source_gen
sha256: "2d79738b6bbf38a43920e2b8d189e9a3ce6cc201f4b8fc76be5e4fe377b1c38d"
sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16
url: "https://pub.dev"
source: hosted
version: "1.2.6"
version: "1.4.0"
source_helper:
dependency: transitive
description:
name: source_helper
sha256: "3b67aade1d52416149c633ba1bb36df44d97c6b51830c2198e934e3fca87ca1f"
sha256: "6adebc0006c37dd63fe05bca0a929b99f06402fc95aa35bf36d67f5c06de01fd"
url: "https://pub.dev"
source: hosted
version: "1.3.3"
version: "1.3.4"
source_span:
dependency: transitive
description:
Expand Down
6 changes: 5 additions & 1 deletion flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ dev_dependencies:
flutter_lints: ^2.0.1
flutter_test:
sdk: flutter
gherkin: ^3.1.0
integration_test:
sdk: flutter
json_serializable: ^6.3.1
json_serializable: ^6.6.2

dependency_overrides:
# TODO: Remove when `flutter_gherkin` updates.
analyzer: ^5.12.0

flutter:
assets:
Expand Down
2 changes: 1 addition & 1 deletion flutter/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dev_dependencies:
freezed: ^2.2.0
gherkin: ^3.1.0
import_sorter: ^4.6.0
json_serializable: ^6.3.1
json_serializable: ^6.6.2

# TODO: Remove once `flutter_gherkin` updates.
dependency_overrides:
Expand Down
1 change: 1 addition & 0 deletions flutter/test/e2e/suite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ final testConfigs = FlutterTestConfiguration(
.create(world.roomId, Room(world.roomId, {}));
return world;
}),
defaultTimeout: const Duration(seconds: 30),
reporters: [
StdoutReporter(MessageLevel.verbose)
..setWriteLineFn(print)
Expand Down

0 comments on commit c3a601a

Please sign in to comment.