Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('Side navigation: Highlighting ', { tags: ['@navigation', '@adminUser']
const productNavPo = new ProductNavPo();

usersPo.goTo();
usersPo.waitForPage();
usersPo.waitForMastheadTitle('Users');
productNavPo.activeNavItem().should('equal', 'Users');

usersPo.userRetentionLink().click();
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/tests/pages/users-and-auth/azuread.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import HomePagePo from '@/cypress/e2e/po/pages/home.po';
import AzureadPo from '@/cypress/e2e/po/edit/auth/azuread.po';
import { AuthProvider, AuthProviderPo } from '@/cypress/e2e/po/pages/users-and-auth/authProvider.po';

const authProviderPo = new AuthProviderPo('local');
const azureadPo = new AzureadPo('local');
const authProviderPo = new AuthProviderPo('_');
const azureadPo = new AzureadPo('_');

const tenantId = '564b6f53-ebf4-43c3-8077-44c56a44990a';
const applicationId = '18cca356-170e-4bd9-a4a4-2e349855f96b';
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/tests/pages/users-and-auth/cognito.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import HomePagePo from '@/cypress/e2e/po/pages/home.po';
import AmazonCognitoPo from '@/cypress/e2e/po/edit/auth/cognito.po';
import { AuthProvider, AuthProviderPo } from '@/cypress/e2e/po/pages/users-and-auth/authProvider.po';

const authProviderPo = new AuthProviderPo('local');
const cognitoPo = new AmazonCognitoPo('local');
const authProviderPo = new AuthProviderPo('_');
const cognitoPo = new AmazonCognitoPo('_');

const clientId = 'test-client-id';
const clientSecret = 'test-client-secret';
Expand Down
2 changes: 1 addition & 1 deletion shell/components/form/ResourceTabs/composable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const useTabCountWatcher = () => {

export const useTabCountUpdater = () => {
const tabKey = randomStr();
const updateCount = inject<UpdateCountFn>(UPDATE_COUNT_PROVIDER_KEY);
const updateCount = inject<UpdateCountFn | undefined>(UPDATE_COUNT_PROVIDER_KEY, undefined);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't fix the noted issue but it does resolve a warning I was seeing in the console when a table was rendered outside of a tab.

image


const updateTabCount = (count: number | undefined) => {
updateCount?.(tabKey, count);
Expand Down
9 changes: 8 additions & 1 deletion shell/config/product/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
RBAC_BUILTIN, RBAC_DEFAULT, STATE, NAME as HEADER_NAME, AGE, SIMPLE_NAME
} from '@shell/config/table-headers';
import { MULTI_CLUSTER } from '@shell/store/features';
import { BLANK_CLUSTER } from '@shell/store/store-types';

export const NAME = 'auth';

Expand Down Expand Up @@ -34,6 +35,12 @@ export function init(store) {
removable: false,
showClusterSwitcher: false,
category: 'configuration',
to: {
name: 'c-cluster-product-resource',
params: {
product: NAME, resource: MANAGEMENT.USER, cluster: BLANK_CLUSTER
}
}
});

virtualType({
Expand All @@ -56,7 +63,7 @@ export function init(store) {
route: {
name: 'c-cluster-product-resource',
params: {
cluster: 'local',
cluster: BLANK_CLUSTER,
product: NAME,
resource: MANAGEMENT.USER,
}
Expand Down
Loading