Skip to content

Commit 1b324b5

Browse files
committed
fix: locator for logo on HTML report page in internal autotests
1 parent 69d5190 commit 1b324b5

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

autotests/pageObjects/pages/E2edReportExample/E2edReportExample.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export class E2edReportExample extends Page<CustomPageParams> {
2626
*/
2727
readonly header: Selector = locator('header');
2828

29+
/**
30+
* Logo of `e2ed` in page header.
31+
*/
32+
readonly logo: Selector = locator('logo');
33+
2934
/**
3035
* Navigation bar with test retries.
3136
*/
@@ -83,7 +88,7 @@ export class E2edReportExample extends Page<CustomPageParams> {
8388
}
8489

8590
async clickLogo(): Promise<void> {
86-
await click(this.header, {position: {x: 30, y: 30}});
91+
await click(this.logo);
8792
}
8893

8994
getRoute(): E2edReportExampleRoute {

autotests/pageObjects/pages/Main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export class Main extends Page<CustomPageParams> {
6868
({url}) => {
6969
if (
7070
url.startsWith('https://assets.msn.com/') ||
71+
url.startsWith('https://www.bing.com/ipv6test/') ||
72+
url.startsWith('https://www2.bing.com/ipv6test/') ||
7173
url.startsWith('https://browser.events.data.msn.com/') ||
7274
url.startsWith('https://img-s-msn-com.akamaized.net/') ||
7375
url.startsWith('https://rewards.bing.com/widget/') ||

autotests/tests/e2edReportExample/toMatchScreenshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {navigateToPage} from 'e2ed/actions';
66
test('correctly check screenshots via toMatchScreenshot', {meta: {testId: '20'}}, async () => {
77
const reportPage = await navigateToPage(E2edReportExample);
88

9-
await expect(reportPage.header.find('a'), 'toMatchScreenshot check screenshot').toMatchScreenshot(
9+
await expect(reportPage.logo, 'toMatchScreenshot check screenshot').toMatchScreenshot(
1010
'pwoZRA8i7O',
1111
{mask: []},
1212
);

0 commit comments

Comments
 (0)