@@ -20,8 +20,11 @@ test('menu after experimental features', async ({ page }) => {
2020 await page . goto ( 'http://localhost:4173/' ) ;
2121
2222 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
23+ await page . waitForTimeout ( 300 ) ;
2324 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( 'experimental' ) ;
25+ await page . waitForTimeout ( 300 ) ;
2426 await page . getByRole ( 'option' , { name : 'Toggle experimental features' } ) . click ( ) ;
27+ await page . waitForTimeout ( 300 ) ;
2528 await page . locator ( '#bits-c7' ) . press ( 'Escape' ) ;
2629
2730 await expect ( page . locator ( 'a' ) . getByText ( 'Home' , { exact : true } ) ) . toBeVisible ( ) ;
@@ -34,8 +37,11 @@ test('test all gmaes page', async ({ page }) => {
3437 await page . goto ( 'http://localhost:4173/' ) ;
3538
3639 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
40+ await page . waitForTimeout ( 300 ) ;
3741 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( 'experimental' ) ;
42+ await page . waitForTimeout ( 300 ) ;
3843 await page . getByRole ( 'option' , { name : 'Toggle experimental features' } ) . click ( ) ;
44+ await page . waitForTimeout ( 300 ) ;
3945 await page . locator ( '#bits-c7' ) . press ( 'Escape' ) ;
4046
4147 // Testing all gmaes
@@ -54,11 +60,17 @@ test('test history', async ({ page }) => {
5460 await page . goto ( 'http://localhost:4173/' ) ;
5561
5662 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
63+ await page . waitForTimeout ( 300 ) ;
5764 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( 'experimental' ) ;
65+ await page . waitForTimeout ( 300 ) ;
5866 await page . getByRole ( 'option' , { name : 'Toggle experimental features' } ) . click ( ) ;
67+ await page . waitForTimeout ( 300 ) ;
5968 await page . locator ( '#bits-c7' ) . press ( 'Escape' ) ;
69+ await page . waitForTimeout ( 300 ) ;
6070 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
71+ await page . waitForTimeout ( 300 ) ;
6172 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( '2048' ) ;
73+ await page . waitForTimeout ( 300 ) ;
6274 await page . getByRole ( 'option' , { name : '2048' } ) . click ( ) ;
6375
6476 await page . locator ( 'a' ) . getByText ( 'Home' , { exact : true } ) . click ( ) ;
@@ -77,13 +89,20 @@ test('test saving', async ({ page }) => {
7789 await page . goto ( 'http://localhost:4173/' ) ;
7890
7991 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
92+ await page . waitForTimeout ( 300 ) ;
8093 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( 'experimental' ) ;
94+ await page . waitForTimeout ( 300 ) ;
8195 await page . getByRole ( 'option' , { name : 'Toggle experimental features' } ) . click ( ) ;
96+ await page . waitForTimeout ( 300 ) ;
8297 await page . locator ( '#bits-c7' ) . press ( 'Escape' ) ;
98+ await page . waitForTimeout ( 300 ) ;
8399 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
100+ await page . waitForTimeout ( 300 ) ;
84101 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( '2048' ) ;
102+ await page . waitForTimeout ( 300 ) ;
85103 await page . getByRole ( 'option' , { name : '2048' } ) . click ( ) ;
86104
105+ await page . waitForTimeout ( 300 ) ;
87106 await page . getByRole ( 'button' , { name : 'Save' } ) . click ( ) ;
88107
89108 await page . locator ( 'a' ) . getByText ( 'Home' , { exact : true } ) . click ( ) ;
@@ -101,11 +120,17 @@ test('test clear history', async ({ page }) => {
101120 await page . goto ( 'http://localhost:4173/' ) ;
102121
103122 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
123+ await page . waitForTimeout ( 300 ) ;
104124 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( 'experimental' ) ;
125+ await page . waitForTimeout ( 300 ) ;
105126 await page . getByRole ( 'option' , { name : 'Toggle experimental features' } ) . click ( ) ;
127+ await page . waitForTimeout ( 300 ) ;
106128 await page . locator ( '#bits-c7' ) . press ( 'Escape' ) ;
129+ await page . waitForTimeout ( 300 ) ;
107130 await page . getByRole ( 'button' , { name : 'Search ⌘ K' } ) . click ( ) ;
131+ await page . waitForTimeout ( 300 ) ;
108132 await page . getByPlaceholder ( 'Type a command or search...' ) . fill ( '2048' ) ;
133+ await page . waitForTimeout ( 300 ) ;
109134 await page . getByRole ( 'option' , { name : '2048' } ) . click ( ) ;
110135
111136 await page . locator ( 'a' ) . getByText ( 'Home' , { exact : true } ) . click ( ) ;
0 commit comments