Skip to content

Commit

Permalink
feat(console): add Leap wallet extension
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Sep 25, 2024
1 parent c08b662 commit 48dd017
Show file tree
Hide file tree
Showing 128 changed files with 11,712 additions and 9 deletions.
16 changes: 8 additions & 8 deletions apps/deploy-web/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ export default defineConfig({
use: { ...devices["Desktop Chrome"] }
},

{
name: "firefox",
use: { ...devices["Desktop Firefox"] }
},
// {
// name: "firefox",
// use: { ...devices["Desktop Firefox"] }
// },

{
name: "webkit",
use: { ...devices["Desktop Safari"] }
}
// {
// name: "webkit",
// use: { ...devices["Desktop Safari"] }
// }

/* Test against mobile viewports. */
// {
Expand Down
27 changes: 27 additions & 0 deletions apps/deploy-web/tests/deploy-hello-world.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { expect, selectors } from "@playwright/test";
import { test } from "./utils/fixture";

import { SSH_VM_IMAGES } from "@src/utils/sdl/data";
import { DeployHelloWorldPage } from "./pages/DeployHelloWorldPage";

test.beforeAll(async ({ page, extensionId }) => {
page.waitForLoadState("domcontentloaded");
console.log("clicking seed");
selectors.setTestIdAttribute("data-testing-id");

await page.goto(`chrome-extension://${extensionId}/index.html#/onboarding`);
await page.getByTestId("import-seed-phrase").click();

await page.locator(`//*[@id="root"]/div/div[2]/div/div[1]/div[1]/div/div[2]/div[1]`).click();
await page.locator("input").fill("test");

await page.pause();

selectors.setTestIdAttribute("data-testid");
});

test.only("deploy hello world", async ({ page }) => {
console.log("testing");
const customTemplatePage = new DeployHelloWorldPage(page, "new-deployment", "build-template-card");
await customTemplatePage.gotoInteractive();
});
2 changes: 1 addition & 1 deletion apps/deploy-web/tests/pages/DeployBasePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ export class DeployBasePage {
async submit() {
await this.page.getByTestId("create-deployment-btn").click();
}
}
}
7 changes: 7 additions & 0 deletions apps/deploy-web/tests/pages/DeployHelloWorldPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { DeployBasePage } from "./DeployBasePage";

export class DeployHelloWorldPage extends DeployBasePage {
async fillImageName(name: string) {
await this.page.getByTestId("image-name-input").fill(name);
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/deploy-web/tests/utils/Leap/1035.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/deploy-web/tests/utils/Leap/1131.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/deploy-web/tests/utils/Leap/1348.js

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 48dd017

Please sign in to comment.