Skip to content

Commit

Permalink
Fix runbar test for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSouther committed Jul 12, 2024
1 parent a74e571 commit 57501ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions components/src/runbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const Runbar = (props: {
<button
className="flex-0"
disabled={props.disabled}
data-testid="runbar-frame"
onClick={() => runner.actions.frame()}
data-tooltip={props.overrideTooltips?.step ?? `Step`}
data-placement="bottom"
Expand All @@ -87,6 +88,7 @@ export const Runbar = (props: {
? runner.actions.stop()
: runner.actions.start()
}
data-testid="runbar-run-pause"
data-tooltip={
runner.state.running
? props.overrideTooltips?.pause ?? `Pause`
Expand All @@ -105,6 +107,7 @@ export const Runbar = (props: {
}
runner.actions.reset();
}}
data-testid="runbar-reset"
data-tooltip={props.overrideTooltips?.reset ?? `Reset`}
data-placement="bottom"
>
Expand Down
2 changes: 1 addition & 1 deletion e2e/chip.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test.describe("chip", () => {
await monaco.write(NOT, "hdl");
await expect(page.getByText("HDL code: No syntax errors")).toBeVisible();

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

0 comments on commit 57501ff

Please sign in to comment.