-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
OlgaLarina
committed
Nov 8, 2023
1 parent
1a5802c
commit affeb9e
Showing
14 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
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
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
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
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
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,28 @@ | ||
import { Selector, fixture, test } from 'testcafe'; | ||
|
||
export function getSideBarGroupItem(text) { | ||
return Selector('.v2-class---drop-down-menu-item__link--level-1').withText(text); | ||
} | ||
export function getSideBarItem(text) { | ||
return Selector('.v2-class---drop-down-menu-item__link--level-2').withText(text); | ||
} | ||
export function getExampleTabSelector(text) { | ||
return Selector('.v2-class---footer-toolbar-item').filterVisible().withText(text); | ||
} | ||
export const explicitErrorHandler = () => { window.addEventListener('error', e => { | ||
if (e.message === 'ResizeObserver loop completed with undelivered notifications.' || | ||
e.message === 'ResizeObserver loop limit exceeded') { | ||
e.stopImmediatePropagation(); | ||
} }); | ||
}; | ||
|
||
export function getIUnderstandButton() { | ||
return Selector('span').withText('Accept All'); | ||
} | ||
|
||
export async function acceptCookie(t) { | ||
const cookiePopupAccept = Selector('.v2-class---banner-footer-actions .v2-class---button'); | ||
if(await cookiePopupAccept.exists) { | ||
await t.click(cookiePopupAccept); // close cookie msg | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.