guest promotion (#3969)

Release Notes:

- Adds the ability to promote read-only guests to read-write
participants in calls
This commit is contained in:
Conrad Irwin 2024-01-09 22:21:13 -07:00 committed by GitHub
commit 5d3f5611e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 579 additions and 163 deletions

View file

@ -290,6 +290,11 @@ impl TestAppContext {
}
}
/// Wait until there are no more pending tasks.
pub fn run_until_parked(&mut self) {
self.background_executor.run_until_parked()
}
/// Simulate dispatching an action to the currently focused node in the window.
pub fn dispatch_action<A>(&mut self, window: AnyWindowHandle, action: A)
where
@ -552,7 +557,8 @@ use derive_more::{Deref, DerefMut};
pub struct VisualTestContext {
#[deref]
#[deref_mut]
cx: TestAppContext,
/// cx is the original TestAppContext (you can more easily access this using Deref)
pub cx: TestAppContext,
window: AnyWindowHandle,
}