Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Olena hr lesson 25 #177

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9283d16
add explanation to last EnumHomework case
vldemyan-sdet Jul 21, 2024
bfbf99d
fix assert
vldemyan-sdet Jul 22, 2024
877e697
Homework_SpecFlow(2 failed,9 passed)
ChristinaSp Jul 26, 2024
832ea26
Merge branch 'OlenaHr_main' into OlenaHr_Lesson_16
OlenaHr Jul 26, 2024
f9ff6e0
Merge pull request #136 from OleksiiKhorunzhak/OlenaHr_Lesson_16
OlenaHr Jul 26, 2024
8b21deb
Homework done
ChristinaSp Jul 29, 2024
aaac77f
Merge branch 'OlenaHr_Lesson_16' of https://github.com/OleksiiKhorunz…
ChristinaSp Jul 29, 2024
d922eea
Merge pull request #142 from OleksiiKhorunzhak/OlenaHr_Lesson_16
OlenaHr Jul 29, 2024
1aa8cc2
WebTableTest
ChristinaSp Jul 30, 2024
9ce1558
Merge branch 'OlenaHr_main' into OlenaHr_lesson_14
OlenaHr Jul 30, 2024
b977e1f
Merge pull request #145 from OleksiiKhorunzhak/OlenaHr_lesson_14
OlenaHr Jul 30, 2024
bb9c93d
resolved conflict and .gitignore
ChristinaSp Jul 30, 2024
c4baf72
try to do HW
ChristinaSp Jul 31, 2024
55a5d73
Merge branch 'OlenaHr_main' into OlenaHr_Lesson_15
OlenaHr Jul 31, 2024
5a37825
Merge pull request #147 from OleksiiKhorunzhak/OlenaHr_Lesson_15
OlenaHr Jul 31, 2024
74de250
Homework 15 done
ChristinaSp Jul 31, 2024
2ac789e
Merge branch 'OlenaHr_Lesson_15' of https://github.com/OleksiiKhorunz…
ChristinaSp Jul 31, 2024
82796cb
Merge pull request #148 from OleksiiKhorunzhak/OlenaHr_Lesson_15
OlenaHr Jul 31, 2024
bcd8aff
resolved conflicts
ChristinaSp Aug 1, 2024
bc48a5f
Merge remote-tracking branch 'origin/OlenaHr_main' into OlenaHr_Lesso…
ChristinaSp Aug 1, 2024
cba1403
build playwrightSpecFlow proj, commit staged changes
ChristinaSp Aug 1, 2024
f9fc2b0
Try to do homework 17
ChristinaSp Aug 1, 2024
219bafa
try to do hw 17 ( commit changes)
ChristinaSp Aug 1, 2024
40bd1b8
remove extra projects
vldemyan-sdet Aug 9, 2024
5099839
API cleanup homework
ChristinaSp Aug 22, 2024
bf2e696
Merge pull request #170 from OleksiiKhorunzhak/OlenaHr_Lesson_17
OlenaHr Aug 22, 2024
a07ae71
homework 17 API cleanup correct?
ChristinaSp Aug 22, 2024
d93bd4d
Merge pull request #171 from OleksiiKhorunzhak/OlenaHr_Lesson_17
OlenaHr Aug 22, 2024
a9106c9
Homework 17
ChristinaSp Aug 23, 2024
f3f79df
Merge pull request #173 from OleksiiKhorunzhak/OlenaHr_Lesson_21
OlenaHr Aug 23, 2024
1850a46
Merge branch 'OlenaHr_main' into Lesson_25
ChristinaSp Aug 28, 2024
6d63337
homework 21 done
ChristinaSp Aug 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions AtataUITests/PageObjects/Controls/ReactAddPopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ public class ReactAddPopup<TOwner> : Control<TOwner>
[FindByPlaceholder("Last Name")]
public TextInput<TOwner> LastName { get; private set; }

[FindById("userEmail")]
public TextInput<TOwner> Email { get; set; }

[FindByPlaceholder("Age")]
public TextInput<TOwner> Age { get; private set; }

[FindByPlaceholder("Salary")]
public TextInput<TOwner> Salary { get; private set; }

[FindByPlaceholder("Department")]
public TextInput<TOwner> Department { get; private set; }

