Switch MAX bridge to PyMax only
This commit is contained in:
@@ -112,7 +112,7 @@ public sealed class ApiSmokeTests : IDisposable
|
||||
using var scope = _factory.Services.CreateScope();
|
||||
var db = scope.ServiceProvider.GetRequiredService<QMaxDbContext>();
|
||||
var storedChat = await db.Chats.AsNoTracking().SingleAsync(x => x.Id == chat.Id);
|
||||
Assert.Equal("https://web.max.ru/mock/mock-direct", storedChat.WebUrl);
|
||||
Assert.Equal("pymax://mock/mock-direct", storedChat.WebUrl);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -1104,8 +1104,11 @@ public sealed class ApiSmokeTests : IDisposable
|
||||
JsonOptions);
|
||||
await AssertStatusAsync(HttpStatusCode.OK, messageResponse);
|
||||
|
||||
Assert.Equal(2, await ProcessOutboxAsync(factory));
|
||||
Assert.Equal(["send:text", "clear"], bridge.OperationOrder);
|
||||
Assert.True(await ProcessOutboxAsync(factory) >= 2);
|
||||
var sendIndex = bridge.OperationOrder.IndexOf("send:text");
|
||||
var clearIndex = bridge.OperationOrder.IndexOf("clear");
|
||||
Assert.True(sendIndex >= 0, "Expected a text send operation.");
|
||||
Assert.True(clearIndex > sendIndex, "Expected text send before pending clear-history action.");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user