Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Jan 17, 2024
1 parent 7ef1bd2 commit 4616296
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 172 deletions.
12 changes: 7 additions & 5 deletions playwright-tests/tests/blog.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test("should load blogs in the sidebar for a given handle", async ({
page,
}) => {
await page.goto(
"/devhub.near/widget/devhub.entity.addon.blog.Configurator?handle=devhub-test"
"/devgovgigs.near/widget/devhub.entity.addon.blog.Configurator?handle=devhub-test"
);

await page.waitForSelector(`[id^="edit-blog-selector-"]`);
Expand All @@ -18,7 +18,7 @@ test("should prepopulate the form when a blog is selected from the left", async
page,
}) => {
await page.goto(
"/devhub.near/widget/devhub.entity.addon.blog.Configurator?handle=devhub-test"
"/devgovgigs.near/widget/devhub.entity.addon.blog.Configurator?handle=devhub-test"
);

await page.waitForSelector(`[id^="edit-blog-selector-"]`);
Expand Down Expand Up @@ -56,7 +56,9 @@ test("should prepopulate the form when a blog is selected from the left", async
});

test("should have an empty form if select new blog", async ({ page }) => {
await page.goto("/devhub.near/widget/devhub.entity.addon.blog.Configurator");
await page.goto(
"/devgovgigs.near/widget/devhub.entity.addon.blog.Configurator"
);

const newBlogSelector = `[id^="create-new-blog"]`;
await page.waitForSelector(newBlogSelector, {
Expand Down Expand Up @@ -93,7 +95,7 @@ test("should load a blog page and its blogs for a given community handle", async
page,
}) => {
await page.goto(
"/devhub.near/widget/devhub.entity.addon.blog.Viewer?handle=devhub-test"
"/devgovgigs.near/widget/devhub.entity.addon.blog.Viewer?handle=devhub-test"
);

const blogCardSelector = '[id^="blog-card-"]';
Expand All @@ -102,4 +104,4 @@ test("should load a blog page and its blogs for a given community handle", async
const blogCards = await page.$$(blogCardSelector);

expect(blogCards.length).toBeGreaterThan(0);
});
});
Loading

0 comments on commit 4616296

Please sign in to comment.