public Button<TOwner> Submit { get; private set; }
}
}
2 changes: 1 addition & 1 deletion AtataUITests/PageObjects/Controls/ReactRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AtataUITests.PageObjects.Controls
{
[ControlDefinition("div", ContainingClass = "rt-tr", ComponentTypeName = "row")]
[ControlDefinition("div", ContainingClass = "rt-tr-group", ComponentTypeName = "row")]
public class ReactRow<TOwner> : TableRow<TOwner>
where TOwner : PageObject<TOwner>
{
Expand Down
16 changes: 8 additions & 8 deletions AtataUITests/PageObjects/DemoQAWebTablePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,29 @@ public sealed class DemoQAWebTablePage : DemoQAPage<_>

public class WebTableRow : ReactRow<_>
{
[FindByXPath("//div[@role='gridcell'][1]")]
[FindByCss(".rt-td:nth-of-type(1)")]
public Text<_> FirstName { get; private set; }

[FindByXPath("//div[@role='gridcell'][2]")]
[FindByCss(".rt-td:nth-of-type(2)")]
public Text<_> LastName { get; private set; }

[FindByXPath("//div[@role='gridcell'][3]")]
[FindByCss(".rt-td:nth-of-type(3)")]
public Text<_> Age { get; private set; }

[FindByXPath("//div[@role='gridcell'][4]")]
[FindByCss(".rt-td:nth-of-type(4)")]
public Text<_> Email { get; private set; }

[FindByXPath("//div[@role='gridcell'][5]")]
[FindByCss(".rt-td:nth-of-type(5)")]
public Text<_> Salary { get; private set; }

[FindByXPath("//div[@role='gridcell'][6]")]
[FindByCss(".rt-td:nth-of-type(6)")]
public Text<_> Department { get; private set; }

[FindByXPath("//span[@title='Delete']")]
public Button<_> DeleteButton { get; private set; }
public Svg<_> DeleteButton { get; private set; }

[FindByXPath("//span[@title='Edit']")]
public Button<_> EditButton { get; private set; }
public Svg<_> EditButton { get; private set; }


}
Expand Down
61 changes: 61 additions & 0 deletions AtataUITests/Tests/TableTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,67 @@ public void TableColumnTest()
AddPopup.LastName.Css["border-color"].Should.Be("rgb(220, 53, 69)");
}

[Test]
public void CheckMandatoryField()
{
Go.To<DemoQAWebTablePage>().
WebTable.Should.BeVisible().
WebTable.Rows.Count.Should.BeGreater(1).
Add.Click().
AddPopup.FirstName.Set("Helen").
AddPopup.LastName.Set("Vick").
AddPopup.Email.Set("[email protected]").
AddPopup.Submit.Click().
AddPopup.Age.Css["border-color"].Should.Be("rgb(220, 53, 69)").
AddPopup.Salary.Css["border-color"].Should.Be("rgb(220, 53, 69)").
AddPopup.Department.Css["border-color"].Should.Be("rgb(220, 53, 69)");

}

[Test]

public void AddNewRow()
{
Go.To<DemoQAWebTablePage>().
WebTable.Should.BeVisible().
Add.Click().
AddPopup.FirstName.Set("Helen").
AddPopup.LastName.Set("Vick").
AddPopup.Email.Set("[email protected]").
AddPopup.Age.Set("29").
AddPopup.Salary.Set("17500").
AddPopup.Department.Set("Finance").
AddPopup.Submit.Click().
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Helen")].FirstName.Should.BeVisible().
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Helen")].LastName.Should.Be("Vick").
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Helen")].Age.Should.Be("29").
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Helen")].Email.Should.Be("[email protected]").
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Helen")].Salary.Should.Be("17500").
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Helen")].Department.Should.Be("Finance");

}

[Test]

public void VerifyRowAdited()
{
Go.To<DemoQAWebTablePage>().
WebTable.Should.BeVisible().
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Cierra")].EditButton.Click().
AddPopup.Salary.Set("36000").
AddPopup.Submit.Click().
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Cierra")].Salary.Should.Be("36000");
}

[Test]

public void VerifyRowDeleted()
{
Go.To<DemoQAWebTablePage>().
WebTable.Should.BeVisible().
WebTable.Rows[row => row.FirstName.Content.Value.Equals("Cierra")].DeleteButton.Click();

}
//TODO: automate test cases
//Check any mandatory field
//Add new row and verify row added
Expand Down
20 changes: 0 additions & 20 deletions AtataUITests2/AtataUITests2.csproj

This file was deleted.

3 changes: 0 additions & 3 deletions AtataUITests2/GlobalUsings.cs

This file was deleted.

10 changes: 0 additions & 10 deletions AtataUITests2/SampleTests.cs

This file was deleted.

20 changes: 0 additions & 20 deletions AtataUITests2/SetUpFixture.cs

This file was deleted.

14 changes: 0 additions & 14 deletions AtataUITests2/UITestFixture.cs

This file was deleted.

Binary file removed AtataUITests2/bin/Debug/net8.0/Atata.Bootstrap.dll
Binary file not shown.
Binary file removed AtataUITests2/bin/Debug/net8.0/Atata.Cli.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed AtataUITests2/bin/Debug/net8.0/Atata.dll
Binary file not shown.
Loading
Loading