2020 * at runtime from the About dialog for additional information.
2121 *****************************************************************************/
2222
23- import { createDomainObjectWithDefaults } from '../../../../appActions.js' ;
23+ import { createDomainObjectWithDefaults , setRealTimeMode } from '../../../../appActions.js' ;
2424import { MISSION_TIME } from '../../../../constants.js' ;
2525import { expect , test } from '../../../../pluginFixtures.js' ;
2626
@@ -65,6 +65,7 @@ test.describe('Timer with target date @clock', () => {
6565 await page . clock . install ( { time : MISSION_TIME } ) ;
6666 await page . clock . resume ( ) ;
6767 await page . goto ( './' , { waitUntil : 'domcontentloaded' } ) ;
68+ await setRealTimeMode ( page ) ;
6869 await createDomainObjectWithDefaults ( page , { type : 'timer' } ) ;
6970 } ) ;
7071
@@ -78,6 +79,8 @@ test.describe('Timer with target date @clock', () => {
7879 await page . locator ( 'input[name="min"]' ) . fill ( '30' ) ;
7980 await page . locator ( 'input[name="sec"]' ) . fill ( '00' ) ;
8081 await page . getByLabel ( 'Save' ) . click ( ) ;
82+ await page . locator ( '.c-timer__direction' ) . hover ( ) ;
83+ await page . getByLabel ( 'Start' , { exact : true } ) . click ( ) ;
8184
8285 // Get the current timer seconds value
8386 const timerSecValue = ( await page . locator ( '.c-timer__value' ) . innerText ( ) ) . split ( ':' ) . at ( - 1 ) ;
@@ -101,6 +104,8 @@ test.describe('Timer with target date @clock', () => {
101104 await page . locator ( 'input[name="min"]' ) . fill ( '30' ) ;
102105 await page . locator ( 'input[name="sec"]' ) . fill ( '00' ) ;
103106 await page . getByLabel ( 'Save' ) . click ( ) ;
107+ await page . locator ( '.c-timer__direction' ) . hover ( ) ;
108+ await page . getByLabel ( 'Start' , { exact : true } ) . click ( ) ;
104109
105110 // Get the current timer seconds value
106111 const timerSecValue = ( await page . locator ( '.c-timer__value' ) . innerText ( ) ) . split ( ':' ) . at ( - 1 ) ;
0 commit comments