-
Notifications
You must be signed in to change notification settings - Fork 13
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
AG-1435 #1304
AG-1435 #1304
Changes from all commits
1a74c6b
cc9c078
1e5ade8
feb334c
2293d4a
694d9de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,8 @@ describe('Component: Footer', () => { | |
const link = element.querySelector('.footer-logo a') as HTMLElement; | ||
expect(link).toBeTruthy(); | ||
|
||
// https://github.com/angular/angular/issues/45202 | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
router.navigate(['/about']); | ||
Comment on lines
+75
to
77
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. router.navigate returns a Promise, but is not awaited in Agora or in the Angular docs. Per the referenced link, it's common practice to ignore the Promise, so disable the lint rule for these cases. |
||
tick(); | ||
expect(location.path()).toBe('/about'); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,8 +54,8 @@ describe('Component: BarChart - Median', () => { | |
let component: MedianBarChartComponent; | ||
let element: HTMLElement; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
beforeEach(waitForAsync(async () => { | ||
await TestBed.configureTestingModule({ | ||
Comment on lines
+57
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Await promise, so there is not a warning from newly enabled |
||
declarations: [MedianBarChartComponent], | ||
imports: [RouterTestingModule], | ||
providers: [HelperService], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -403,6 +403,7 @@ <h1 class="gct-heading h2">Gene Comparison Tool</h1> | |
<div *ngIf="genesTable.filteredValue?.length"> | ||
<button | ||
class="pin-all-button" | ||
[disabled]="getPinDisabledStatus()" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Set the disabled property, rather than just a 'disabled' class, so that Playwright can confirm that the pin gene button is disabled when pinned gene limit has been reached. |
||
[ngClass]="{ | ||
disabled: getPinDisabledStatus() | ||
}" | ||
|
@@ -471,6 +472,7 @@ <h1 class="gct-heading h2">Gene Comparison Tool</h1> | |
<div> | ||
<button | ||
(click)="onPinGeneClick(gene)" | ||
[disabled]="getPinDisabledStatus()" | ||
[ngClass]="{ | ||
disabled: getPinDisabledStatus() | ||
}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting the
@typescript-eslint/no-floating-promises
rule causes this error:You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.
, so specify a project.