tests: fix check for A/B test 6 (discography page)
This commit is contained in:
parent
ba9403a089
commit
4780096b00
1 changed files with 14 additions and 3 deletions
|
|
@ -231,9 +231,20 @@ pub async fn trends_page_header_renderer(rp: &RustyPipeQuery) -> Result<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn discography_page(rp: &RustyPipeQuery) -> Result<bool> {
|
pub async fn discography_page(rp: &RustyPipeQuery) -> Result<bool> {
|
||||||
let artist = rp.music_artist("UC7cl4MmM6ZZ2TcFyMk_b4pg", false).await?;
|
let id = "UC7cl4MmM6ZZ2TcFyMk_b4pg";
|
||||||
|
let res = rp
|
||||||
Ok(artist.albums.len() <= 10)
|
.raw(
|
||||||
|
ClientType::DesktopMusic,
|
||||||
|
"browse",
|
||||||
|
&QBrowse {
|
||||||
|
context: rp.get_context(ClientType::DesktopMusic, true, None).await,
|
||||||
|
browse_id: id,
|
||||||
|
params: None,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
|
Ok(res.contains(&format!("\"MPAD{id}\"")))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn short_date_format(rp: &RustyPipeQuery) -> Result<bool> {
|
pub async fn short_date_format(rp: &RustyPipeQuery) -> Result<bool> {
|
||||||
|
|
|
||||||
Reference in a new issue