use anyhow::Result; use obws::common::MediaAction; use time::Duration; use crate::common::{self, TEST_MEDIA}; #[tokio::test] async fn media_inputs() -> Result<()> { let client = common::new_client().await?; let client = client.media_inputs(); client.status(TEST_MEDIA).await?; client.set_cursor(TEST_MEDIA, Duration::seconds(1)).await?; client .offset_cursor(TEST_MEDIA, Duration::seconds(1)) .await?; client.trigger_action(TEST_MEDIA, MediaAction::Next).await?; Ok(()) }