Commit f2afe538 authored by tom's avatar tom

fix tests

parent 5df8f5a1
...@@ -88,8 +88,8 @@ test.describe('cookie set to false', () => { ...@@ -88,8 +88,8 @@ test.describe('cookie set to false', () => {
{ hooksConfig }, { hooksConfig },
); );
const txLink = component.getByText(/transactions/i); const networkMenu = component.locator('button[aria-label="Network menu"]');
expect(await txLink.isVisible()).toBe(true); expect(await networkMenu.isVisible()).toBe(true);
}); });
}); });
...@@ -101,7 +101,7 @@ test.describe('cookie set to true', () => { ...@@ -101,7 +101,7 @@ test.describe('cookie set to true', () => {
}, },
}); });
extendedTest('navbar is collapsed +@desktop-xl', async({ mount }) => { extendedTest('navbar is collapsed', async({ mount }) => {
const component = await mount( const component = await mount(
<TestApp> <TestApp>
<Flex w="100%" minH="100vh" alignItems="stretch"> <Flex w="100%" minH="100vh" alignItems="stretch">
...@@ -112,7 +112,7 @@ test.describe('cookie set to true', () => { ...@@ -112,7 +112,7 @@ test.describe('cookie set to true', () => {
{ hooksConfig }, { hooksConfig },
); );
const txLink = component.getByText(/transactions/i); const networkMenu = component.locator('button[aria-label="Network menu"]');
expect(await txLink.isVisible()).toBe(false); expect(await networkMenu.isVisible()).toBe(false);
}); });
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment