-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(browser-extension): wip e2e testing setup
- Loading branch information
1 parent
8a1830d
commit db7ebcd
Showing
1 changed file
with
11 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,18 +35,18 @@ async function bootstrap(options = {}) { | |
(async function startChrome() { | ||
const { extPage, appPage } = await bootstrap(); | ||
|
||
// await appPage.bringToFront(); | ||
await appPage.bringToFront(); | ||
// await sleep(5000); | ||
await extPage.bringToFront(); | ||
await extPage.click('#app_btn_activate'); | ||
await sleep(150); | ||
await extPage.click('#app_nav_preference'); | ||
await extPage.type('#app_field_email', '[email protected]'); | ||
await extPage.click('#app_btn_save'); | ||
await sleep(500); | ||
await extPage.evaluate(() => { | ||
alert(JSON.stringify(localStorage)); | ||
}); | ||
// await extPage.bringToFront(); | ||
// await sleep(150); | ||
// await extPage.click('#app_btn_activate'); | ||
// await extPage.click('#app_nav_preference'); | ||
// await extPage.type('#app_field_email', '[email protected]'); | ||
// await extPage.click('#app_btn_save'); | ||
// await sleep(500); | ||
// await extPage.evaluate(() => { | ||
// alert(JSON.stringify(localStorage)); | ||
// }); | ||
// await sleep(5000); | ||
// await sleep(10000); | ||
// await browser.close(); | ||
|