@@ -58,24 +58,32 @@ test("phone has some things hidden and a mobile nav that can be toggled", async
5858 </BrowserRouter >,
5959 )
6060
61- // await element(screen->getByText("Docs"))->toBeVisible
62- // await element(screen->getByText("Playground"))->notToBeVisible
63- // await element(screen->getByText("Blog"))->notToBeVisible
64- // await element(screen->getByText("Community"))->notToBeVisible
61+ let leftContent = await screen -> getByTestId ("navbar-primary-left-content" )
6562
66- await element (screen -> getByTestId ("mobile-nav" ))-> notToBeVisible
63+ await element (leftContent -> getByText ("Docs" ))-> toBeVisible
64+ await element (leftContent -> getByText ("Playground" ))-> notToBeVisible
65+ await element (leftContent -> getByText ("Blog" ))-> notToBeVisible
66+ await element (leftContent -> getByText ("Community" ))-> notToBeVisible
67+
68+ let rightContent = await screen -> getByTestId ("navbar-primary-right-content" )
6769
68- // await element(screen->getByLabelText("Github"))->notToBeVisible
69- // await element(screen->getByLabelText("X (formerly Twitter)"))->notToBeVisible
70- // await element(screen->getByLabelText("Bluesky"))->notToBeVisible
71- // await element(screen->getByLabelText("Forum"))->notToBeVisible
70+ await element (rightContent -> getByLabelText ("Github" ))-> notToBeVisible
71+ await element (rightContent -> getByLabelText ("X (formerly Twitter)" ))-> notToBeVisible
72+ await element (rightContent -> getByLabelText ("Bluesky" ))-> notToBeVisible
73+ await element (rightContent -> getByLabelText ("Forum" ))-> notToBeVisible
74+
75+ await element (screen -> getByTestId ("mobile-nav" ))-> notToBeVisible
7276
7377 let button = await screen -> getByTestId ("toggle-mobile-overlay" )
7478
7579 await element (button )-> toBeVisible
7680
7781 await button -> click
7882
83+ let mobileNav = await screen -> getByTestId ("mobile-nav" )
84+
85+ await element (mobileNav )-> toBeVisible
86+
7987 // await element(screen->getByLabelText("Github"))->toBeVisible
8088 // await element(screen->getByLabelText("X (formerly Twitter)"))->toBeVisible
8189 // await element(screen->getByLabelText("Bluesky"))->toBeVisible
0 commit comments