1
0
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:
Rajat Dabade
2022-11-24 17:16:59 +05:30
committed by GitHub
parent 9918a0b3f8
commit 6674402079
31 changed files with 1264 additions and 48 deletions

View File

@ -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)
})
}