Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Raczek committed Dec 2, 2024
1 parent df114ab commit c047200
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Ocaramba.Tests.Angular/Tests/AngularTestNunit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void AngularPageNavigationTest()
.ClickProtractorApi()
.ClickElementToBeSelected();

Assert.True(protractorApiPage.IsElementToBeSelectedHeaderDisplayed(), "Header is not displayed.");
Assert.That(protractorApiPage.IsElementToBeSelectedHeaderDisplayed(), Is.True, "Header is not displayed.");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public void TablesTest()
.GoToTablesPage();
var table = tableElements.GetTableElements();

Assert.AreEqual("Smith", table[0][0]);
Assert.AreEqual("edit delete", table[3][5].Trim().Replace("\r", String.Empty).Replace(" ", String.Empty).Replace("\n", String.Empty));
Assert.That(table[0][0], Is.EqualTo("Smith"));
Assert.That(table[3][5].Trim().Replace("\r", String.Empty).Replace(" ", String.Empty).Replace("\n", String.Empty), Is.EqualTo("edit delete"));
}

[Test]
Expand All @@ -64,7 +64,7 @@ public void DynamicallyLoadedPageElementsTest()
.ClickOnExample2();

page.ClickStart();
Assert.AreEqual(page.Text, "Hello World!");
Assert.That(page.Text, Is.EqualTo("Hello World!"));
}
}
}

0 comments on commit c047200

Please sign in to comment.