╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │58 .issue = .{ │ │59 .title = "Login form clears password on validation error", │ │60 .description = "Submitting an invalid email address resets the password field and removes typed input. Preserve the field value and show an inline validation message.",│ │61 - .tags = &[_][]const u8{ "bug", "priority-high", "ui" }, │ │61 + .tags = &[_][]const u8{ "bug", "priority-low", "ui" }, │ │62 }, │ │63 }, │ │64 }, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │191 const first_issue_description_value = try first_issue_description_cursor.readBytesAlloc(allocator, null); │ │192 defer allocator.free(first_issue_description_value); │ │193 try std.testing.expectEqualStrings(events_to_consume[1].data.issue.description, first_issue_description_value); │ │194 + │ │195 + // make sure the issue's tags were correctly edited │ │196 + const tags_cursor = try first_issue.getCursor(hash.hashInt(repo_opts.hash, "tags")) orelse return error.NotFound;│ │197 + const tags = try Repo.DB.ArrayList(.read_only).init(tags_cursor); │ │198 + try std.testing.expectEqual(events_to_consume[1].data.issue.tags.len, try tags.count()); │ │199 + │ │200 + for (events_to_consume[1].data.issue.tags, 0..) |expected_tag, i| { │ │201 + const tag_cursor = try tags.getCursor(@intCast(i)) orelse return error.NotFound; │ │202 + const tag_value = try tag_cursor.readBytesAlloc(allocator, null); │ │203 + defer allocator.free(tag_value); │ │204 + try std.testing.expectEqualStrings(expected_tag, tag_value); │ │205 + } │ │206 } │ │207 } │ │208 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