Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 67f9133cdd |
@@ -0,0 +1,38 @@
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using JobTrackerApi.Controllers;
|
||||
using JobTrackerApi.Models;
|
||||
using JobTrackerApi.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Moq;
|
||||
using Xunit;
|
||||
|
||||
namespace JobTrackerApi.MariaDb.Tests;
|
||||
|
||||
public sealed class CalendarPrecisionTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("2026-10-25T02:30:00+02:00", "20261025T003000Z")]
|
||||
[InlineData("2026-10-25T02:30:00+01:00", "20261025T013000Z")]
|
||||
public async Task Explicit_follow_up_offset_survives_mariadb_round_trip_to_ics(string source, string expected)
|
||||
{
|
||||
const string owner = "calendar-owner";
|
||||
var json = JsonSerializer.Serialize(new { followUpAt = source });
|
||||
var request = JsonSerializer.Deserialize<FollowUpRequest>(json, new JsonSerializerOptions(JsonSerializerDefaults.Web))!;
|
||||
await using var database = await MariaDbDatabase.CreateAsync();
|
||||
await using var db = database.Context(owner);
|
||||
var job = new JobApplication
|
||||
{
|
||||
OwnerUserId = owner, Company = new Company { OwnerUserId = owner, Name = "Synthetic calendar" },
|
||||
JobTitle = "Synthetic role", Status = "Interview", FollowUpAt = request.FollowUpAt,
|
||||
};
|
||||
db.JobApplications.Add(job);
|
||||
await db.SaveChangesAsync();
|
||||
db.ChangeTracker.Clear();
|
||||
|
||||
var controller = new ApplicationCalendarController(db, Mock.Of<ICurrentUserService>(user => user.UserId == owner),
|
||||
new Mock<IGmailOAuthService>(MockBehavior.Strict).Object, new Mock<IMicrosoftGraphOAuthService>(MockBehavior.Strict).Object);
|
||||
var file = Assert.IsType<FileContentResult>(await controller.DownloadEvent(job.Id, "follow-up", default));
|
||||
Assert.Contains($"DTSTART:{expected}\r\n", Encoding.UTF8.GetString(file.FileContents), StringComparison.Ordinal);
|
||||
}
|
||||
}
|
||||
@@ -88,7 +88,6 @@ internal sealed class MariaDbDatabase : IAsyncDisposable
|
||||
builder.Services.AddSingleton<IStartupReadiness, StartupReadiness>();
|
||||
builder.Services.AddDbContext<JobTrackerContext>(options => database.Configure(options));
|
||||
builder.Services.AddIdentityCore<ApplicationUser>().AddRoles<IdentityRole>().AddEntityFrameworkStores<JobTrackerContext>();
|
||||
builder.Services.AddControllers();
|
||||
database.App = builder.Build();
|
||||
await database.App.InitializeJobTrackerAsync();
|
||||
return database;
|
||||
|
||||
@@ -1,111 +0,0 @@
|
||||
using System.Security.Claims;
|
||||
using JobTrackerApi.Controllers;
|
||||
using JobTrackerApi.Data;
|
||||
using JobTrackerApi.Models;
|
||||
using JobTrackerApi.Services;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Moq;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace JobTrackerApi.MariaDb.Tests;
|
||||
|
||||
public sealed class PreferenceConcurrencyTests(ITestOutputHelper output)
|
||||
{
|
||||
[Fact]
|
||||
public async Task Concurrent_language_and_notification_writes_preserve_the_winner_and_allow_a_fresh_retry()
|
||||
{
|
||||
await using var database = await MariaDbDatabase.CreateAsync();
|
||||
await using (var seed = database.Context())
|
||||
{
|
||||
seed.Users.AddRange(
|
||||
new ApplicationUser { Id = "preference-owner", UserName = "owner@example.test", UiLanguage = "en", EmailFollowUpRemindersEnabled = true },
|
||||
new ApplicationUser { Id = "preference-other", UserName = "other@example.test", UiLanguage = "nb-NO", EmailFollowUpRemindersEnabled = false });
|
||||
await seed.SaveChangesAsync();
|
||||
}
|
||||
|
||||
await using var languageScope = database.App.Services.CreateAsyncScope();
|
||||
await using var notificationScope = database.App.Services.CreateAsyncScope();
|
||||
await using var otherScope = database.App.Services.CreateAsyncScope();
|
||||
var language = LanguageController(languageScope.ServiceProvider, "preference-owner");
|
||||
var notification = NotificationController(notificationScope.ServiceProvider, "preference-owner");
|
||||
var otherLanguage = LanguageController(otherScope.ServiceProvider, "preference-other");
|
||||
var otherNotification = NotificationController(otherScope.ServiceProvider, "preference-other");
|
||||
|
||||
// Model two requests that have read the same Identity version before either writes.
|
||||
var languageSnapshot = await languageScope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>().GetUserAsync(language.User);
|
||||
var notificationSnapshot = await notificationScope.ServiceProvider.GetRequiredService<UserManager<ApplicationUser>>().GetUserAsync(notification.User);
|
||||
Assert.NotNull(languageSnapshot);
|
||||
Assert.NotNull(notificationSnapshot);
|
||||
Assert.NotSame(languageSnapshot, notificationSnapshot);
|
||||
var originalStamp = languageSnapshot.ConcurrencyStamp;
|
||||
Assert.Equal(originalStamp, notificationSnapshot.ConcurrencyStamp);
|
||||
|
||||
var languageWrite = language.UpdateLanguagePreference(new("nb-NO"));
|
||||
var notificationWrite = notification.Put(new(false));
|
||||
var otherWrite = otherLanguage.UpdateLanguagePreference(new("en"));
|
||||
await Task.WhenAll(languageWrite, notificationWrite, otherWrite);
|
||||
Assert.IsType<NoContentResult>(await otherWrite);
|
||||
Assert.IsType<BadRequestObjectResult>(await otherLanguage.UpdateLanguagePreference(new("fr-FR")));
|
||||
Assert.IsType<OkObjectResult>((await otherNotification.Put(new(true))).Result);
|
||||
|
||||
var languageWon = await languageWrite is NoContentResult;
|
||||
if (languageWon)
|
||||
{
|
||||
var error = Assert.IsType<ObjectResult>((await notificationWrite).Result);
|
||||
Assert.Equal(StatusCodes.Status500InternalServerError, error.StatusCode);
|
||||
}
|
||||
else
|
||||
{
|
||||
var error = Assert.IsType<BadRequestObjectResult>(await languageWrite);
|
||||
Assert.Contains(new IdentityErrorDescriber().ConcurrencyFailure().Description, Assert.IsType<string>(error.Value));
|
||||
Assert.IsType<OkObjectResult>((await notificationWrite).Result);
|
||||
}
|
||||
|
||||
await using (var read = database.Context())
|
||||
{
|
||||
var owner = await read.Users.AsNoTracking().SingleAsync(user => user.Id == "preference-owner");
|
||||
Assert.Equal(languageWon ? "nb-NO" : "en", owner.UiLanguage);
|
||||
Assert.Equal(languageWon, owner.EmailFollowUpRemindersEnabled);
|
||||
Assert.NotEqual(originalStamp, owner.ConcurrencyStamp);
|
||||
}
|
||||
|
||||
await using var retryScope = database.App.Services.CreateAsyncScope();
|
||||
if (languageWon)
|
||||
Assert.IsType<OkObjectResult>((await NotificationController(retryScope.ServiceProvider, "preference-owner").Put(new(false))).Result);
|
||||
else
|
||||
Assert.IsType<NoContentResult>(await LanguageController(retryScope.ServiceProvider, "preference-owner").UpdateLanguagePreference(new("nb-NO")));
|
||||
|
||||
await using var reload = database.Context();
|
||||
var users = await reload.Users.AsNoTracking().Where(user => user.Id.StartsWith("preference-")).OrderBy(user => user.Id).ToListAsync();
|
||||
Assert.Collection(users,
|
||||
other => { Assert.Equal("preference-other", other.Id); Assert.Equal("en", other.UiLanguage); Assert.True(other.EmailFollowUpRemindersEnabled); },
|
||||
owner => { Assert.Equal("preference-owner", owner.Id); Assert.Equal("nb-NO", owner.UiLanguage); Assert.False(owner.EmailFollowUpRemindersEnabled); });
|
||||
output.WriteLine($"MariaDB {database.ActualVersion}: {(languageWon ? "language" : "notification")} won the overlapping writes; fresh retry preserved both preferences and the other owner's independent writes.");
|
||||
}
|
||||
|
||||
private static AuthController LanguageController(IServiceProvider services, string owner) => new(
|
||||
services.GetRequiredService<IConfiguration>(), services.GetRequiredService<UserManager<ApplicationUser>>(),
|
||||
Mock.Of<ITokenService>(), Mock.Of<IAppEmailSender>(), Mock.Of<IGoogleTokenValidator>(), Mock.Of<IMicrosoftTokenValidator>(),
|
||||
NullLogger<AuthController>.Instance, Mock.Of<ITwoFactorPendingTokenService>(), services.GetRequiredService<JobTrackerContext>(),
|
||||
externalOrigin: ExternalOrigin.Parse("http://localhost:3300", production: false))
|
||||
{ ControllerContext = Principal(services, owner) };
|
||||
|
||||
private static NotificationSettingsController NotificationController(IServiceProvider services, string owner) => new(
|
||||
services.GetRequiredService<UserManager<ApplicationUser>>()) { ControllerContext = Principal(services, owner) };
|
||||
|
||||
private static ControllerContext Principal(IServiceProvider services, string owner) => new()
|
||||
{
|
||||
HttpContext = new DefaultHttpContext
|
||||
{
|
||||
RequestServices = services,
|
||||
User = new ClaimsPrincipal(new ClaimsIdentity([new Claim(ClaimTypes.NameIdentifier, owner)], "test")),
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -6,12 +6,41 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Data.Sqlite;
|
||||
using Moq;
|
||||
using System.Globalization;
|
||||
using System.Text.Json;
|
||||
using Xunit;
|
||||
|
||||
namespace JobTrackerApi.Tests;
|
||||
|
||||
public sealed class ApplicationCalendarControllerTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData("2026-10-25T02:30:00+02:00", "2026-10-25T00:30:00", DateTimeKind.Utc)]
|
||||
[InlineData("2026-10-25T02:30:00+01:00", "2026-10-25T01:30:00", DateTimeKind.Utc)]
|
||||
[InlineData("2026-10-25T00:15:00Z", "2026-10-25T00:15:00", DateTimeKind.Utc)]
|
||||
[InlineData("2026-10-25T02:30:00", "2026-10-25T02:30:00", DateTimeKind.Unspecified)]
|
||||
[InlineData("2026-10-25", "2026-10-25T00:00:00", DateTimeKind.Unspecified)]
|
||||
[InlineData(null, null, null)]
|
||||
public void Follow_up_write_contracts_preserve_explicit_instants_and_legacy_values(
|
||||
string? input, string? expected, DateTimeKind? kind)
|
||||
{
|
||||
var json = JsonSerializer.Serialize(new { followUpAt = input });
|
||||
var options = new JsonSerializerOptions(JsonSerializerDefaults.Web);
|
||||
var dates = new[]
|
||||
{
|
||||
JsonSerializer.Deserialize<CreateJobApplicationRequest>(json, options)!.FollowUpAt,
|
||||
JsonSerializer.Deserialize<UpdateJobApplicationRequest>(json, options)!.FollowUpAt,
|
||||
JsonSerializer.Deserialize<FollowUpRequest>(json, options)!.FollowUpAt,
|
||||
JsonSerializer.Deserialize<InterviewPrepController.SetFollowUpRequest>(json, options)!.FollowUpAt,
|
||||
};
|
||||
|
||||
Assert.All(dates, value =>
|
||||
{
|
||||
Assert.Equal(expected, value?.ToString("yyyy-MM-dd'T'HH:mm:ss", CultureInfo.InvariantCulture));
|
||||
Assert.Equal(kind, value?.Kind);
|
||||
});
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Agenda_date_window_translates_on_sqlite_and_keeps_legacy_wall_clock_date()
|
||||
{
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JobTrackerApi.Controllers;
|
||||
|
||||
public sealed class FollowUpDateTimeConverter : JsonConverter<DateTime?>
|
||||
{
|
||||
public override DateTime? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
|
||||
{
|
||||
if (!reader.TryGetDateTime(out var value))
|
||||
throw new JsonException("Follow-up date must be an ISO 8601 date or timestamp.");
|
||||
|
||||
// An explicit offset becomes server-local DateTime before storage discards its Kind.
|
||||
return value.Kind == DateTimeKind.Local ? reader.GetDateTimeOffset().UtcDateTime : value;
|
||||
}
|
||||
|
||||
public override void Write(Utf8JsonWriter writer, DateTime? value, JsonSerializerOptions options)
|
||||
{
|
||||
if (value is { } date) writer.WriteStringValue(date);
|
||||
else writer.WriteNullValue();
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ using JobTrackerApi.Services;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JobTrackerApi.Controllers;
|
||||
|
||||
@@ -17,7 +18,8 @@ namespace JobTrackerApi.Controllers;
|
||||
[Authorize(AuthenticationSchemes = "local")]
|
||||
public sealed class InterviewPrepController : ControllerBase
|
||||
{
|
||||
public sealed record SetFollowUpRequest(DateTime? FollowUpAt, string? NextAction);
|
||||
public sealed record SetFollowUpRequest(
|
||||
[property: JsonConverter(typeof(FollowUpDateTimeConverter))] DateTime? FollowUpAt, string? NextAction);
|
||||
|
||||
private readonly UserManager<ApplicationUser> _users;
|
||||
private readonly IInterviewPrepService _prep;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using JobTrackerApi.Models;
|
||||
using JobTrackerApi.Services;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace JobTrackerApi.Controllers
|
||||
{
|
||||
@@ -94,7 +95,7 @@ namespace JobTrackerApi.Controllers
|
||||
string? SalaryCurrency,
|
||||
string? SalaryPeriod,
|
||||
string? NextAction,
|
||||
DateTime? FollowUpAt,
|
||||
[property: JsonConverter(typeof(FollowUpDateTimeConverter))] DateTime? FollowUpAt,
|
||||
string? Notes,
|
||||
string? Description,
|
||||
string? TranslatedDescription,
|
||||
@@ -122,7 +123,7 @@ namespace JobTrackerApi.Controllers
|
||||
string? SalaryCurrency,
|
||||
string? SalaryPeriod,
|
||||
string? NextAction,
|
||||
DateTime? FollowUpAt,
|
||||
[property: JsonConverter(typeof(FollowUpDateTimeConverter))] DateTime? FollowUpAt,
|
||||
string? Notes,
|
||||
string? Description,
|
||||
string? TranslatedDescription,
|
||||
@@ -153,7 +154,7 @@ namespace JobTrackerApi.Controllers
|
||||
DateTime? MessageDate,
|
||||
string? MessageSubject);
|
||||
|
||||
public sealed record FollowUpRequest(DateTime? FollowUpAt);
|
||||
public sealed record FollowUpRequest([property: JsonConverter(typeof(FollowUpDateTimeConverter))] DateTime? FollowUpAt);
|
||||
|
||||
public sealed record JobEventDto(int Id, string Type, string? OldValue, string? NewValue, string? Note, DateTime At);
|
||||
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
import { readFile, writeFile } from 'node:fs/promises';
|
||||
import { expect, test, type APIRequestContext } from '@playwright/test';
|
||||
import { translations } from '../src/i18n/translations';
|
||||
|
||||
const apiUrl = 'http://localhost:5302/api';
|
||||
const password = 'E2ePassword123!';
|
||||
const fixtures = [
|
||||
{ title: 'Date-only deadline', field: 'deadline', value: '2026-10-25', kind: 'deadline',
|
||||
start: 'DTSTART;VALUE=DATE:20261025', end: 'DTEND;VALUE=DATE:20261026' },
|
||||
{ title: 'UTC follow-up', field: 'followUpAt', value: '2026-10-25T00:15:00Z', kind: 'follow-up',
|
||||
start: 'DTSTART:20261025T001500Z', end: 'DTEND:20261025T004500Z' },
|
||||
{ title: 'First repeated hour', field: 'followUpAt', value: '2026-10-25T02:30:00+02:00', kind: 'follow-up',
|
||||
start: 'DTSTART:20261025T003000Z', end: 'DTEND:20261025T010000Z' },
|
||||
{ title: 'Second repeated hour', field: 'followUpAt', value: '2026-10-25T02:30:00+01:00', kind: 'follow-up',
|
||||
start: 'DTSTART:20261025T013000Z', end: 'DTEND:20261025T020000Z' },
|
||||
{ title: 'Legacy wall-clock follow-up', field: 'followUpAt', value: '2026-10-25T02:30:00', kind: 'follow-up',
|
||||
start: 'DTSTART:20261025T023000Z', end: 'DTEND:20261025T030000Z' },
|
||||
] as const;
|
||||
|
||||
async function login(api: APIRequestContext, email: string) {
|
||||
expect((await api.post(`${apiUrl}/auth/login`, { data: { email, password } })).status()).toBe(200);
|
||||
const me = await api.get(`${apiUrl}/auth/me`);
|
||||
expect(me.status()).toBe(200);
|
||||
const csrf = (await api.storageState()).cookies.find(cookie => cookie.name === 'XSRF-TOKEN');
|
||||
expect(csrf).toBeDefined();
|
||||
return { 'X-CSRF-TOKEN': csrf!.value, 'X-Session-Context': (await me.json()).sessionContext as string };
|
||||
}
|
||||
|
||||
for (const variant of [
|
||||
{ language: 'en', locale: 'en-GB', mode: 'light', timezoneId: 'Europe/Oslo', viewport: { width: 1440, height: 900 } },
|
||||
{ language: 'nb', locale: 'nb-NO', mode: 'dark', timezoneId: 'America/Los_Angeles', viewport: { width: 390, height: 844 } },
|
||||
] as const) {
|
||||
test.describe(`calendar precision ${variant.language}`, () => {
|
||||
test.use({ timezoneId: variant.timezoneId, viewport: variant.viewport });
|
||||
|
||||
test('recorded dates and ICS retain precision through the autumn DST transition', async ({ page, context, playwright }, info) => {
|
||||
test.setTimeout(120_000);
|
||||
expect(process.env.PLAYWRIGHT_REUSE_SERVERS).not.toBe('true');
|
||||
expect(info.config.metadata.isolatedDataRoot).toEqual(expect.any(String));
|
||||
await context.route('**/*', route => {
|
||||
const url = new URL(route.request().url());
|
||||
return ['localhost', '127.0.0.1'].includes(url.hostname) || ['blob:', 'data:', 'about:'].includes(url.protocol)
|
||||
? route.continue() : route.abort();
|
||||
});
|
||||
const admin = await playwright.request.newContext();
|
||||
let headers: Record<string, string>;
|
||||
try {
|
||||
const adminHeaders = await login(admin, 'e2e@example.test');
|
||||
const email = `calendar-dst-${Date.now()}-${variant.language}@example.test`;
|
||||
expect((await admin.post(`${apiUrl}/users`, { headers: adminHeaders, data: { email, password, roles: [] } })).status()).toBe(200);
|
||||
headers = await login(page.request, email);
|
||||
} finally {
|
||||
await admin.dispose();
|
||||
}
|
||||
expect((await page.request.put(`${apiUrl}/auth/preferences/language`, {
|
||||
headers, data: { language: variant.language === 'nb' ? 'nb-NO' : 'en' },
|
||||
})).status()).toBe(204);
|
||||
await page.addInitScript(({ language, mode }) => {
|
||||
localStorage.setItem('uiLanguage', language);
|
||||
localStorage.setItem('jobtracker.themeMode', mode);
|
||||
}, { language: variant.language, mode: variant.mode });
|
||||
|
||||
const company = await page.request.post(`${apiUrl}/companies`, { headers, data: { name: 'Synthetic calendar company' } });
|
||||
expect(company.status()).toBe(201);
|
||||
const companyId = (await company.json()).id as number;
|
||||
const jobs = [];
|
||||
for (const fixture of fixtures) {
|
||||
const response = await page.request.post(`${apiUrl}/jobapplications`, {
|
||||
headers, data: { companyId, jobTitle: fixture.title, status: 'Interview', [fixture.field]: fixture.value },
|
||||
});
|
||||
expect(response.status()).toBe(201);
|
||||
jobs.push({ ...fixture, id: (await response.json()).id as number });
|
||||
}
|
||||
|
||||
await page.clock.setFixedTime(new Date('2026-10-25T12:00:00Z'));
|
||||
await page.goto('/reminders');
|
||||
const t = translations[variant.language];
|
||||
const calendar = page.getByRole('region', { name: t.calendarAgendaTitle, exact: true });
|
||||
const dateLabel = new Intl.DateTimeFormat(variant.locale, { dateStyle: 'medium', timeZone: 'UTC' }).format(new Date('2026-10-25T12:00:00Z'));
|
||||
const dateSection = calendar.getByRole('region', { name: dateLabel, exact: true });
|
||||
await expect(dateSection.getByRole('link')).toHaveCount(jobs.length);
|
||||
await expect(page.locator('html')).toHaveAttribute('data-color-scheme', variant.mode);
|
||||
const observed = [];
|
||||
for (const job of jobs) {
|
||||
const row = dateSection.getByRole('article').filter({ hasText: job.title });
|
||||
await expect(row.getByRole('link')).toHaveAttribute('href', `/jobs/${job.id}`);
|
||||
const time = row.locator('time');
|
||||
await expect(time).toHaveText(dateLabel);
|
||||
observed.push({ ...job, recordedAt: await time.getAttribute('datetime') });
|
||||
}
|
||||
await page.getByRole('button', { name: t.calendarMonth, exact: true }).click();
|
||||
const day = calendar.getByRole('table', { name: t.calendarMonth }).getByText('25', { exact: true, selector: 'button' });
|
||||
await day.focus();
|
||||
await page.keyboard.press('Enter');
|
||||
await expect(day).toBeFocused();
|
||||
await expect(day).toHaveAttribute('aria-pressed', 'true');
|
||||
await expect(dateSection.getByRole('link')).toHaveCount(jobs.length);
|
||||
|
||||
const downloaded = [];
|
||||
for (const job of jobs) {
|
||||
await page.goto(`/jobs/${job.id}?section=tasks`);
|
||||
const [file] = await Promise.all([
|
||||
page.waitForEvent('download'),
|
||||
page.getByRole('button', { name: t.calendarDownload, exact: true }).click(),
|
||||
]);
|
||||
expect(file.suggestedFilename()).toBe(`jobjakt-${job.id}-${job.kind}.ics`);
|
||||
const content = await readFile(await file.path(), 'utf8');
|
||||
const timestamps = content.split('\r\n').filter(line => /^(DTSTART|DTEND)/.test(line));
|
||||
downloaded.push({ title: job.title, timestamps });
|
||||
expect.soft(timestamps, job.title).toEqual([job.start, job.end]);
|
||||
}
|
||||
const evidence = info.outputPath('calendar-dst-matrix.json');
|
||||
await writeFile(evidence, JSON.stringify({ variant, source: 'native API and Chromium downloads', observed, downloaded }, null, 2));
|
||||
await info.attach('calendar-dst-matrix', { path: evidence, contentType: 'application/json' });
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user