File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6060 <LinkButton text="Sequencer" href="/sequencer" large>
6161 <Icon name="fad:waveform " />
6262 </LinkButton >
63- <LinkButton text="Doodle" href="/doodle" large>
63+ <LinkButton
64+ v-if =" ! isMobile ()"
65+ text="Doodle"
66+ href="/doodle"
67+ large
68+ >
6469 <Icon name="bx:paint " />
6570 </LinkButton >
6671 </SectionBlock >
6772 </PageCard >
6873</template >
6974
7075<script setup lang="ts">
76+ import isMobile from " is-mobile" ;
77+
7178const { mailtoLink } = useAppConfig ();
7279 </script >
7380
Original file line number Diff line number Diff line change @@ -92,7 +92,12 @@ test.describe("HomePage", () => {
9292 ) ;
9393 } ) ;
9494
95- test ( "can navigate to the doodle page" , async ( { page } ) => {
95+ test ( "can navigate to the doodle page" , async ( {
96+ page,
97+ isMobile,
98+ } ) => {
99+ test . skip ( isMobile , "Doodle link is not shown on mobile" ) ;
100+
96101 await page . goto ( "/" ) ;
97102
98103 const link = page . locator ( 'a:has-text("Doodle")' ) ;
@@ -107,4 +112,17 @@ test.describe("HomePage", () => {
107112 "Waiting for players" ,
108113 ) ;
109114 } ) ;
115+
116+ test ( "doodle link is hidden on mobile" , async ( {
117+ page,
118+ isMobile,
119+ } ) => {
120+ test . skip ( ! isMobile , "Only relevant on mobile" ) ;
121+
122+ await page . goto ( "/" ) ;
123+
124+ await expect (
125+ page . locator ( 'a:has-text("Doodle")' ) ,
126+ ) . not . toBeVisible ( ) ;
127+ } ) ;
110128} ) ;
You can’t perform that action at this time.
0 commit comments