-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Istvan Gercsak
committed
Dec 14, 2023
1 parent
ca1add5
commit dac9b23
Showing
27 changed files
with
382 additions
and
532 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { pageTitle, pageURL } from '../../support/data/page' | ||
import appointmentsPage from "../../support/page_objects/appointments/appointments.page" | ||
import generalCommands from "../../support/generalCommands/general.commands" | ||
|
||
// @ts-check | ||
const { test, expect } = require('@playwright/test'); | ||
const devFeatureFlags = JSON.parse(JSON.stringify(require("../../fixtures/feature_flags_dev.json"))); | ||
|
||
test.beforeEach("Authentication", async ({ page, request }) => { | ||
await page.goto(process.env.DEV_BASE_URL); | ||
await generalCommands.loginAPI(page, request); | ||
await generalCommands.turnOnFeatureFlag(page, devFeatureFlags); | ||
}) | ||
|
||
test('Appointment screen is available @smoke', async ({ page }) => { | ||
|
||
await appointmentsPage.navigatToAppointmentsScreen(page); | ||
await expect(page).toHaveTitle(pageTitle.APPOINTMENTS); | ||
await expect(page.url()).toContain(pageURL.APPOINTMENTS); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { pageTitle, pageURL } from '../../support/data/page' | ||
import clientsPage from "../../support/page_objects/clients/clients.page" | ||
import generalCommands from "../../support/generalCommands/general.commands" | ||
|
||
// @ts-check | ||
const { test, expect } = require('@playwright/test'); | ||
const devFeatureFlags = JSON.parse(JSON.stringify(require("../../fixtures/feature_flags_dev.json"))); | ||
|
||
test.beforeEach("Authentication", async ({ page, request }) => { | ||
await page.goto(process.env.DEV_BASE_URL); | ||
await generalCommands.loginAPI(page, request); | ||
await generalCommands.turnOnFeatureFlag(page, devFeatureFlags); | ||
}) | ||
|
||
test('Clients screen is available @smoke', async ({ page }) => { | ||
|
||
await clientsPage.navigatToClientsScreen(page); | ||
await expect(page).toHaveTitle(pageTitle.CLIENTS); | ||
await expect(page.url()).toContain(pageURL.CLIENTS); | ||
|
||
}); |
Oops, something went wrong.