Adding some UI test stubs

This commit is contained in:
Rick Falkvinge
2018-10-26 13:01:53 +02:00
parent a59715dda2
commit dc86753f09
4 changed files with 74 additions and 0 deletions
+2
View File
@@ -491,6 +491,8 @@
<Compile Include="DashboardTasks\Tasks.cs" />
<Compile Include="DashboardTasks\TaskSalary.cs" />
<Compile Include="DashboardTasks\TaskVolunteer.cs" />
<Compile Include="UITests\Sockets.cs" />
<Compile Include="UITests\IUITest.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Basic\Basic.csproj">
+26
View File
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
namespace Swarmops.Logic.UITests
{
public interface IUITest
{
string Id { get; }
string Name { get; }
void ExecuteServerSide();
string JavaScriptClientCode { get; }
}
public interface IUITestGroup
{
string GroupId { get; }
string GroupName { get; }
string JavaScriptClientCodeDocReady { get; }
void InitializeServerSide();
IUITest[] Tests { get; }
}
}
+45
View File
@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Swarmops.Logic.UITests
{
public class Sockets: IUITestGroup
{
public string GroupId { get { return "Sockets"; } }
public string GroupName { get { return "Sockets"; } }
public void InitializeServerSide() { }
public string JavaScriptClientCodeDocReady { get { return string.Empty; } }
public IUITest[] Tests
{
get
{
return new IUITest[ ] {
new TestSocketConnecting() /*,
new TestSocketEcho(),
new TestFrontendHeartbeatReceived(),
new TestBackendHeartbeatReceived()*/
};
}
}
}
public class TestSocketConnecting : IUITest
{
public string Id { get { return @"Browser"; } }
public string Name { get { return @"Browser WebSocket connection"; } }
public void ExecuteServerSide()
{
}
public string JavaScriptClientCode { get { return string.Empty; } }
}
}
+1
View File
@@ -1343,6 +1343,7 @@
<Content Include="Images\Icons\iconshock-pdf-128px.png" />
<Content Include="Images\Icons\iconshock-red-cross-sphere-128x96px.png" />
<Content Include="Images\Icons\iconshock-yellow-sphere-128x96px.png" />
<Content Include="Images\Icons\iconshock-yellow-sphere-30pct-128x96px.png" />
<Content Include="Images\Other\blank-logo-640x360.png" />
<Content Include="Images\Flags\ae-24px.png" />
<Content Include="Images\Flags\ae-64px.png" />