Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add possible fix in the angular example #313

Merged
merged 2 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/angular/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
// Disabling promise rejection wrapping because it can cause some bugs
//https://github.com/angular/angular/issues/31680
import './zone-flags'
import 'zone.js'; // Included with Angular CLI.


Expand Down
2 changes: 2 additions & 0 deletions examples/angular/src/zone-flags.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
;(window as any).__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION =
true
1 change: 1 addition & 0 deletions tests/e2e/specs/examples.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ examples.forEach(example => {

async function selectTestCard(page, cardClass) {
await page.locator('#krcardsMenu').hover()
if (cardClass.includes('visa')) await page.locator(`span.visa`).click()
await page.locator(`tr.${cardClass}`).click()
}
Loading