Skip to content

Commit 97a18e3

Browse files
Paul LeclercqPaul Leclercq
authored andcommitted
add i18n e2e tests
1 parent d322572 commit 97a18e3

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

index.html

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,19 @@ <h3>
9292
</p>
9393

9494
<h3>Spanish</h3>
95-
<h4>Year max unit time : <timer interval="1000" language="es">{{fullUnit}}</timer></h4>
96-
<h4>Hour max unit time: <timer interval="1000" language="es">{{hourUnit}}</timer></h4>
97-
<h4>Second max unit time: <timer interval="1000" language="es">{{secondUnit}}</timer></h4>
95+
<div id="spanish">
96+
<h4>Year max unit time : <timer interval="1000" language="es">{{fullUnit}}</timer></h4>
97+
<h4>Hour max unit time: <timer interval="1000" language="es">{{hourUnit}}</timer></h4>
98+
<h4>Second max unit time: <timer interval="1000" language="es">{{secondUnit}}</timer></h4>
99+
</div>
100+
98101

99102
<h3>French</h3>
100-
<h4>Year max unit time : <timer interval="1000" language="fr">{{fullUnit}}</timer></h4>
101-
<h4>Hour max unit time: <timer interval="1000" language="fr">{{hourUnit}}</timer></h4>
102-
<h4>Second max unit time: <timer interval="1000" language="fr">{{secondUnit}}</timer></h4>
103+
<div id="french">
104+
<h4>Year max unit time : <timer interval="1000" language="fr">{{fullUnit}}</timer></h4>
105+
<h4>Hour max unit time: <timer interval="1000" language="fr">{{hourUnit}}</timer></h4>
106+
<h4>Second max unit time: <timer interval="1000" language="fr">{{secondUnit}}</timer></h4>
107+
</div>
103108
</div>
104109
</section>
105110
<section id="clock-timer-leading-zero">

test/e2e/scenarios.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,10 @@ describe('Angular Timer E2E Tests', function () {
185185
expect(timer3Val).toMatch(/00/);
186186
});
187187

188+
it('i18n Countdown Timer - Spanish and French', function () {
189+
sleep(1);
190+
expect(element('#clock-timer-i18n #spanish timer').html()).toMatch(/segundo/);
191+
expect(element('#clock-timer-i18n #french timer').html()).toMatch(/seconde/);
192+
});
193+
188194
});

0 commit comments

Comments
 (0)