Skip to content

Commit 3361984

Browse files
hmorerasclaude
andcommitted
test(content-compare): add test for initial dropdown selection
Verify that data.compare is shown as the selected version in the previous versions dropdown on first load. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ad334ed commit 3361984

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

core-web/libs/portlets/edit-ema/ui/src/lib/dot-content-compare/components/dot-content-compare-table/dot-content-compare-table.component.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ describe('DotContentCompareTableComponent', () => {
343343
const dropdown: Select = de.query(By.css('p-select')).componentInstance;
344344
expect(dropdown.options).toEqual(dotContentCompareTableDataMock.versions);
345345
});
346+
it('should show data.compare as the initially selected version in the dropdown', () => {
347+
const dropdown: Select = de.query(By.css('p-select')).componentInstance;
348+
expect(dropdown.value).toEqual(dotContentCompareTableDataMock.compare);
349+
});
346350
it('should show selectButton', () => {
347351
const select: SelectButton = de.query(
348352
By.css('[data-testId="show-diff"]')

0 commit comments

Comments
 (0)