chore(release): v2.0.0
This commit is contained in:
parent
a6f33284a7
commit
7fbf34ff2e
81 changed files with 16727 additions and 3280 deletions
|
|
@ -402,6 +402,8 @@ fn build_reference_matched_shell(
|
|||
default_email: None,
|
||||
has_plus: true,
|
||||
avatar_uri: Some("test.local/avatar_marwy/%%".into()),
|
||||
plus_balance: Some(0),
|
||||
collection_hue: None,
|
||||
});
|
||||
|
||||
let mut app = AppState::new_visual_test(
|
||||
|
|
|
|||
|
|
@ -108,6 +108,8 @@ fn make_base_shell(
|
|||
default_email: Some("marwy@yandex.ru".into()),
|
||||
has_plus: true,
|
||||
avatar_uri: None,
|
||||
plus_balance: Some(0),
|
||||
collection_hue: None,
|
||||
});
|
||||
let track = Track {
|
||||
id: "t_1".into(),
|
||||
|
|
@ -897,8 +899,8 @@ fn test_ext_09_light_theme_zero_dark_surfaces_and_high_contrast() {
|
|||
shell_px
|
||||
);
|
||||
|
||||
// 2. Content card whitespace (right margin x=1240, y=220) MUST be pure #FFFFFF (255, 255, 255), NOT #121212!
|
||||
let card_px = img.get_pixel(1240, 220).0;
|
||||
// 2. Content card whitespace (right padding gutter x=1256, y=220) MUST be pure #FFFFFF (255, 255, 255), NOT #121212!
|
||||
let card_px = img.get_pixel(1256, 220).0;
|
||||
assert!(
|
||||
card_px[0] >= 245 && card_px[1] >= 245 && card_px[2] >= 245,
|
||||
"[{}] Light theme content card should be #FFFFFF, got {:?}",
|
||||
|
|
@ -1905,30 +1907,35 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
genre: Some("electronic".into()),
|
||||
is_explicit: false,
|
||||
content_type: Some("album".into()),
|
||||
..Default::default()
|
||||
};
|
||||
shell.app.landing.rich_new_releases = vec![
|
||||
NewReleaseItem {
|
||||
album: mk_album("nr1", "Neon Horizon", "SALUKI"),
|
||||
artist_cover_uri: None,
|
||||
cover_color: Some("#3B4CA8".into()),
|
||||
average_color: Some("#27316E".into()),
|
||||
release_date: Some("2026-11-20".into()),
|
||||
},
|
||||
NewReleaseItem {
|
||||
album: mk_album("nr2", "Velvet Pulse", "Mirele"),
|
||||
artist_cover_uri: None,
|
||||
cover_color: Some("#7B2D5F".into()),
|
||||
average_color: Some("#521D3F".into()),
|
||||
release_date: Some("2026-11-18".into()),
|
||||
},
|
||||
NewReleaseItem {
|
||||
album: mk_album("nr3", "Night Drive", "SLAVA MARLOW"),
|
||||
artist_cover_uri: None,
|
||||
cover_color: Some("#1E6B52".into()),
|
||||
average_color: Some("#144737".into()),
|
||||
release_date: Some("2026-11-15".into()),
|
||||
},
|
||||
NewReleaseItem {
|
||||
album: mk_album("nr4", "Solar Flare", "OG BLESS"),
|
||||
artist_cover_uri: None,
|
||||
cover_color: Some("#8F4A1E".into()),
|
||||
average_color: Some("#5E3114".into()),
|
||||
release_date: Some("2026-11-12".into()),
|
||||
},
|
||||
];
|
||||
|
|
@ -1941,6 +1948,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
header: "Vibe".into(),
|
||||
seeds: vec!["mood:energetic".into()],
|
||||
color_hex: Some("#D94E2A".into()),
|
||||
wave_text_hex: None,
|
||||
background_image_url: None,
|
||||
image_url: None,
|
||||
},
|
||||
|
|
@ -1949,6 +1957,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
header: "Vibe".into(),
|
||||
seeds: vec!["mood:calm".into()],
|
||||
color_hex: Some("#2F55A4".into()),
|
||||
wave_text_hex: None,
|
||||
background_image_url: None,
|
||||
image_url: None,
|
||||
},
|
||||
|
|
@ -1957,6 +1966,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
header: "Vibe".into(),
|
||||
seeds: vec!["genre:electronic".into()],
|
||||
color_hex: Some("#7C3AED".into()),
|
||||
wave_text_hex: None,
|
||||
background_image_url: None,
|
||||
image_url: None,
|
||||
},
|
||||
|
|
@ -1969,6 +1979,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
header: "Vibe".into(),
|
||||
seeds: vec!["activity:workout".into()],
|
||||
color_hex: Some("#0F766E".into()),
|
||||
wave_text_hex: None,
|
||||
background_image_url: None,
|
||||
image_url: None,
|
||||
}],
|
||||
|
|
@ -2118,6 +2129,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
cashback_title: Some("Кешбэк 15%".into()),
|
||||
cover_color: Some("#4C2A85".into()),
|
||||
event_kind: Some("concert".into()),
|
||||
content_rating: Some("18+".into()),
|
||||
},
|
||||
ConcertItem {
|
||||
id: "con_2".into(),
|
||||
|
|
@ -2134,6 +2146,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
cashback_title: None,
|
||||
cover_color: Some("#1D5B79".into()),
|
||||
event_kind: Some("concert".into()),
|
||||
content_rating: Some("16+".into()),
|
||||
},
|
||||
ConcertItem {
|
||||
id: "con_3".into(),
|
||||
|
|
@ -2150,6 +2163,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
cashback_title: None,
|
||||
cover_color: Some("#8C2F39".into()),
|
||||
event_kind: Some("concert".into()),
|
||||
content_rating: Some("16+".into()),
|
||||
},
|
||||
ConcertItem {
|
||||
id: "con_4".into(),
|
||||
|
|
@ -2166,6 +2180,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
cashback_title: None,
|
||||
cover_color: Some("#2D4F1E".into()),
|
||||
event_kind: Some("concert".into()),
|
||||
content_rating: Some("18+".into()),
|
||||
},
|
||||
];
|
||||
|
||||
|
|
@ -2470,6 +2485,7 @@ fn test_ext_18_qa_sync_lyrics_scroll_concerts_duplicate_albums() {
|
|||
genre: Some("pop".into()),
|
||||
is_explicit: false,
|
||||
content_type: Some("album".into()),
|
||||
..Default::default()
|
||||
};
|
||||
let std_alb = mk_dup("alb_std", None);
|
||||
let dlx_alb = mk_dup("alb_dlx", Some("Deluxe"));
|
||||
|
|
@ -2544,6 +2560,9 @@ fn test_ext_15_release_notes_modal_update_notification_and_download_ring() {
|
|||
html_url: "https://git.tatar/marwy/yandex-music-rs/releases/tag/v9.9.9".into(),
|
||||
date: "2026-11-28".into(),
|
||||
body: "## Новое\n- Тестовое обновление".into(),
|
||||
asset_name: None,
|
||||
asset_url: None,
|
||||
sha256sums_url: None,
|
||||
});
|
||||
shell.app.release_notes_modal_open = true;
|
||||
|
||||
|
|
@ -2586,6 +2605,16 @@ fn test_ext_19_official_settings_sound_quality_equalizer_and_shortcuts_modals()
|
|||
assert!(img_sc.width() == NATIVE_W && img_sc.height() == NATIVE_H);
|
||||
|
||||
shell.app.shortcuts_modal_open = false;
|
||||
shell.app.clear_memory_modal_open = true;
|
||||
let img_cm = render_single_frame(&mut vk, &mut shell, 0.056);
|
||||
assert!(img_cm.width() == NATIVE_W && img_cm.height() == NATIVE_H);
|
||||
|
||||
shell.app.clear_memory_modal_open = false;
|
||||
shell.app.about_app_modal_open = true;
|
||||
let img_ab = render_single_frame(&mut vk, &mut shell, 0.060);
|
||||
assert!(img_ab.width() == NATIVE_W && img_ab.height() == NATIVE_H);
|
||||
|
||||
shell.app.about_app_modal_open = false;
|
||||
for &style in yandex_music_rs::config::PlayerThumbStyle::ALL {
|
||||
shell.app.config.player_thumb = style;
|
||||
let img_th = render_single_frame(&mut vk, &mut shell, 0.064);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue