-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TESTS-89: feat(tests): working on First user change assignee, second …
…user should see assigned issue test (#4046) Signed-off-by: Alex Velichko <nestor_007@mail.ru>
- Loading branch information
1 parent
6f37f27
commit a3bf9c8
Showing
16 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import { type Locator, type Page } from '@playwright/test' | ||
import { CommonPage } from './common-page' | ||
|
||
export class LeftSideMenuPage { | ||
export class LeftSideMenuPage extends CommonPage { | ||
readonly page: Page | ||
readonly buttonChunter: Locator | ||
readonly buttonContacts: Locator | ||
readonly buttonTracker: Locator | ||
readonly buttonNotification: Locator | ||
|
||
constructor (page: Page) { | ||
super() | ||
this.page = page | ||
this.buttonChunter = page.locator('button[id$="ApplicationLabelChunter"]') | ||
this.buttonContacts = page.locator('button[id$="Contacts"]') | ||
this.buttonTracker = page.locator('button[id$="TrackerApplication"]') | ||
this.buttonNotification = page.locator('button[id$="Inbox"]') | ||
} | ||
} |
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,14 @@ | ||
import { expect, type Page } from '@playwright/test' | ||
|
||
export class NotificationPage { | ||
readonly page: Page | ||
|
||
constructor (page: Page) { | ||
this.page = page | ||
} | ||
|
||
async checkNotification (name: string, assignee: string): Promise<void> { | ||
const notification = this.page.locator('div[class*="inbox-activity"] span', { hasText: name }) | ||
await expect(notification.locator('xpath=../../..').locator('a span.ap-label')).toHaveText(assignee) | ||
} | ||
} |
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