Skip to content

feat(test_runner): support live Firebase and HTTP under flutter test#2321

Open
sharjeelyunus wants to merge 12 commits into
mainfrom
feat/ensemble-test-runner-live-firebase
Open

feat(test_runner): support live Firebase and HTTP under flutter test#2321
sharjeelyunus wants to merge 12 commits into
mainfrom
feat/ensemble-test-runner-live-firebase

Conversation

@sharjeelyunus

Copy link
Copy Markdown
Member

Bridge Cloud Functions, Auth, and Firestore pigeon calls to HTTPS so YAML app tests can exercise real backends without native plugins. Preserve route settings for navigation waits, register startTimer delay timers for lifecycle cleanup, and keep unit tests free of real credentials.

Bridge Cloud Functions, Auth, and Firestore pigeon calls to HTTPS so YAML
app tests can exercise real backends without native plugins. Preserve
route settings for navigation waits, register startTimer delay timers for
lifecycle cleanup, and keep unit tests free of real credentials.
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

…bility

Removed unused HTTP override logic from various files and simplified the implementation of HTTP client creation. Enhanced code formatting for better readability and maintainability.
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Replaced direct construction of HttpResponse with a dedicated method to convert MockAPIResponse to a runtime-compatible format. This change enhances code clarity and maintainability by centralizing response formatting logic.
…der overlay

Updated the ensemble test runner to utilize a new TestApiProviderOverlay, enhancing the handling of API mocks and improving the clarity of API interactions. This change includes renaming and refactoring related components to streamline the testing process and ensure better maintainability.
…test vocabulary

Eliminated unused API mock steps such as `mockNetworkOffline`, `mockNetworkOnline`, `expectApiRequest`, `expectApiRequestContains`, and `expectApiHeader` from the test vocabulary and related files. This refactor enhances clarity and maintainability of the test runner by focusing on essential functionalities.
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

…oved clarity

Modified the logStorage functionality to log all public storage values when no key is provided, enhancing its usability. Updated the schema and examples in the ensemble_tests_schema.json to reflect changes in fixture paths and descriptions, ensuring consistency across the test runner. Introduced an optionalStorageKey argument kind to streamline the handling of storage keys.
… vocabulary

Eliminated deprecated state handling steps such as `setState`, `expectState`, and related assertions from the test runner. This refactor enhances clarity and maintainability by focusing on essential functionalities, while also updating the associated documentation and schema to reflect these changes.
@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

…larity

Updated the 'wait' step to utilize real-time delays with runAsync, improving its functionality. Modified the associated schema to include a new 'keychain' property, ensuring better organization and clarity in the test definitions. Adjusted related documentation and tests to reflect these changes.
@cursor

cursor Bot commented Jul 10, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Updated the ExtendedStepHandlers to log storage and screenshot actions by writing output to files, improving traceability of test results. Introduced a new method for capturing the widget tree and logging API call counts, ensuring better organization of test artifacts. Adjusted related tests to verify the existence and content of generated log files.
… are available

Implemented a new method to load application fonts from the FontManifest.json, enhancing the test harness's ability to handle font dependencies. Added a test to verify that font loading is safe even when the manifest is unavailable, ensuring robustness in the testing environment.
… support

Added support for capturing screenshots with device frames in the test runner. Updated the schema to include new properties for device frame, platform, and model in screenshot steps. Introduced a new utility for resolving screenshot devices based on platform and model, and updated related tests to verify the new functionality. This enhancement improves the visual fidelity of screenshots captured during tests.
…lated logic

Eliminated the deviceFrame property from the ensemble tests schema and refactored related logic in the screenshot handling to streamline the screenshot functionality. Updated tests to reflect these changes, ensuring that the default device model is now iPhone 15 Pro. This refactor enhances clarity and simplifies the screenshot capturing process.
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.

1 participant