mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-10 02:26:08 +00:00

* feat: implement backend logic * fix: did_create_row not working properly * fix: did_delete_group not working properly * fix: test * chore: fix clippy * fix: new card not editable and in wrong position * feat: imlement UI for add new stack * test: add integration test * chore: i18n * chore: remove debug message * chore: merge conflict --------- Co-authored-by: nathan <nathan@appflowy.io>
31 lines
858 B
Rust
31 lines
858 B
Rust
use event_integration::EventIntegrationTest;
|
|
|
|
#[tokio::test]
|
|
async fn update_group_name_test() {
|
|
let test = EventIntegrationTest::new_with_guest_user().await;
|
|
let current_workspace = test.get_current_workspace().await;
|
|
let board_view = test
|
|
.create_board(¤t_workspace.id, "my board view".to_owned(), vec![])
|
|
.await;
|
|
|
|
let groups = test.get_groups(&board_view.id).await;
|
|
assert_eq!(groups.len(), 4);
|
|
assert_eq!(groups[1].group_name, "To Do");
|
|
assert_eq!(groups[2].group_name, "Doing");
|
|
|
|
test
|
|
.update_group(
|
|
&board_view.id,
|
|
&groups[1].group_id,
|
|
&groups[1].field_id,
|
|
Some("To Do?".to_string()),
|
|
None,
|
|
)
|
|
.await;
|
|
|
|
let groups = test.get_groups(&board_view.id).await;
|
|
assert_eq!(groups.len(), 4);
|
|
assert_eq!(groups[1].group_name, "To Do?");
|
|
assert_eq!(groups[2].group_name, "Doing");
|
|
}
|