Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
chore(bridge): Removed obsolete common use cases page (#8419)
Browse files Browse the repository at this point in the history
Signed-off-by: TannerGilbert <gilberttanner.work@gmail.com>
  • Loading branch information
TannerGilbert committed Jul 18, 2022
1 parent cc9a212 commit 98e477b
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 303 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Expand Up @@ -39,19 +39,6 @@ const routes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'integrations' },
],
},
{
path: 'support',
children: [
{
path: 'common-use-cases',
loadChildren: () =>
import('./ktb-common-use-cases-view/ktb-common-use-cases-view.module').then(
(m) => m.KtbCommonUseCasesViewModule
),
},
{ path: '', pathMatch: 'full', redirectTo: 'common-use-cases' },
],
},
{ path: '', pathMatch: 'full', redirectTo: 'project' },
],
},
Expand Down
Expand Up @@ -26,16 +26,6 @@
Secrets
</button>
</dt-menu-group>
<dt-menu-group label="Support">
<button
dtMenuItem
aria-label="Open common use cases"
routerLinkActive="active"
routerLink="support/common-use-cases"
>
Common use cases
</button>
</dt-menu-group>
</dt-menu>
<div fxFlex="calc(100%-200px)">
<router-outlet></router-outlet>
Expand Down
Expand Up @@ -23,17 +23,16 @@ describe('KtbSettingsViewComponent', () => {
expect(component).toBeTruthy();
});

it('should have 5 entries in the submenu', () => {
it('should have 4 entries in the submenu', () => {
// given
const menuItems = fixture.debugElement.queryAll(By.css('.dt-menu.submenu .dt-menu-item'));

// then
expect(menuItems).toBeTruthy();
expect(menuItems.length).toEqual(5);
expect(menuItems.length).toEqual(4);
expect(menuItems[0].nativeElement.textContent.trim()).toEqual('Project');
expect(menuItems[1].nativeElement.textContent.trim()).toEqual('Services');
expect(menuItems[2].nativeElement.textContent.trim()).toEqual('Integrations');
expect(menuItems[3].nativeElement.textContent.trim()).toEqual('Secrets');
expect(menuItems[4].nativeElement.textContent.trim()).toEqual('Common use cases');
});
});
2 changes: 1 addition & 1 deletion bridge/cypress/support/pageobjects/SettingsPage.ts
@@ -1,5 +1,5 @@
/// <reference types="cypress" />
type subSettings = 'Integrations' | 'Project' | 'Services' | 'Secrets' | 'Common use cases';
type subSettings = 'Integrations' | 'Project' | 'Services' | 'Secrets';

class SettingsPage {
public goToUniformPage(): this {
Expand Down

0 comments on commit 98e477b

Please sign in to comment.