mirror of
				https://github.com/gristlabs/grist-core.git
				synced 2025-06-13 20:53:59 +00:00 
			
		
		
		
	(core) Dismiss tips in HomeIntro deployment tests
Summary: Fixes deployment test failures that were caused by a test user being deleted and recreated, which consequently reset their preferences and made popups and tips always appear. Test Plan: N/A Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D3768
This commit is contained in:
		
							parent
							
								
									45c7602f49
								
							
						
					
					
						commit
						ff901c06d2
					
				| @ -53,6 +53,7 @@ describe('HomeIntro', function() { | |||||||
| 
 | 
 | ||||||
|       // Open doc-menu
 |       // Open doc-menu
 | ||||||
|       await session.loadDocMenu('/', 'skipWelcomeQuestions'); |       await session.loadDocMenu('/', 'skipWelcomeQuestions'); | ||||||
|  |       await gu.dismissCardPopups(); | ||||||
| 
 | 
 | ||||||
|       // Check message specific to logged-in user
 |       // Check message specific to logged-in user
 | ||||||
|       assert.match(await driver.find('.test-welcome-title').getText(), new RegExp(`Welcome.* ${session.name}`)); |       assert.match(await driver.find('.test-welcome-title').getText(), new RegExp(`Welcome.* ${session.name}`)); | ||||||
| @ -322,6 +323,8 @@ async function checkDocAndRestore( | |||||||
|   await gu.waitForDocMenuToLoad(); |   await gu.waitForDocMenuToLoad(); | ||||||
|   // If not logged in, we create docs "unsaved" and don't see them in doc-menu.
 |   // If not logged in, we create docs "unsaved" and don't see them in doc-menu.
 | ||||||
|   if (isLoggedIn) { |   if (isLoggedIn) { | ||||||
|  |     // Freshly-created users will see a tip for the Add New button; dismiss it.
 | ||||||
|  |     await gu.dismissBehavioralPrompts(); | ||||||
|     // Delete the first doc we find. We expect exactly one to exist.
 |     // Delete the first doc we find. We expect exactly one to exist.
 | ||||||
|     await deleteFirstDoc(); |     await deleteFirstDoc(); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user