Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Apr 22, 2024
1 parent f9ea663 commit 054fab7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions playwright-test/15_sequences_gallery.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ test.describe("Load a demo test sequence", () => {
await window.getByTestId(Selectors.openSequenceGalleryBtn).click();

// Open a sequence
await window.getByTestId("test_step_with_expected_and_exported_values").nth(1).click();
await window
.getByTestId("test_step_with_expected_and_exported_values")
.nth(1)
.click();

// Expect sequence and tests to be loaded
await expect(
Expand All @@ -59,6 +62,8 @@ test.describe("Load a demo test sequence", () => {
await expect(window.getByTestId(Selectors.globalStatusBadge)).toContainText(
"FAIL",
);
await expect(window.getByTestId("status-test_min_max")).toContainText("PASS");
await expect(window.getByTestId("status-test_min_max")).toContainText(
"PASS",
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ export function TestTable() {
header: () => <div className="pl-4 text-center">Status</div>,
cell: ({ row }) => {
return row.original.type === "test" ? (
<div className="my-2 flex justify-center" data-testid={`status-${row.original.testName}`}>
<div
className="my-2 flex justify-center"
data-testid={`status-${row.original.testName}`}
>
{typeof mapStatusToDisplay[row.original.status] === "function"
? mapStatusToDisplay[row.original.status](row.original.error)
: mapStatusToDisplay[row.original.status]}
Expand Down

0 comments on commit 054fab7

Please sign in to comment.