|
|
|
@ -2,7 +2,6 @@
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using AngleSharp.Dom;
|
|
|
|
|
using DiscordChatExporter.Cli.Tests.Infra;
|
|
|
|
|
using DiscordChatExporter.Core.Discord;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
@ -39,21 +38,4 @@ public class HtmlContentSpecs
|
|
|
|
|
"Yeet"
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
public async Task Messages_cross_posted_from_other_guilds_are_rendered_with_the_server_tag()
|
|
|
|
|
{
|
|
|
|
|
// https://github.com/Tyrrrz/DiscordChatExporter/issues/633
|
|
|
|
|
|
|
|
|
|
// Act
|
|
|
|
|
var message = await ExportWrapper.GetMessageAsHtmlAsync(
|
|
|
|
|
ChannelIds.ReplyTestCases,
|
|
|
|
|
Snowflake.Parse("1072165330853576876")
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// Assert
|
|
|
|
|
message.Text().Should().Contain("This is a test message from an announcement channel on another server");
|
|
|
|
|
message.Text().Should().Contain("SERVER");
|
|
|
|
|
message.QuerySelector(".chatlog__reply-link").Should().BeNull();
|
|
|
|
|
}
|
|
|
|
|
}
|