From ef843503dbc938bc6bf576b52fb7b6d314cdb9e8 Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Mon, 28 Nov 2022 15:04:51 -0800 Subject: [PATCH] 13205 - Minor fixes based on Ashna's feedback. (#2166) * Minor fixes based on Ashna's feedback. * Unit test fix. --- auth-web/src/components/auth/common/LinkedBCOLBanner.vue | 2 +- auth-web/src/components/auth/create-account/BcolLogin.vue | 2 -- .../tests/unit/components/StaffRejectedAccountsTable.spec.ts | 5 +---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/auth-web/src/components/auth/common/LinkedBCOLBanner.vue b/auth-web/src/components/auth/common/LinkedBCOLBanner.vue index a13255040f..2d4b7cd4a1 100644 --- a/auth-web/src/components/auth/common/LinkedBCOLBanner.vue +++ b/auth-web/src/components/auth/common/LinkedBCOLBanner.vue @@ -49,7 +49,7 @@ - + diff --git a/auth-web/src/components/auth/create-account/BcolLogin.vue b/auth-web/src/components/auth/create-account/BcolLogin.vue index a078426228..7b6c67cd9d 100644 --- a/auth-web/src/components/auth/create-account/BcolLogin.vue +++ b/auth-web/src/components/auth/create-account/BcolLogin.vue @@ -78,12 +78,10 @@ export default class BcolLogin extends Vue { private errorMessage: string = '' private isLoading: boolean = false @Prop({ default: false }) hideLinkBtn: boolean - @Prop() defaultUserId: string @OrgModule.Action('validateBcolAccount') private readonly validateBcolAccount!: (bcolProfile: BcolProfile) => Promise private async mounted () { - this.username = this.defaultUserId || this.username this.password = '' } diff --git a/auth-web/tests/unit/components/StaffRejectedAccountsTable.spec.ts b/auth-web/tests/unit/components/StaffRejectedAccountsTable.spec.ts index bc67972a37..7eacd7c08b 100644 --- a/auth-web/tests/unit/components/StaffRejectedAccountsTable.spec.ts +++ b/auth-web/tests/unit/components/StaffRejectedAccountsTable.spec.ts @@ -59,11 +59,8 @@ describe('StaffRejectedAccountsTable.vue', () => { jest.clearAllMocks() }) - it('is a Vue instance', () => { + it('is a Vue instance and has a data table', () => { expect(wrapper.isVueInstance()).toBeTruthy() - }) - - it('Should have data table', () => { expect(wrapper.find('.user-list')).toBeTruthy() }) })