Skip to content

Commit 208423e

Browse files
author
Igor Vlasiuk
committed
Merge branch 'angular_rework_development' into task-4934-refactor-toggle-slide-tests
2 parents 355d42d + 84d4439 commit 208423e

File tree

292 files changed

+2768
-2946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+2768
-2946
lines changed

config/checkstyle/checkstyle.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
<property name="id" value="FileLength_Error" />
289289
</module>
290290
<module name="LineLength">
291-
<property name="severity" value="error" />
291+
<property name="severity" value="warning" />
292292
<property name="max" value="180" />
293293
</module>
294294
<module name="RegexpHeader">
@@ -335,7 +335,7 @@
335335
</module>
336336
<module name="RegexpSingleline">
337337
<property name="severity" value="error" />
338-
<property name="format" value="(?&lt;!\.)(css|hasClass|hasAttribute|attr|find|finds)\(" />
338+
<property name="format" value="(?&lt;!\.)(css|hasClass|hasAttribute|attr|find|finds)\((?!@|\)|String)" />
339339
<property name="message" value="core() should be used with these methods" />
340340
<property name="id" value="CoreMethodsUnused_Error" />
341341
</module>

jdi-bdd-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<profile>
2727
<id>jdk16</id>
2828
<activation>
29-
<jdk>[16, 20]</jdk>
29+
<jdk>[16,)</jdk>
3030
</activation>
3131
<properties>
3232
<aspectj.args>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED</aspectj.args>

