Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: '64c5e924-a8ca-4aca-837e-d3b84c5ea1a6'
title: 'Transactions and concurrent updates'
status: 'draft'
status: 'accepted'
summary: 'See why atomic transactions can oversell and choose a lock, conditional update, or version check to protect stock.'
iconKey: 'concurrency'
domains:
Expand Down
6 changes: 3 additions & 3 deletions src/app/browse/topic-index-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ describe('TopicIndexPage', () => {
await harness.fixture.whenStable();
const host = harness.routeNativeElement as HTMLElement;
expect(host.querySelector('app-domain-topic-hierarchy')).toBeNull();
expect(host.querySelector('[role="status"]')?.textContent).toContain('4 draft topics');
expect(host.querySelectorAll('app-topic-result-list a')).toHaveLength(4);
expect(host.querySelectorAll('app-topic-result-list .draft-status')).toHaveLength(4);
expect(host.querySelector('[role="status"]')?.textContent).toContain('3 draft topics');
expect(host.querySelectorAll('app-topic-result-list a')).toHaveLength(3);
expect(host.querySelectorAll('app-topic-result-list .draft-status')).toHaveLength(3);
expect((host.querySelector('#topic-status') as HTMLSelectElement).value).toBe('draft');

await harness.navigateByUrl(
Expand Down
4 changes: 1 addition & 3 deletions src/app/catalog/catalog.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,10 @@ describe('CatalogService', () => {
service.normalizeBrowseCriteria({ status: 'draft' }),
);
expect(draftView.mode).toBe('results');
expect(draftView.resultCount).toBe(4);
expect(draftView.resultCount).toBe(3);
expect(draftView.resultHeading).toBe('Draft topics');
expect(draftView.sections[0].topics.map(({ title }) => title).sort()).toEqual([
'HTML Downloader',
'Transactions and concurrent updates',
'URL Frontier',
'Web crawler',
]);
Expand All @@ -145,7 +144,6 @@ describe('CatalogService', () => {
);
expect(occurrences.map(({ title }) => title).sort()).toEqual([
'HTML Downloader',
'Transactions and concurrent updates',
'URL Frontier',
'Web crawler',
]);
Expand Down
Loading