-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: convert e2e app to standalone
Converts the e2e app to standalone APIs to reduce the amout of code we need to maintain.
- Loading branch information
1 parent
65446f2
commit 4888ffd
Showing
24 changed files
with
69 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
src/e2e-app/block-scroll-strategy/block-scroll-strategy-e2e-module.ts
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/e2e-app/block-scroll-strategy/block-scroll-strategy-e2e.ts
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
src/e2e-app/component-harness/component-harness-e2e-module.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
src/e2e-app/components/block-scroll-strategy/block-scroll-strategy-e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import {Component, inject} from '@angular/core'; | ||
import {Overlay} from '@angular/cdk/overlay'; | ||
import {ScrollingModule} from '@angular/cdk/scrolling'; | ||
|
||
@Component({ | ||
selector: 'block-scroll-strategy-e2e', | ||
templateUrl: 'block-scroll-strategy-e2e.html', | ||
styleUrls: ['block-scroll-strategy-e2e.css'], | ||
standalone: true, | ||
imports: [ScrollingModule], | ||
}) | ||
export class BlockScrollStrategyE2E { | ||
scrollStrategy = inject(Overlay).scrollStrategies.block(); | ||
} |
3 changes: 3 additions & 0 deletions
3
...omponent-harness/component-harness-e2e.ts → ...e-app/components/component-harness-e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core'; | ||
import {TestComponentsModule} from '@angular/cdk/testing/tests'; | ||
|
||
@Component({ | ||
selector: 'component-harness-e2e', | ||
template: `<test-main></test-main>`, | ||
encapsulation: ViewEncapsulation.None, | ||
changeDetection: ChangeDetectionStrategy.OnPush, | ||
standalone: true, | ||
imports: [TestComponentsModule], | ||
}) | ||
export class ComponentHarnessE2e {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
src/e2e-app/e2e-app/e2e-app-layout.ts → src/e2e-app/components/e2e-app/e2e-app.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'home', | ||
template: `<p>Welcome to the e2e tests app</p>`, | ||
standalone: true, | ||
}) | ||
export class Home {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
...-app/virtual-scroll/virtual-scroll-e2e.ts → ...ents/virtual-scroll/virtual-scroll-e2e.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
import {enableProdMode} from '@angular/core'; | ||
import {platformBrowser} from '@angular/platform-browser'; | ||
import {bootstrapApplication, provideProtractorTestingSupport} from '@angular/platform-browser'; | ||
import {provideNoopAnimations} from '@angular/platform-browser/animations'; | ||
import {provideRouter} from '@angular/router'; | ||
|
||
import {MainModule} from './main-module'; | ||
import {E2eApp} from './components/e2e-app/e2e-app'; | ||
import {Home} from './components/home'; | ||
import {BlockScrollStrategyE2E} from './components/block-scroll-strategy/block-scroll-strategy-e2e'; | ||
import {ComponentHarnessE2e} from './components/component-harness-e2e'; | ||
import {SliderE2e} from './components/slider-e2e'; | ||
import {VirtualScrollE2E} from './components/virtual-scroll/virtual-scroll-e2e'; | ||
|
||
enableProdMode(); | ||
|
||
platformBrowser().bootstrapModule(MainModule); | ||
bootstrapApplication(E2eApp, { | ||
providers: [ | ||
provideNoopAnimations(), | ||
provideProtractorTestingSupport(), | ||
provideRouter([ | ||
{path: '', component: Home}, | ||
{path: 'block-scroll-strategy', component: BlockScrollStrategyE2E}, | ||
{path: 'component-harness', component: ComponentHarnessE2e}, | ||
{path: 'slider', component: SliderE2e}, | ||
{path: 'virtual-scroll', component: VirtualScrollE2E}, | ||
]), | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.