Skip to content

Commit 121bc6c

Browse files
committed
Tests corrected
1 parent 786316e commit 121bc6c

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/Server/Coderr.Server.Web.Tests/Pages/HomePage.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public HomePage(IWebDriver webDriver) : base(webDriver, "", "Overview")
1111
}
1212

1313
[FindsBy(How = How.XPath, Using = "//a/span[.=' MyTestApp ']")]
14-
public IWebElement FirstApplication { get; set; }
14+
public IWebElement NavigationMyTestApp { get; set; }
1515

1616
[FindsBy(How = How.Id, Using = "pageTitle")]
1717
public IWebElement PageTitle { get; set; }
@@ -41,9 +41,9 @@ public void VerifyIsCurrentPage()
4141
Wait.Until(ExpectedConditions.TitleIs("Overview"));
4242
}
4343

44-
public void VerifyNavigatedToFirstApplication()
44+
public void VerifyNavigatedToMyTestApp()
4545
{
46-
Wait.Until(ExpectedConditions.TextToBePresentInElement(PageTitle, Title));
46+
Wait.Until(ExpectedConditions.TextToBePresentInElement(PageTitle, "MyTestApp"));
4747
}
4848
}
4949
}

src/Server/Coderr.Server.Web.Tests/Tests/HomePageTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace codeRR.Server.Web.Tests.Tests
77
public class HomePageTests : LoggedInTest
88
{
99
[Fact]
10-
public void Should_be_able_to_navigate_to_application()
10+
public void Should_be_able_to_navigate_to_myfirstapp_application()
1111
{
1212
UITest(() =>
1313
{
@@ -16,9 +16,9 @@ public void Should_be_able_to_navigate_to_application()
1616
var sut = new HomePage(WebDriver);
1717
sut.NavigateToPage();
1818

19-
sut.FirstApplication.Click();
19+
sut.NavigationMyTestApp.Click();
2020

21-
sut.VerifyNavigatedToFirstApplication();
21+
sut.VerifyNavigatedToMyTestApp();
2222

2323
Logout();
2424
});

src/Server/Coderr.Server.Web.Tests/Tests/IncidentsPageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace codeRR.Server.Web.Tests.Tests
99
[Trait("Category", "Integration")]
1010
public class IncidentsPageTests : LoggedInTest
1111
{
12-
[Fact(Skip = "Needs more work")]
12+
[Fact]
1313
public void Should_be_able_to_report_error_with_client_lib_and_error_shows_up_in_incidents()
1414
{
1515
UITest(() =>

src/Server/Coderr.Server.Web.Tests/WebTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Configuration;
43
using System.IO;
54
using System.Net;
65
using System.Web.Configuration;

0 commit comments

Comments
 (0)