Skip to content

Commit

Permalink
scope:
Browse files Browse the repository at this point in the history
changed headless to true
  • Loading branch information
RockStar268 committed Apr 4, 2024
1 parent 5bea87b commit 6ab73cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const config: PlaywrightTestConfig = {
testMatch: ["playwright/tests/*"],
use:{
baseURL: "https://test-rpg.vercel.app/",
headless: false,
headless: true,
screenshot: "only-on-failure",
video: "retain-on-failure",
// launchOptions:{ uncomment this if u want it to be executed slower than default speed
Expand Down
4 changes: 2 additions & 2 deletions playwright/tests/play.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { BUILDS } from '../resources/data/globalVariables';
import { errorMessages } from '../resources/enums/errorMessages';


test("validateCharacterNamePlaceholder", async ({ page , homepage, playpage}) =>{
test("Character Name Input Field Placeholder Validation", async ({ page , homepage, playpage}) =>{
await page.goto("/");
await homepage.clickOnPlayButton();
await expect(playpage.characterNameInput).toBeVisible(); // element is located by placeholder
})


test("mandatoryCharacterNameInput", async ({ page , homepage, playpage}) =>{
test("Character Name Field Mandatory", async ({ page , homepage, playpage}) =>{
await page.goto("/");
await homepage.clickOnPlayButton();
await expect(playpage.minCharErrorMessage).not.toBeVisible();
Expand Down

0 comments on commit 6ab73cf

Please sign in to comment.