Skip to content

Commit d8b0727

Browse files
mukeshkphp-coder
authored andcommitted
test(togglz/feature): test togglz is working
Fix #92
1 parent bc12ccf commit d8b0727

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

src/main/java/ru/mystamps/web/support/togglz/Features.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ public enum Features implements Feature {
5555

5656
@Label("/site/index: search by catalog in collection")
5757
@EnabledByDefault
58-
SEARCH_IN_COLLECTION;
58+
SEARCH_IN_COLLECTION,
59+
60+
@Label("/site/index: feature to check that Togglz works")
61+
ALWAYS_DISABLED;
5962

6063
public boolean isActive() {
6164
return FeatureContext.getFeatureManager().isActive(this);

src/main/webapp/WEB-INF/views/site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ <h4 class="panel-title" th:text="#{t_search_by_catalog}">Search by catalog</h4>
197197
<div class="row">
198198
<footer class="col-sm-12 text-right">
199199
<i class="glyphicon glyphicon-envelope"></i>
200-
<a href="mailto:slava.semushin@gmail.com" title="Write e-mail" th:href="|mailto:#{t_site_author_email}|" th:title="#{t_write_email}" th:text="#{t_site_author_name}">Slava Semushin</a>, 2009-2019
200+
<a href="mailto:slava.semushin@gmail.com" title="Write e-mail" th:href="|mailto:#{t_site_author_email}|" th:title="#{t_write_email}" th:text="#{t_site_author_name}">Slava Semushin</a>, 2009-2019<span id="always-disabled-element" togglz:active="ALWAYS_DISABLED"> :-/</span>
201201
</footer>
202202
</div>
203203
</div>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*** Settings ***
2+
Documentation Verify that togglz works
3+
Library SeleniumLibrary
4+
Suite Setup Before Test Suite
5+
Suite Teardown Close Browser
6+
Force Tags togglz misc
7+
8+
*** Test Cases ***
9+
Extra characters should never be shown if Togglz works
10+
Page Should Not Contain Element id=always-disabled-element
11+
12+
*** Keywords ***
13+
Before Test Suite
14+
Open Browser ${SITE_URL} ${BROWSER}
15+
Register Keyword To Run On Failure Log Source

0 commit comments

Comments
 (0)