Skip to content

Commit 1f045e2

Browse files
committed
Sharding Changes
1 parent c68a632 commit 1f045e2

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎pageFactory/pageRepository/ElementsPage.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class ElementsPage {
4242
this.DOUBLE_CLICK_TEXT = page.getByText('You have done a double click');
4343
this.RIGHT_CLICK_BUTTON = page.locator('#rightClickBtn');
4444
this.RIGHT_CLICK_TEXT = page.getByText('You have done a right click');
45-
this.HOME_LINK = page.getByText('Home', { exact: true });
45+
this.HOME_LINK = page.locator('#simpleLink');
4646
this.DOWNLOAD_BUTTON = page.locator(`#downloadButton`);
4747
this.UPLOAD_BUTTON = page.locator(`#uploadFile`)
4848
this.UPLOADED_FILE_TEXT = page.getByText('sampleFile.jpeg');
@@ -61,8 +61,7 @@ export class ElementsPage {
6161
}
6262

6363
async getFirstColumnTableHeader(): Promise<string> {
64-
const headerText = await this.WEB_TABLES_HEADER.allTextContents(); // Get all Text from WebTable Header
65-
return headerText[0];
64+
return await this.WEB_TABLES_HEADER.first().innerText();
6665
}
6766

6867
async editCierraEntry(): Promise<void> {

‎playwright.config.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ const config: PlaywrightTestConfig = {
6060
baseURL: testConfig[currentEnvironment],
6161

6262
//Browser Mode
63-
// headless: isCI ? true : false,
64-
headless : false,
63+
headless: isCI ? true : false,
6564

6665
//Browser height and width
6766
viewport: { width: 1500, height: 730 },

0 commit comments

Comments
 (0)