fixes
This commit is contained in:
@@ -5,6 +5,7 @@ mod helpers;
|
||||
use helpers::fake_tdclient::FakeTdClient;
|
||||
use helpers::test_data::create_test_chat;
|
||||
use tele_tui::tdlib::ProfileInfo;
|
||||
use tele_tui::types::ChatId;
|
||||
|
||||
/// Test: Открытие профиля в личном чате (i)
|
||||
#[test]
|
||||
@@ -26,7 +27,7 @@ fn test_open_profile_in_private_chat() {
|
||||
#[test]
|
||||
fn test_profile_shows_user_info() {
|
||||
let profile = ProfileInfo {
|
||||
chat_id: 123,
|
||||
chat_id: ChatId::new(123),
|
||||
title: "Alice Johnson".to_string(),
|
||||
username: Some("alice".to_string()),
|
||||
phone_number: Some("+1234567890".to_string()),
|
||||
@@ -49,7 +50,7 @@ fn test_profile_shows_user_info() {
|
||||
#[test]
|
||||
fn test_profile_shows_group_member_count() {
|
||||
let profile = ProfileInfo {
|
||||
chat_id: 456,
|
||||
chat_id: ChatId::new(456),
|
||||
title: "Work Team".to_string(),
|
||||
username: None,
|
||||
phone_number: None,
|
||||
@@ -72,7 +73,7 @@ fn test_profile_shows_group_member_count() {
|
||||
#[test]
|
||||
fn test_profile_shows_channel_info() {
|
||||
let profile = ProfileInfo {
|
||||
chat_id: 789,
|
||||
chat_id: ChatId::new(789),
|
||||
title: "News Channel".to_string(),
|
||||
username: Some("news_channel".to_string()),
|
||||
phone_number: None,
|
||||
@@ -107,7 +108,7 @@ fn test_close_profile_with_esc() {
|
||||
#[test]
|
||||
fn test_profile_without_optional_fields() {
|
||||
let profile = ProfileInfo {
|
||||
chat_id: 999,
|
||||
chat_id: ChatId::new(999),
|
||||
title: "Anonymous User".to_string(),
|
||||
username: None,
|
||||
phone_number: None,
|
||||
|
||||
Reference in New Issue
Block a user