Skip to content

Commit

Permalink
Merge pull request #996 from OfficeDev/v-pakoshti/AutomationAddDefects
Browse files Browse the repository at this point in the history
Added Defects for checking
  • Loading branch information
Pawank-MSFT authored Oct 18, 2023
2 parents 4284aa6 + a0a4f8d commit 9ed3f61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
<p>
<div>
<label for="domainChoice">Select the data center Region you would like to set: </label>
<select id="domainChoice" name="domainChoice">
@* Added defects to check automation flow *@

@* <select id="domainChoice" name="domainChoice">
<option value="" selected="selected">(Select a region)</option>
@foreach (var item in Model.regionDomains)
{
<option value="@item.region">@( item.country + " - " + item.region)</option>
}
</select>
</select> *@
</div>
</p>

Expand Down
6 changes: 5 additions & 1 deletion samples/bot-file-upload/csharp/Bots/TeamsFileUploadBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ private async Task FileUploadCompletedAsync(ITurnContext turnContext, FileConsen
ContentUrl = fileConsentCardResponse.UploadInfo.ContentUrl,
};

var reply = MessageFactory.Text($"<b>File uploaded.</b> Your file <b>{fileConsentCardResponse.UploadInfo.Name}</b> is ready to download");

// var reply = MessageFactory.Text($"<b>File uploaded.</b> Your file <b>{fileConsentCardResponse.UploadInfo.Name}</b> is ready to download");
// Added defects to check automation flow

var reply = MessageFactory.Text($"<b>File upload failed.</b>");
reply.TextFormat = "xml";
reply.Attachments = new List<Attachment> { asAttachment };

Expand Down

0 comments on commit 9ed3f61

Please sign in to comment.