@@ -15,10 +15,11 @@ describe('Freebuff: Ads Behavior', () => {
1515 } )
1616
1717 test (
18- 'ads:enable command is not available' ,
18+ 'ads commands are not available' ,
1919 async ( ) => {
2020 const binary = requireFreebuffBinary ( )
21- session = await FreebuffSession . start ( binary , { waitSeconds : 5 } )
21+ session = await FreebuffSession . start ( binary )
22+ await session . waitForReady ( )
2223
2324 // Type "/ads" to check for ads commands in autocomplete
2425 await session . send ( '/ads' , { noEnter : true } )
@@ -32,46 +33,17 @@ describe('Freebuff: Ads Behavior', () => {
3233 )
3334
3435 test (
35- 'ads:disable command is not available ' ,
36+ 'startup screen does not show ad-related UI ' ,
3637 async ( ) => {
3738 const binary = requireFreebuffBinary ( )
38- session = await FreebuffSession . start ( binary , { waitSeconds : 5 } )
39+ session = await FreebuffSession . start ( binary )
40+ await session . waitForReady ( )
3941
40- // Try to send the /ads:disable command
41- await session . send ( '/ads:disable' )
42- const output = await session . capture ( 3 )
43-
44- // The command should not be recognized
45- // It should NOT show "Ads disabled" confirmation
46- expect ( output ) . not . toMatch ( / a d s d i s a b l e d / i)
47- } ,
48- TEST_TIMEOUT ,
49- )
50-
51- test (
52- 'does not show credits earned from ads' ,
53- async ( ) => {
54- const binary = requireFreebuffBinary ( )
55- session = await FreebuffSession . start ( binary , { waitSeconds : 5 } )
5642 const output = await session . capture ( )
5743
58- // In Freebuff, ads don't show "+X credits" because credits don't apply
59- // Check the startup screen doesn't mention ad credits
44+ // Ads are always enabled in Freebuff — no credits or toggle UI
6045 expect ( output ) . not . toMatch ( / \+ \d + c r e d i t s / )
61- } ,
62- TEST_TIMEOUT ,
63- )
64-
65- test (
66- 'does not show "Hide ads" option' ,
67- async ( ) => {
68- const binary = requireFreebuffBinary ( )
69- session = await FreebuffSession . start ( binary , { waitSeconds : 5 } )
70- const output = await session . capture ( )
71-
72- // In Freebuff, the "Hide ads" link is not shown because ads are mandatory
7346 expect ( output ) . not . toContain ( 'Hide ads' )
74- // Also should not mention /ads:enable as a way to re-enable
7547 expect ( output ) . not . toContain ( '/ads:enable' )
7648 } ,
7749 TEST_TIMEOUT ,
0 commit comments