mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 05:30:01 +00:00
fix team-owned tests
This commit is contained in:
@@ -195,7 +195,7 @@ describe("NavigationProductSwitcherComponent", () => {
|
||||
|
||||
const navItem = fixture.debugElement.query(By.directive(NavItemComponent));
|
||||
|
||||
expect(navItem.componentInstance.forceActiveStyles).toBe(true);
|
||||
expect(navItem.componentInstance.forceActiveStyles()).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ describe("VaultBannersComponent", () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
const banner = fixture.debugElement.query(By.directive(BannerComponent));
|
||||
expect(banner.componentInstance.bannerType).toBe("premium");
|
||||
expect(banner.componentInstance.bannerType()).toBe("premium");
|
||||
});
|
||||
|
||||
it("dismisses premium banner", async () => {
|
||||
|
||||
@@ -229,7 +229,7 @@ describe("ItemDetailsSectionComponent", () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
const select = fixture.debugElement.query(By.directive(SelectComponent));
|
||||
const { value, label } = select.componentInstance.items[0];
|
||||
const { value, label } = select.componentInstance.items()[0];
|
||||
|
||||
expect(value).toBeNull();
|
||||
expect(label).toBe("test@example.com");
|
||||
@@ -245,7 +245,7 @@ describe("ItemDetailsSectionComponent", () => {
|
||||
|
||||
const select = fixture.debugElement.query(By.directive(SelectComponent));
|
||||
|
||||
const { value, label } = select.componentInstance.items[0];
|
||||
const { value, label } = select.componentInstance.items()[0];
|
||||
expect(value).toBeNull();
|
||||
expect(label).toBe("test@example.com");
|
||||
});
|
||||
@@ -544,7 +544,7 @@ describe("ItemDetailsSectionComponent", () => {
|
||||
fixture.detectChanges();
|
||||
|
||||
const select = fixture.debugElement.query(By.directive(SelectComponent));
|
||||
const { label } = select.componentInstance.items[0];
|
||||
const { label } = select.componentInstance.items()[0];
|
||||
|
||||
expect(label).toBe("org1");
|
||||
});
|
||||
|
||||
@@ -102,7 +102,7 @@ describe("LoginCredentialsViewComponent", () => {
|
||||
const usernameCopyButton = usernameField.query(By.directive(CopyClickDirective));
|
||||
const usernameCopyClickDirective = usernameCopyButton.injector.get(CopyClickDirective);
|
||||
|
||||
expect(usernameCopyClickDirective.valueToCopy).toBe(cipher.login.username);
|
||||
expect(usernameCopyClickDirective.valueToCopy()).toBe(cipher.login.username);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -136,7 +136,7 @@ describe("LoginCredentialsViewComponent", () => {
|
||||
const passwordCopyButton = passwordField.query(By.directive(CopyClickDirective));
|
||||
const passwordCopyClickDirective = passwordCopyButton.injector.get(CopyClickDirective);
|
||||
|
||||
expect(passwordCopyClickDirective.valueToCopy).toBe(cipher.login.password);
|
||||
expect(passwordCopyClickDirective.valueToCopy()).toBe(cipher.login.password);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user