Skip to content

Commit 57501ff

Browse files
committed
Fix runbar test for firefox
1 parent a74e571 commit 57501ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/src/runbar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export const Runbar = (props: {
7171
<button
7272
className="flex-0"
7373
disabled={props.disabled}
74+
data-testid="runbar-frame"
7475
onClick={() => runner.actions.frame()}
7576
data-tooltip={props.overrideTooltips?.step ?? `Step`}
7677
data-placement="bottom"
@@ -87,6 +88,7 @@ export const Runbar = (props: {
8788
? runner.actions.stop()
8889
: runner.actions.start()
8990
}
91+
data-testid="runbar-run-pause"
9092
data-tooltip={
9193
runner.state.running
9294
? props.overrideTooltips?.pause ?? `Pause`
@@ -105,6 +107,7 @@ export const Runbar = (props: {
105107
}
106108
runner.actions.reset();
107109
}}
110+
data-testid="runbar-reset"
108111
data-tooltip={props.overrideTooltips?.reset ?? `Reset`}
109112
data-placement="bottom"
110113
>

e2e/chip.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test.describe("chip", () => {
2929
await monaco.write(NOT, "hdl");
3030
await expect(page.getByText("HDL code: No syntax errors")).toBeVisible();
3131

32-
await page.getByRole("button", { name: "Run ️⏩" }).click();
32+
await page.getByTestId("runbar-run-pause").click();
3333
await expect(
3434
page.getByText(
3535
"Simulation successful: The output file is identical to the compare file",

0 commit comments

Comments
 (0)