Skip to content

Commit

Permalink
feat(browser-extension): wip e2e testing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyabrain committed Jul 24, 2022
1 parent 8a1830d commit db7ebcd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions browser-extension/plugin/e2e/bootstrap-chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit db7ebcd

Please sign in to comment.