diff --git a/tests/sanity/tests/model/leads/leads-page.ts b/tests/sanity/tests/model/leads/leads-page.ts index 0ca2d22a6d..70e54b842f 100644 --- a/tests/sanity/tests/model/leads/leads-page.ts +++ b/tests/sanity/tests/model/leads/leads-page.ts @@ -8,7 +8,7 @@ export class LeadsPage { } readonly leadApplication = (): Locator => this.page.locator('[id="app-lead\\:string\\:LeadApplication"]') - readonly customersNavElement = (): Locator => this.page.locator('text=Customers') + readonly customersNavElement = (): Locator => this.page.locator('.antiPanel-navigator').locator('text=Customers') readonly newCustomerButton = (): Locator => this.page.locator('button:has-text("New Customer")') readonly personButton = (): Locator => this.page.locator('button:has-text("Person")') readonly companyButton = (): Locator => this.page.locator('button:has-text("Company")') diff --git a/tests/sanity/tests/model/recruiting/recruiting-page.ts b/tests/sanity/tests/model/recruiting/recruiting-page.ts index 12571c43f6..26fb405104 100644 --- a/tests/sanity/tests/model/recruiting/recruiting-page.ts +++ b/tests/sanity/tests/model/recruiting/recruiting-page.ts @@ -33,7 +33,7 @@ export class RecruitingPage { applicationLabelChunterButton = (): Locator => this.page.locator('[id="app-chunter\\:string\\:ApplicationLabelChunter"]') - generalChatLink = (): Locator => this.page.locator('text=general') + generalChatLink = (): Locator => this.page.locator('.antiPanel-navigator').locator('text=general') contactsButton = (): Locator => this.page.locator('[id="app-contact\\:string\\:Contacts"]') employeeSection = (): Locator => this.page.getByRole('button', { name: 'Employee' }) johnAppleseed = (): Locator => this.page.locator('text=Appleseed John') diff --git a/tests/sanity/tests/model/tracker/common-tracker-page.ts b/tests/sanity/tests/model/tracker/common-tracker-page.ts index 89e551b427..6fc8a79ca7 100644 --- a/tests/sanity/tests/model/tracker/common-tracker-page.ts +++ b/tests/sanity/tests/model/tracker/common-tracker-page.ts @@ -53,7 +53,7 @@ export class CommonTrackerPage extends CalendarPage { submitDatePopup = (): Locator => this.page.locator('div.date-popup-container button[type="submit"]') trackerApplicationButton = (): Locator => this.page.locator('[id="app-tracker\\:string\\:TrackerApplication"]') - componentsLink = (): Locator => this.page.locator('text=Components') + componentsLink = (): Locator => this.page.locator('.antiPanel-navigator').locator('text=Components') createComponentButton = (): Locator => this.page.getByRole('button', { name: 'Component', exact: true }) componentNameInput = (): Locator => this.page.locator('[placeholder="Component\\ name"]') createComponentConfirmButton = (): Locator => this.page.locator('button:has-text("Create component")') diff --git a/tests/sanity/tests/model/tracker/issues-page.ts b/tests/sanity/tests/model/tracker/issues-page.ts index 65a75c0089..b2628150ce 100644 --- a/tests/sanity/tests/model/tracker/issues-page.ts +++ b/tests/sanity/tests/model/tracker/issues-page.ts @@ -8,7 +8,7 @@ import { NewIssue } from './types' const retryOptions = { intervals: [1000, 1500, 2500], timeout: 60000 } export class IssuesPage extends CommonTrackerPage { modelSelectorAll = (): Locator => this.page.locator('label[data-id="tab-all"]') - issues = (): Locator => this.page.locator('text="Issues"') + issues = (): Locator => this.page.locator('.antiPanel-navigator').locator('text="Issues"') subIssues = (): Locator => this.page.locator('button:has-text("Add sub-issue")') newIssue = (): Locator => this.page.locator('#new-issue') modelSelectorActive = (): Locator => this.page.locator('label[data-id="tab-active"]') @@ -109,7 +109,7 @@ export class IssuesPage extends CommonTrackerPage { doneHeaderKanban = (): Locator => this.page.locator('.header :text-is("Done")').first() canceledHeaderKanban = (): Locator => this.page.locator('.header :text-is("Canceled")').first() - myIssuesButton = (): Locator => this.page.locator('text="My issues"') + myIssuesButton = (): Locator => this.page.locator('.antiPanel-navigator').locator('text="My issues"') assignedTab = (): Locator => this.page.locator('[data-id="tab-assigned"]') createdTab = (): Locator => this.page.locator('[data-id="tab-created"]') subscribedTab = (): Locator => this.page.locator('[data-id="tab-subscribed"]') @@ -140,7 +140,7 @@ export class IssuesPage extends CommonTrackerPage { timeSpentReports = (): Locator => this.page.getByText('Time spent reports', { exact: true }) addTimeReport = (): Locator => this.page.locator('text="Add time report"') issueName = (name: string): Locator => this.page.locator(`text="${name}"`) - issuesButton = (): Locator => this.page.locator('text="Issues"') + issuesButton = (): Locator => this.page.locator('.antiPanel-navigator').locator('text="Issues"') viewButton = (): Locator => this.page.locator('button[data-id="btn-viewOptions"]') orderingButton = (): Locator => this.page.locator('.ordering button') modifiedDateMenuItem = (): Locator => this.page.locator('button.menu-item', { hasText: 'Modified date' })