| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -48,7 +48,7 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import path from 'path'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { test, expect } from '@playwright/test'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { importUser } from './testUtils'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import { importUserAndCloseOnboarding } from './testUtils'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					/** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 * Note: by default, this test uses the test image API server. | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -65,7 +65,7 @@ test('Record item given from image-share', async ({ page }) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  // Combine title prefix with the random string
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  const finalTitle = `Gift ${randomString} from image-share`; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await importUser(page, '00'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await importUserAndCloseOnboarding(page, '00'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  // Record something given
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await page.goto('./test'); | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -84,10 +84,8 @@ test('Record item given from image-share', async ({ page }) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await page.getByRole('spinbutton').fill('2'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await page.getByRole('button', { name: 'Sign & Send' }).click(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  // we end up on a page with the onboarding info
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await page.getByTestId('closeOnboardingAndFinish').click(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await expect(page.getByText('That gift was recorded.')).toBeVisible(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  // const recorded = await page.getByText('That gift was recorded.');
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await expect(await page.getByText('That gift was recorded.')).toBeVisible(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  // Refresh home view and check gift
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |