Skip to content

Commit

Permalink
Merge pull request #176 from CognizantOpenSource/maintenance/update-f…
Browse files Browse the repository at this point in the history
…laky-tests-10-10

Update Failing Unit Tests
  • Loading branch information
jwenclcsv committed Oct 10, 2022
2 parents 0f4b9be + a09da50 commit 07cd7a9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 36 deletions.
66 changes: 31 additions & 35 deletions Framework/FrameworkUnitTests/FrameworkUnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,38 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net471;netcoreapp3.1</TargetFrameworks>
<ProjectGuid>{D3E59B9F-445E-4484-9B2F-B3FE3ED82CE5}</ProjectGuid>
<IsPackable>false</IsPackable>
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\BaseDatabaseTest\BaseDatabaseTest.csproj" />
<ProjectReference Include="..\BaseEmailTest\BaseEmailTest.csproj" />
<ProjectReference Include="..\BaseMongoTest\BaseMongoTest.csproj" />
<ProjectReference Include="..\BasePlaywrightTest\BasePlaywrightTest.csproj" />
<ProjectReference Include="..\BaseSeleniumTest\BaseSeleniumTest.csproj" />
<ProjectReference Include="..\BaseTest\BaseTest.csproj" />
<ProjectReference Include="..\BaseWebServiceTest\BaseWebServiceTest.csproj" />
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>

<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>net471;netcoreapp3.1</TargetFrameworks>
<ProjectGuid>{D3E59B9F-445E-4484-9B2F-B3FE3ED82CE5}</ProjectGuid>
<IsPackable>false</IsPackable>
<SonarQubeTestProject>false</SonarQubeTestProject>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="3.1.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\BaseDatabaseTest\BaseDatabaseTest.csproj" />
<ProjectReference Include="..\BaseEmailTest\BaseEmailTest.csproj" />
<ProjectReference Include="..\BaseMongoTest\BaseMongoTest.csproj" />
<ProjectReference Include="..\BasePlaywrightTest\BasePlaywrightTest.csproj" />
<ProjectReference Include="..\BaseSeleniumTest\BaseSeleniumTest.csproj" />
<ProjectReference Include="..\BaseTest\BaseTest.csproj" />
<ProjectReference Include="..\BaseWebServiceTest\BaseWebServiceTest.csproj" />
<ProjectReference Include="..\Utilities\Utilities.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Framework/PlaywrightTests/PageDriverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ public void ReloadTest()
this.PageDriver.Click(AsyncPageLink);
Assert.IsTrue(this.PageDriver.IsEventualyVisible(asyncItemSelector));
this.PageDriver.Reload();
this.PageDriver.WaitForTimeout(1000);
this.PageDriver.WaitForTimeout(2000);
var body = System.Text.Encoding.Default.GetString(this.PageDriver.Reload().BodyAsync().Result);
Assert.IsTrue(this.PageDriver.IsEventualyGone(asyncItemSelector), $"Element failed to go away, got body: {Environment.NewLine}{body}");
}
Expand Down

0 comments on commit 07cd7a9

Please sign in to comment.