Skip to content

Commit 8d440f2

Browse files
committed
feat(button): readme setup
1 parent 91c3b77 commit 8d440f2

File tree

18 files changed

+271
-86
lines changed

18 files changed

+271
-86
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,4 @@ CHANGELOG.md
198198

199199

200200
/AllTestResults/coverage.cobertura.xml
201+
/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/Logs/*.txt

PackageSettings.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<NupkgOutputPath>$(NupkgOutputPath)</NupkgOutputPath>
88

99
<!--can be local folder-->
10+
1011
<TELBlazorPackageSource>$(TELBlazorPackageSource)</TELBlazorPackageSource>
1112

1213
<!--Use project reference for faster iteration in development-->

README.md

Lines changed: 185 additions & 60 deletions
Large diffs are not rendered by default.

TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost.Client/packages.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
"Blazored.LocalStorage": "[4.5.0, )",
319319
"Microsoft.AspNetCore.Components.Web": "[8.0.14, )",
320320
"Serilog": "[4.2.0, )",
321-
"TELBlazor.Components": "[10.9.9, )"
321+
"TELBlazor.Components": "[1.4.0, )"
322322
}
323323
},
324324
"Microsoft.AspNetCore.Components.Web": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"APIs": {
3+
},
4+
5+
"Serilog": {
6+
"Using": [
7+
"Serilog.Sinks.BrowserConsole"
8+
],
9+
"MinimumLevel": {
10+
"Default": "Information",
11+
"Override": {
12+
"Microsoft": "Warning",
13+
"System": "Warning"
14+
}
15+
},
16+
"WriteTo": [
17+
{
18+
"Name": "BrowserConsole",
19+
"Args": {
20+
"formatter": "Serilog.Formatting.Compact.CompactJsonFormatter, Serilog.Formatting.Compact"
21+
}
22+
}
23+
],
24+
"Enrich": [ "FromLogContext", "WithMachineName", "WithProcessId", "WithThreadId" ],
25+
"Properties": {
26+
"Application": "TELBlazor ShowCase E2E Client",
27+
"Environment": "Development"
28+
}
29+
},
30+
"Properties": {
31+
"Application": "TELBlazor ShowCase E2E Client",
32+
"Environment": "Development"
33+
},
34+
"AllowedHosts": "*"
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gitinclude
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gitinclude

TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/TELBlazor.Components.ShowCase.E2ETests.WasmServerHost/packages.lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"Blazored.LocalStorage": "[4.5.0, )",
356356
"Microsoft.AspNetCore.Components.Web": "[8.0.14, )",
357357
"Serilog": "[4.2.0, )",
358-
"TELBlazor.Components": "[10.9.9, )"
358+
"TELBlazor.Components": "[1.4.0, )"
359359
}
360360
},
361361
"Microsoft.AspNetCore.Components.Web": {

TELBlazor.Components.ShowCase.E2ETests/Helpers/BrowserHelper.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ namespace TELBlazor.Components.ShowCase.E2ETests.Helpers
99
{
1010
public static class BrowserHelper
1111
{
12+
// Setting value using PackageSetting.props potentially replace appsettings.Test.json in future especially if apis
13+
static bool headless =>
14+
#if HEADLESS_TESTING
15+
true;
16+
#else
17+
false;
18+
#endif
1219

1320
public static async Task<IBrowserContext> CreateBrowserContextAsync(IPlaywright playwright, string browserType, bool jsEnabled, ViewportType viewport, string baseUrl)
1421
{

TELBlazor.Components.ShowCase.E2ETests/TELBlazor.Components.ShowCase.E2ETests.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@
88
<IsPackable>false</IsPackable>
99
<IsTestProject>true</IsTestProject>
1010
<Configurations>Debug;Release;ci</Configurations>
11-
11+
<DefineConstants Condition="'$(HeadlessTesting)' == 'true'">$(DefineConstants);HEADLESS_TESTING</DefineConstants>
1212
</PropertyGroup>
13-
<Target Name="SetHeadlessTestingEnvVar" BeforeTargets="Build">
14-
<Message Text="Setting HeadlessTesting: $(HeadlessTesting)" Importance="high" />
15-
<Exec Command="set HEADLESS_TESTING $(HeadlessTesting)" />
16-
</Target>
13+
1714
<ItemGroup>
1815
<PackageReference Include="AutoFixture" />
1916
<PackageReference Include="coverlet.msbuild" />

0 commit comments

Comments
 (0)