mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 15:09:10 -05:00
🐛 Hover on history version entry to show options
This commit is contained in:
parent
db7c1fc7dd
commit
39620fe9c4
2 changed files with 7 additions and 5 deletions
|
@ -58,10 +58,11 @@ test("Save and restore version", async ({ page }) => {
|
||||||
await page.getByRole("textbox").press("Enter");
|
await page.getByRole("textbox").press("Enter");
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator("li")
|
.getByLabel("History", { exact: true })
|
||||||
.filter({ hasText: "INIT" })
|
.locator("div")
|
||||||
.getByRole("button")
|
.nth(3)
|
||||||
.click();
|
.hover();
|
||||||
|
await page.getByRole("button", { name: "Open version menu" }).click();
|
||||||
await page.getByRole("button", { name: "Restore" }).click();
|
await page.getByRole("button", { name: "Restore" }).click();
|
||||||
|
|
||||||
await workspacePage.mockRPC(
|
await workspacePage.mockRPC(
|
||||||
|
|
|
@ -134,7 +134,8 @@
|
||||||
time (dt/timeago (:created-at entry) {:locale locale})]
|
time (dt/timeago (:created-at entry) {:locale locale})]
|
||||||
[:span {:class (stl/css :date)} time])]]
|
[:span {:class (stl/css :date)} time])]]
|
||||||
|
|
||||||
[:> icon-button* {:variant "ghost"
|
[:> icon-button* {:class (stl/css :version-entry-options)
|
||||||
|
:variant "ghost"
|
||||||
:aria-label (tr "workspace.versions.version-menu")
|
:aria-label (tr "workspace.versions.version-menu")
|
||||||
:on-click handle-open-menu
|
:on-click handle-open-menu
|
||||||
:icon "menu"}]]
|
:icon "menu"}]]
|
||||||
|
|
Loading…
Add table
Reference in a new issue