jdi-bdd-tests/src/main/java/io/github/com/pages/HtmlElementsPage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public class HtmlElementsPage extends WebPage {
8888
//endregion
8989

9090
//region Complex Elements
91-
// TODO add Enum
9291

9392
public static DropdownSelect dressCode;
9493
@UI("#dress-code") public static Dropdown dressCode2;

jdi-bdd-tests/src/test/resources/features/WebPage.feature

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ Feature: Checking Basic WebPage Actions
2828
When I scroll "10" px right
2929
And I scroll "5" px left
3030
Then the page scrolled by "5" px right
31-
# TODO
32-
#Scenario: zoom test
33-
# When I zoom in "2" times
34-
# Then the page is zoomed "2" times
3531

3632
Scenario: go back test
3733
When I go back

jdi-eyes-demo/src/test/java/com/jdi/testng/TestNGListener.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* Email: roman.iovlev.jdi@gmail.com; Skype: roman.iovlev
66
*/
77

8-
import com.jdiai.tools.Safe;
98
import org.testng.IInvokedMethod;
109
import org.testng.IInvokedMethodListener;
1110
import org.testng.ITestNGMethod;
@@ -22,7 +21,7 @@
2221
import static java.lang.System.currentTimeMillis;
2322

2423
public class TestNGListener implements IInvokedMethodListener {
25-
private Safe<Long> start = new Safe<>(0L);
24+
private long start = currentTimeMillis();
2625

2726
@Override
2827
public void beforeInvocation(IInvokedMethod m, ITestResult tr) {
@@ -31,7 +30,7 @@ public void beforeInvocation(IInvokedMethod m, ITestResult tr) {
3130
if (testMethod.getConstructorOrMethod().getMethod().isAnnotationPresent(Test.class)) {
3231
TEST_NAME.set( last(testMethod.getTestClass().getName().split("\\.")) +
3332
"." + testMethod.getMethodName());
34-
start.set(currentTimeMillis());
33+
start = currentTimeMillis();
3534
logger.step("== Test '%s' START ==", TEST_NAME.get());
3635
}
3736
}
@@ -43,7 +42,7 @@ public void afterInvocation(IInvokedMethod method, ITestResult tr) {
4342
String result = getTestResult(tr);
4443
logger.step("=== Test '%s' %s [%s] ===", TEST_NAME.get(), result,
4544
new SimpleDateFormat("mm:ss.SS")
46-
.format(new Date(currentTimeMillis() - start.get())));
45+
.format(new Date(currentTimeMillis() - start)));
4746
if ("FAILED".equals(result)) {
4847
try {
4948
screenshotStep("On Fail Screenshot");

jdi-light-angular-tests-with-mocks/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<profile>
2626
<id>jdk16</id>
2727
<activation>
28-
<jdk>[16, 20]</jdk>
28+
<jdk>[16,)</jdk>
2929
</activation>
3030
<properties>
3131
<aspectj.args>--add-opens java.base/java.lang=ALL-UNNAMED</aspectj.args>

jdi-light-angular-tests-with-mocks/src/test/java/io/github/epam/testng/TestNGListener.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.github.epam.testng;
22

3-
import com.jdiai.tools.Safe;
43
import org.testng.IInvokedMethod;
54
import org.testng.IInvokedMethodListener;
65
import org.testng.ITestResult;
@@ -17,7 +16,7 @@
1716

1817
public class TestNGListener implements IInvokedMethodListener {
1918

20-
private Safe<Long> start = new Safe<>(0L);
19+
private long start = currentTimeMillis();
2120

2221
@Override
2322
public void beforeInvocation(IInvokedMethod m, ITestResult tr) {
@@ -26,7 +25,7 @@ public void beforeInvocation(IInvokedMethod m, ITestResult tr) {
2625
if (testMethod.isAnnotationPresent(Test.class)) {
2726
TEST_NAME.set(
2827
tr.getTestClass().getRealClass().getSimpleName() + "." + testMethod.getName());
29-
start.set(currentTimeMillis());
28+
start = currentTimeMillis();
3029
logger.step("== Test '%s' START ==", TEST_NAME.get());
3130
}
3231
}
@@ -38,7 +37,7 @@ public void afterInvocation(IInvokedMethod method, ITestResult r) {
3837
String result = getTestResult(r);
3938
logger.step("=== Test '%s' %s [%s] ===", TEST_NAME.get(), result,
4039
new SimpleDateFormat("mm:ss.SS")
41-
.format(new Date(currentTimeMillis() - start.get())));
40+
.format(new Date(currentTimeMillis() - start)));
4241
if ("FAILED".equals(result)) {
4342
try {
4443
screenshotStep("On Fail Screenshot");

jdi-light-angular-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
<profile>
135135
<id>jdk16</id>
136136
<activation>
137-
<jdk>[16, 20]</jdk>
137+
<jdk>[16,)</jdk>
138138
</activation>
139139
<properties>
140140
<aspectj.args>--add-opens java.base/java.lang=ALL-UNNAMED</aspectj.args>

jdi-light-angular-tests/src/test/java/io/github/epam/testng/TestNGListener.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.github.epam.testng;
22

3-
import com.jdiai.tools.Safe;
43
import org.testng.IInvokedMethod;
54
import org.testng.IInvokedMethodListener;
65
import org.testng.ITestNGMethod;
@@ -17,7 +16,7 @@
1716
import static java.lang.System.currentTimeMillis;
1817

1918
public class TestNGListener implements IInvokedMethodListener {
20-
private Safe<Long> start = new Safe<>(0L);
19+
private long start = currentTimeMillis();
2120

2221
@Override
2322
public void beforeInvocation(IInvokedMethod m, ITestResult tr) {
@@ -26,7 +25,7 @@ public void beforeInvocation(IInvokedMethod m, ITestResult tr) {
2625
if (testMethod.getConstructorOrMethod().getMethod().isAnnotationPresent(Test.class)) {
2726
TEST_NAME.set( last(testMethod.getTestClass().getName().split("\\.")) +
2827
"." + testMethod.getMethodName());
29-
start.set(currentTimeMillis());
28+
start = currentTimeMillis();
3029
logger.step("== Test '%s' START ==", TEST_NAME.get());
3130
}
3231
}
@@ -38,7 +37,7 @@ public void afterInvocation(IInvokedMethod method, ITestResult tr) {
3837
String result = getTestResult(tr);
3938
logger.step("=== Test '%s' %s [%s] ===", TEST_NAME.get(), result,
4039
new SimpleDateFormat("mm:ss.SS")
41-
.format(new Date(currentTimeMillis() - start.get())));
40+
.format(new Date(currentTimeMillis() - start)));
4241
if ("FAILED".equals(result)) {
4342
try {
4443
screenshotStep("On Fail Screenshot");

jdi-light-angular/src/main/java/com/epam/jdi/light/angular/asserts/AutoCompleteAssert.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,100 +14,100 @@
1414

1515
public class AutoCompleteAssert extends UIAssert<AutoCompleteAssert, AutoComplete> implements ITextAssert<AutoCompleteAssert> {
1616

17-
@JDIAction("Assert that '{name}' is expanded")
17+
@JDIAction(value = "Assert that '{name}' is expanded", isAssert = true)
1818
public AutoCompleteAssert expanded() {
1919
jdiAssert(element().expanded(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
2020
return this;
2121
}
2222

23-
@JDIAction("Assert that '{name}' is collapsed")
23+
@JDIAction(value = "Assert that '{name}' is collapsed", isAssert = true)
2424
public AutoCompleteAssert collapsed() {
2525
jdiAssert(element().collapsed(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
2626
return this;
2727
}
2828

29-
@JDIAction("Assert that '{name}' text {0}")
29+
@JDIAction(value = "Assert that '{name}' text {0}", isAssert = true)
3030
@Override
3131
public AutoCompleteAssert text(String expected) {
3232
jdiAssert(element().getText(), Matchers.is(expected));
3333
return this;
3434
}
3535

36-
@JDIAction("Assert that '{name}' text {0}")
36+
@JDIAction(value = "Assert that '{name}' text {0}", isAssert = true)
3737
@Override
3838
public AutoCompleteAssert text(Matcher<String> condition) {
3939
jdiAssert(element().getValue(), condition);
4040
return this;
4141
}
4242

43-
@JDIAction("Assert that '{name}' has placeholder {0}")
43+
@JDIAction(value = "Assert that '{name}' has placeholder {0}", isAssert = true)
4444
public AutoCompleteAssert placeholder(String expected) {
4545
jdiAssert(element().placeholder(), Matchers.is(expected));
4646
return this;
4747
}
4848

49-
@JDIAction("Assert that '{name} is mandatory")
49+
@JDIAction(value = "Assert that '{name} is mandatory", isAssert = true)
5050
public AutoCompleteAssert mandatory() {
5151
jdiAssert(element().isMandatory(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
5252
return this;
5353
}
5454

55-
@JDIAction("Assert that '{name} is not mandatory")
55+
@JDIAction(value = "Assert that '{name} is not mandatory", isAssert = true)
5656
public AutoCompleteAssert notMandatory() {
5757
jdiAssert(element().isMandatory(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED");
5858
return this;
5959
}
6060

61-
@JDIAction("Assert that '{name}' has empty value")
61+
@JDIAction(value = "Assert that '{name}' has empty value", isAssert = true)
6262
@Override
6363
public AutoCompleteAssert empty() {
6464
jdiAssert(element().getValue(), Matchers.is(""));
6565
return this;
6666
}
6767

68-
@JDIAction("Assert that '{name} is invalid")
68+
@JDIAction(value = "Assert that '{name} is invalid", isAssert = true)
6969
public AutoCompleteAssert invalid() {
7070
jdiAssert(element().isInvalidated(), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
7171
return this;
7272
}
7373

74-
@JDIAction("Assert that '{name} is valid")
74+
@JDIAction(value = "Assert that '{name} is valid", isAssert = true)
7575
public AutoCompleteAssert valid() {
7676
jdiAssert(element().isInvalidated(), Matchers.is(false), "ERROR MESSAGE IS REQUIRED");
7777
return this;
7878
}
7979

80-
@JDIAction("Assert that '{name}' has display value")
80+
@JDIAction(value = "Assert that '{name}' has display value", isAssert = true)
8181
public AutoCompleteAssert displayValue(String expected) {
8282
jdiAssert(element().getValue(), Matchers.is(expected));
8383
return this;
8484
}
8585

86-
@JDIAction("Assert that '{name}' has options")
86+
@JDIAction(value = "Assert that '{name}' has options", isAssert = true)
8787
public AutoCompleteAssert options(List<String> options) {
8888
jdiAssert(element().options(), Matchers.is(options));
8989
return this;
9090
}
9191

92-
@JDIAction("Assert that '{name}' has groups")
92+
@JDIAction(value = "Assert that '{name}' has groups", isAssert = true)
9393
public AutoCompleteAssert groups(List<String> groups) {
9494
jdiAssert(element().groups(), Matchers.is(groups));
9595
return this;
9696
}
9797

98-
@JDIAction("Assert that '{name}' has groups and options")
98+
@JDIAction(value = "Assert that '{name}' has groups and options", isAssert = true)
9999
public AutoCompleteAssert groupsAndOptions(Map<String, List<String>> expectedGroupsAndOptions) {
100100
jdiAssert(element().groupsAndOptionsValues(), Matchers.is(expectedGroupsAndOptions));
101101
return this;
102102
}
103103

104-
@JDIAction("Assert that '{name}' has the {0} option being highlighted")
104+
@JDIAction(value = "Assert that '{name}' has the {0} option being highlighted", isAssert = true)
105105
public AutoCompleteAssert optionHighlighted(String option) {
106106
jdiAssert(element().isOptionHighlighted(option), Matchers.is(true), "ERROR MESSAGE IS REQUIRED");
107107
return this;
108108
}
109109

110-
@JDIAction("Assert that '{name}' has the {0} option being not highlighted")
110+
@JDIAction(value = "Assert that '{name}' has the {0} option being not highlighted", isAssert = true)
111111
public AutoCompleteAssert optionNotHighlighted(String option) {
112112
jdiAssert(element().isOptionHighlighted(option), Matchers.is(false), "ERROR MESSAGE IS REQUIRED");
113113
return this;

0 commit comments

Comments
 (0)