Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Dec 18, 2023
1 parent 74b9b1b commit 32e5d57
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions playwright-tests/tests/community.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { test, expect } from "@playwright/test";

test("should load a community page if handle exists", async ({ page }) => {
await page.goto("/devhub.near/widget/app?page=community&handle=devhub-test");
await page.goto(
"/devhub.near/widget/app?page=community&handle=devhub-test"
);

// Using the <Link> that wraps the tabs to identify a community page loaded
const communityTabSelector = `a[href^="/devhub.near/widget/app?page=community&handle=devhub-test&tab="]`;
Expand All @@ -20,7 +22,7 @@ test("should load a community page if handle exists", async ({ page }) => {

test("should load an error page if handle does not exist", async ({ page }) => {
await page.goto(
"/devhub.near/widget/app?page=community&handle=devhub-faketest"
"/devgovgigs.near/widget/app?page=community&handle=devhub-faketest"
);

// Using the <Link> that wraps the card to identify a community
Expand Down Expand Up @@ -89,7 +91,7 @@ test.describe("Wallet is not connected", () => {
page,
}) => {
await page.goto(
"/devhub.near/widget/app?page=community&handle=devhub-test"
"/devgovgigs.near/widget/app?page=community&handle=devhub-test"
);

const createCommunityButtonSelector = 'button:has-text("Post")';
Expand Down

0 comments on commit 32e5d57

Please sign in to comment.