Skip to content

Commit

Permalink
fix(dx): fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 authored Jan 30, 2025
1 parent e443868 commit 9ab53ef
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
3 changes: 2 additions & 1 deletion apps/deploy-web/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-explicit-any
declare const require: any;
export default require("@akashnetwork/ui/tailwind")("deploy-web");
4 changes: 2 additions & 2 deletions apps/deploy-web/tests/build-template.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { expect, test } from "@playwright/test";
import { BuildTemplatePage } from "./pages/BuildTemplatePage";

test("ssh function absence", async ({ page, context }) => {
const plainLinuxPage = new BuildTemplatePage(context, page, "sdl-builder");
await plainLinuxPage.gotoInteractive();
const sdlBuilderPage = new BuildTemplatePage(context, page, "sdl-builder");
await sdlBuilderPage.gotoInteractive();

await expect(page.getByTestId("generate-ssh-keys-btn")).not.toBeVisible();
await expect(page.getByTestId("ssh-toggle")).not.toBeVisible();
Expand Down
1 change: 0 additions & 1 deletion apps/deploy-web/tests/fixture/wallet-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export const setupLeap = async (context: BrowserContext, page: Page) => {

await page.goto("http://localhost:3000");

await page.getByTestId("welcome-modal-accept-button").click();
await page.getByTestId("connect-wallet-btn").click();

await page.getByRole("button", { name: "Leap Leap" }).click();
Expand Down
1 change: 0 additions & 1 deletion apps/deploy-web/tests/pages/BuildTemplatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { DeployBasePage } from "./DeployBasePage";
export class BuildTemplatePage extends DeployBasePage {
async gotoInteractive() {
await this.page.goto("http://localhost:3000");
await this.page.getByTestId("welcome-modal-accept-button").click();
await this.page.getByTestId("sidebar-sdl-builder-link").first().click();
}
}
1 change: 0 additions & 1 deletion apps/deploy-web/tests/pages/DeployBasePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class DeployBasePage {
if (this.cardTestId) {
if (!skipInit) {
await this.page.goto(testEnvConfig.BASE_URL);
await this.page.getByTestId("welcome-modal-accept-button").click();
}
await this.page.getByTestId("sidebar-deploy-button").first().click();
await this.page.getByTestId(this.cardTestId).click();
Expand Down
2 changes: 1 addition & 1 deletion apps/indexer/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "console-indexer",
"name": "@akashnetwork/indexer",
"version": "1.10.2",
"description": "Indexer for any Cosmos based blockchain",
"homepage": "https://github.com/akash-network/console",
Expand Down
2 changes: 1 addition & 1 deletion apps/provider-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "rm -rf dist/* && npx tsc && esbuild server.ts --bundle --sourcemap --platform=node --target=node20.14.0 --outdir=dist",
"dev": "nodemon server.ts",
"dev-nodc": "npm run start",
"dev-nodc": "npm run dev",
"format": "prettier --write ./*.{ts,js,json} **/*.{ts,js,json}",
"lint": "eslint .",
"prod": "node ./dist/server.js",
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

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

0 comments on commit 9ab53ef

Please sign in to comment.