Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Dec 23, 2024
1 parent a9593e5 commit cf4fd66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task SignIn_Should_WorkAsExpected()

await Page.GetByPlaceholder(AppStrings.EmailPlaceholder).FillAsync(email);
await Page.GetByPlaceholder(AppStrings.PasswordPlaceholder).FillAsync(password);
await Page.GetByRole(AriaRole.Button, new() { Name = AppStrings.SignIn }).ClickAsync();
await Page.GetByRole(AriaRole.Button, new() { Name = AppStrings.SignIn, Exact = true }).ClickAsync();

await Expect(Page).ToHaveURLAsync(server.WebAppServerAddress.ToString());
await Expect(Page.GetByRole(AriaRole.Button, new() { Name = userFullName })).ToBeVisibleAsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ private static async Task InitializeDatabase(AppTestServer testServer)
await using var scope = testServer.WebApp.Services.CreateAsyncScope();
var dbContext = scope.ServiceProvider.GetRequiredService<AppDbContext>();
//#if (database == 'Sqlite')
//#if (IsInsideProjectTemplate == true)
if (dbContext.Database.ProviderName!.EndsWith("Sqlite", StringComparison.InvariantCulture))
{
//#endif
connection = new SqliteConnection(dbContext.Database.GetConnectionString());
await connection.OpenAsync();
//#if (IsInsideProjectTemplate == true)
}
//#endif
//#endif
await dbContext.Database.MigrateAsync();
}
}
Expand Down

0 comments on commit cf4fd66

Please sign in to comment.