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

Added settings file checking for zone count test #4

Closed
wants to merge 44 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
04027b9
Temporarily removed a test with huge running time on Azure (#1591)
ivan100sic Mar 16, 2020
02857d1
Some refactoring of FancyZones::IsInterestingWindow and added Unit Te…
yevhenii44-zz Mar 16, 2020
97e98d2
Remove failing Svg Preview Handler Unit Tests in CI (#1583)
udit3333 Mar 16, 2020
96a7e4f
disable unit tests in CI (#1592)
enricogior Mar 16, 2020
2cc6d2e
Fixed some compiler warnings (#1577)
ivan100sic Mar 16, 2020
1fc6798
Bump acorn from 5.7.3 to 5.7.4 in /src/settings-web (#1588)
dependabot[bot] Mar 16, 2020
f49727e
Invalid json test cases + strings validation (#1558)
SeraphimaZykova Mar 16, 2020
d8c1cb2
fix for #1595 (#1598)
crutkas Mar 16, 2020
72eb761
Fixed issue with autostarting as admin even if it should as user, fix…
PrzemyslawTusinski Mar 17, 2020
419fc15
WinAppDriver tests (#1371)
SeraphimaZykova Mar 17, 2020
98ed178
Double-qoute the paths when passing them as cmd args (#1604)
stefansjfw Mar 17, 2020
f0f044b
Add Window Walker to module list (#1613)
betsegaw Mar 17, 2020
ff0c021
Check if settings file is open before parsing JSON content from it (#…
vldmr11080 Mar 18, 2020
1c90107
Implement canceling edits in FZE, fix crashes related to canceling. (…
ivan100sic Mar 18, 2020
81710ff
update bundle with fixes (#1608)
crutkas Mar 18, 2020
57f763b
Check key existance before getting it from JSON (#1632)
vldmr11080 Mar 19, 2020
f507ef5
Update dev doc github workflow (#1618)
enricogior Mar 19, 2020
35054c1
Editor opening tests (#1633)
SeraphimaZykova Mar 19, 2020
8fcf0c0
open and close settings methods added
SeraphimaZykova Feb 27, 2020
1b48869
added FancyZones tests
SeraphimaZykova Mar 2, 2020
f29e9a6
toggles double click tests
SeraphimaZykova Mar 2, 2020
d9ee592
moved common function
SeraphimaZykova Mar 3, 2020
eff7116
keep settings file unchanged after tests
SeraphimaZykova Mar 3, 2020
dd006c2
toggles click tests
SeraphimaZykova Mar 3, 2020
a1f73e6
opacity highlight input tests
SeraphimaZykova Mar 3, 2020
fcfe91e
clear button test
SeraphimaZykova Mar 3, 2020
6519bf7
refactoring
SeraphimaZykova Mar 4, 2020
85ed1e4
test color sliders
SeraphimaZykova Mar 4, 2020
1f01e53
test color inputs
SeraphimaZykova Mar 4, 2020
3dbc4b8
refactoring
SeraphimaZykova Mar 5, 2020
25b4ba2
added test for excluded apps input
SeraphimaZykova Mar 5, 2020
2fd9716
exit without saving tests
SeraphimaZykova Mar 5, 2020
96dcdea
added test for hotkeys
SeraphimaZykova Mar 9, 2020
3d9f243
added test case for excluded apps
SeraphimaZykova Mar 9, 2020
7360e09
fixed elements search
SeraphimaZykova Mar 10, 2020
168b704
refactoring
SeraphimaZykova Mar 11, 2020
9e419ef
updated toggles tests
SeraphimaZykova Mar 11, 2020
294f3c5
fix settings reading
SeraphimaZykova Mar 13, 2020
31aaaf8
added test plan for editor
SeraphimaZykova Mar 13, 2020
58e1433
added editor tests file
SeraphimaZykova Mar 16, 2020
b74f9d8
open editor using button with different settings
SeraphimaZykova Mar 17, 2020
9b59207
Added test method for Fancy Zones count (#3)
yevhenii44-zz Mar 17, 2020
49762f3
changed test files
SeraphimaZykova Mar 18, 2020
ba375ee
Added file checking and methods to optimize elemets finding
yevhenii44 Mar 18, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added editor tests file
  • Loading branch information
SeraphimaZykova authored and yevhenii44 committed Mar 20, 2020
commit 58e1433ffa323ea0f62f54d3bcc337873dae3e73
53 changes: 53 additions & 0 deletions src/tests/win-app-driver/FancyZonesTests/EditorTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium.Appium.Windows;

namespace PowerToysTests
{
[TestClass]
public class FancyZonesEditorTests : PowerToysSession
{
[TestMethod]
public void OpenEditorBySettingsButton()
{
OpenFancyZonesSettings();

WindowsElement editorButton = session.FindElementByXPath("//Button[@Name=\"Edit zones\"]");
Assert.IsNotNull(editorButton);

editorButton.Click();
ShortWait();

WindowsElement editorWindow = session.FindElementByXPath("//Window[@Name=\"FancyZones Editor\"]");
Assert.IsNotNull(editorWindow);

//Close editor
session.FindElementByAccessibilityId("PART_Close").Click();
}

[ClassInitialize]
public static void ClassInitialize(TestContext context)
{
Setup(context);
OpenSettings();
}

[ClassCleanup]
public static void ClassCleanup()
{
CloseSettings();
TearDown();
}

[TestInitialize]
public void TestInitialize()
{

}

[TestCleanup]
public void TestCleanup()
{

}
}
}