Fix build

I broke it in https://github.com/radicle-dev/radicle-interface/pull/804.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-06-06 10:07:50 +02:00
parent 4ca660504e
commit 28ea7724d3
2 changed files with 6 additions and 23 deletions
+1 -1
View File
@@ -63,7 +63,7 @@
</style>
<Floating>
<div slot="toggle" class="clone-button">Clone</div>
<div slot="toggle" class="clone-button" role="button">Clone</div>
<svelte:fragment slot="modal">
<div class="dropdown">
<Command color="caution" command={radCloneUrl} />
+5 -22
View File
@@ -42,33 +42,16 @@ test("copy to clipboard", async ({ page, browserName, context }) => {
// `rad clone` URL.
{
await page.getByText("Clone").click();
await page
.locator(`text=rad clone ${sourceBrowsingRid.substring(0, 6)}`)
.hover();
await page
.locator(".clone-url-wrapper > span")
.first()
.locator(".clipboard")
.click();
await page.locator('role=button[name="Clone"]').click();
await page.locator("text=rad clone").hover();
await page.locator("text=rad clone").locator(".clipboard").first().click();
await expectClipboard(`rad clone ${sourceBrowsingRid}`, page);
}
// `git clone` URL.
{
await page.getByText("Clone").click();
await page
.locator(
`text=git clone http://127.0.0.1/${sourceBrowsingRid
.replace("rad:", "")
.substring(0, 10)}`,
)
.hover();
await page
.locator(".clone-url-wrapper > span")
.last()
.locator(".clipboard")
.click();
await page.locator("text=git clone").hover();
await page.locator("text=git clone").locator(".clipboard").first().click();
await expectClipboard(
`git clone http://127.0.0.1/${sourceBrowsingRid.replace(
"rad:",