Skip to content

Commit

Permalink
test(apps/web): Extend e2e tests for applications page
Browse files Browse the repository at this point in the history
  • Loading branch information
nevendyulgerov committed May 13, 2024
1 parent 20fc48d commit b062c61
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/web/e2e/pages/applications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,19 @@ test("should display 'All applications' table", async ({ page }) => {
await expect(page.getByRole("row", { name: "Id Owner URL" })).toBeVisible();
await expect(page.getByRole("row")).toHaveCount(11);
});

test("should display correct tabs", async ({ page }) => {
await expect(page.getByText("All apps")).toBeVisible();
await expect(page.getByText("My apps")).toBeVisible();
});

test('should display empty state when "My apps" tab is active', async ({
page,
}) => {
const myAppsTab = page.getByText("My apps");
await myAppsTab.click();

await expect(
page.getByText("Connect your wallet to list your Applications"),
).toBeVisible();
});

0 comments on commit b062c61

Please sign in to comment.