You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-12 23:50:27 +02:00
File attachment in the card (#4053)
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
@ -69,3 +69,20 @@ func TestUploadFile(t *testing.T) {
|
||||
require.NotNil(t, file.FileID)
|
||||
})
|
||||
}
|
||||
|
||||
func TestFileInfo(t *testing.T) {
|
||||
const (
|
||||
testTeamID = "team-id"
|
||||
)
|
||||
|
||||
t.Run("Retrieving file info", func(t *testing.T) {
|
||||
th := SetupTestHelper(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
testBoard := th.CreateBoard(testTeamID, model.BoardTypeOpen)
|
||||
|
||||
fileInfo, resp := th.Client.TeamUploadFileInfo(testTeamID, testBoard.ID, "test")
|
||||
th.CheckOK(resp)
|
||||
require.NotNil(t, fileInfo)
|
||||
require.NotNil(t, fileInfo.Id)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user