test: replace false-green checks with behavioral coverage (#6282)
* test: replace false-green checks with behavioral coverage * test: complete behavior-focused audit coverage
This commit is contained in:
1 parent
c7ab7aa6da
commit
74942bd190
91 files changed
+1891
-1391
No files matched your search
@@ -731,7 +731,9 @@ describe("ThreadMessages", () => {
|
||||
const rows = Array.from(container.firstElementChild?.children ?? []);
|
||||
|
||||
expect(rows).toHaveLength(2);
|
||||
expect(rows[0]).not.toHaveClass("mt-2", "mt-4", "mt-5");
|
||||
for (const className of ["mt-2", "mt-4", "mt-5"]) {
|
||||
expect(rows[0]).not.toHaveClass(className);
|
||||
}
|
||||
expect(rows[1]).not.toHaveClass("mt-4");
|
||||
const answerRow = screen.getByText("final answer")
|
||||
.closest<HTMLElement>("[data-thread-display-unit]")!;
|
||||
@@ -772,7 +774,9 @@ describe("ThreadMessages", () => {
|
||||
expect(disclosure.compareDocumentPosition(timestamp) & Node.DOCUMENT_POSITION_FOLLOWING)
|
||||
.toBeTruthy();
|
||||
expect(menu).toHaveClass("w-max", "max-w-64", "bg-popover", "rounded-floating", "overflow-y-auto");
|
||||
expect(menu).not.toHaveClass("min-w-[8.5rem]", "bg-popover/95", "rounded-xl");
|
||||
for (const className of ["min-w-[8.5rem]", "bg-popover/95", "rounded-xl"]) {
|
||||
expect(menu).not.toHaveClass(className);
|
||||
}
|
||||
const menuButtons = Array.from(menu.querySelectorAll("button"));
|
||||
expect(menuButtons.length).toBeGreaterThan(1);
|
||||
for (const button of menuButtons) {
|
||||
|
||||
Reference in new issue
Block a user