Skip to content

Commit

Permalink
test: ensure running tests (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
a0m0rajab authored Jul 26, 2024
2 parents 2eb86a7 + d362213 commit fa58658
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions apps/web/tests/upwithcrowd/admin.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ test.describe("Admin Page testing", () => {
await page.getByRole("button", { name: "admin admin@abp.io" }).click();
await page.getByRole("link", { name: "Yönetim Merkezi" }).click();
await expect(
page.getByRole("link", { name: "Identity Management" }),
page.getByRole("link", { name: "Kimlik Yönetimi" }),
).toBeVisible();
await page.getByRole("link", { name: "Profile" }).click();
await expect(page.getByRole("link", { name: "Profile" })).toBeVisible();
await expect(page.getByRole("link", { name: "Campaigns" })).toBeVisible();
await page.getByRole("link", { name: "Profil" }).click();
await expect(page.getByRole("link", { name: "Profil" })).toBeVisible();
await expect(page.getByRole("link", { name: "Kampanyalar" })).toBeVisible();
await expect(
page.getByRole("link", { name: "Language Management" }),
page.getByRole("link", { name: "Dil Yönetimi" }),
).toBeVisible();
await expect(page.getByRole("link", { name: "New admin" })).toBeVisible();
await page.getByRole("link", { name: "New admin" }).click();
Expand Down
4 changes: 2 additions & 2 deletions apps/web/tests/upwithcrowd/main-page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ test.describe("Main Page testing", () => {
// await loginAsAdmin(page);
await page.goto("/en/public");
await page.getByText("konya").click();
const cities = ["bursa", "konya", "istanbul", "sakarya"];
const cities = ["bursa", "kizilay" ,"konya", "istanbul", "sakarya"];
for (const city of cities) {
await expect(page.getByText(city)).toBeVisible();
}
const cityLocator = page
.locator("div")
.filter({ hasText: /^İlerleyin$$/ })
.getByRole("button");
.getByRole("link");
await expect(cityLocator).toHaveCount(cities.length);
let index = 0;
for (let city of cities) {
Expand Down

0 comments on commit fa58658

Please sign in to comment.