Skip to content

Commit

Permalink
MET-6213 Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
andyjmaclean committed Oct 28, 2024
1 parent 0490798 commit 8ceaf6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/sandbox/cypress/e2e/debias.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ context('Sandbox', () => {
cy.wait(pollInterval);
cy.get(selDebiasLink)
.last()
.click();
.click(force);
cy.contains(txtNoDetections).should('not.exist');
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ describe('DatasetInfoComponent', () => {
expect(component.canRunDebias).toBeFalsy();

component.datasetId = DebiasState.READY;
component.checkIfCanRunDebias();
tick(1);
expect(component.canRunDebias).toBeFalsy();
expect(component.canRunDebias).toBeTruthy();
}));

it('should invoke checkIfCanRunDebias when the dataset id is set', fakeAsync(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ export class DatasetInfoComponent extends SubscriptionManager {

@Input() set datasetId(datasetId: string) {
this._datasetId = datasetId;
this.canRunDebias = false;

if (this.modalConfirms.isOpen(this.modalIdPrefix + this.modalIdDebias)) {
this.modalDebias.close(true);
}

this.canRunDebias = false;
this.checkIfCanRunDebias();

this.subs.push(
Expand All @@ -114,7 +114,6 @@ export class DatasetInfoComponent extends SubscriptionManager {
this.datasetInfo = info;
})
);
this.canRunDebias = false;
}

datasetInfo?: DatasetInfo;
Expand Down

0 comments on commit 8ceaf6b

Please sign in to comment.