fix: A/B test 18: music playlist facepile avatar model

This commit is contained in:
ThetaDev 2024-11-25 16:42:00 +01:00
parent a846b729e3
commit 6c8108c94a
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
10 changed files with 9765 additions and 31 deletions

View file

@ -37,6 +37,7 @@ pub enum ABTest {
ChannelShortsLockup = 15,
PlaylistPageHeader = 16,
ChannelPlaylistsLockup = 17,
MusicPlaylistFacepile = 18,
}
/// List of active A/B tests that are run when none is manually specified
@ -114,6 +115,7 @@ pub async fn run_test(
ABTest::ChannelShortsLockup => channel_shorts_lockup(&query).await,
ABTest::PlaylistPageHeader => playlist_page_header_renderer(&query).await,
ABTest::ChannelPlaylistsLockup => channel_playlists_lockup(&query).await,
ABTest::MusicPlaylistFacepile => music_playlist_facepile(&query).await,
}
.unwrap();
pb.inc(1);
@ -391,3 +393,18 @@ pub async fn channel_playlists_lockup(rp: &RustyPipeQuery) -> Result<bool> {
.await?;
Ok(res.contains("\"lockupViewModel\""))
}
pub async fn music_playlist_facepile(rp: &RustyPipeQuery) -> Result<bool> {
let id = "VLPL1J-6JOckZtE_P9Xx8D3b2O6w0idhuKBe";
let res = rp
.raw(
ClientType::DesktopMusic,
"browse",
&QBrowse {
browse_id: id,
params: None,
},
)
.await?;
Ok(res.contains("\"facepile\""))
}