Skip to content

Commit

Permalink
e2e: apply format
Browse files Browse the repository at this point in the history
  • Loading branch information
nicobytes committed Jan 2, 2025
1 parent 4982b98 commit c5d9b2c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { Page } from "@playwright/test";

export class ListingContentTypesPage {

constructor(private page: Page) {}

async goTo() {
await this.page.goto("/content-types-angular");
}


}
6 changes: 2 additions & 4 deletions e2e/dotcms-e2e-node/frontend/pages/listngContent.page.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { Page } from "@playwright/test";

export class ListingContentPage {

constructor(private page: Page) {}
#addBtn = this.page.locator("span[widgetid='dijit_form_DropDownButton_0']");
constructor(private page: Page) {}
#addBtn = this.page.locator("span[widgetid='dijit_form_DropDownButton_0']");
#addNewContent = this.page.locator(
".dijitPopup tr[aria-label='Add New Content']",
);


async goTo(filter?: string) {
const urlPath = new URL("/c/content", this.page.url());

Expand Down
12 changes: 6 additions & 6 deletions e2e/dotcms-e2e-node/frontend/pages/textField.page.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { expect, Page } from "@playwright/test";

export class TextFieldPage {
constructor(private page: Page) {}
constructor(private page: Page) {}

async fill(vairableName: string, value: string) {
const input = this.page.locator(`input#${vairableName}`);
await input.fill(value);
async fill(vairableName: string, value: string) {
const input = this.page.locator(`input#${vairableName}`);
await input.fill(value);

await expect(input).toHaveValue(value);
}
await expect(input).toHaveValue(value);
}
}

0 comments on commit c5d9b2c

Please sign in to comment.