Fix examples of how to run e2e tests with options (#6303)
This commit is contained in:
		
							
								
								
									
										13
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								Makefile
									
									
									
									
									
								
							@ -24,11 +24,6 @@ install: node_modules/.package-lock.json $(CARGO) $(WASM_PACK) ## Install depend
 | 
			
		||||
 | 
			
		||||
node_modules/.package-lock.json: package.json package-lock.json
 | 
			
		||||
	npm install
 | 
			
		||||
ifdef POWERSHELL
 | 
			
		||||
	@ type nul > $@
 | 
			
		||||
else
 | 
			
		||||
	@ touch $@
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
$(CARGO):
 | 
			
		||||
ifdef WINDOWS
 | 
			
		||||
@ -129,17 +124,17 @@ test-e2e: test-e2e-$(TARGET)
 | 
			
		||||
test-e2e-web: install build-web ## Run the web e2e tests
 | 
			
		||||
	@ curl -fs localhost:3000 >/dev/null || ( echo "Error: localhost:3000 not available, 'make run-web' first" && exit 1 )
 | 
			
		||||
ifdef E2E_GREP
 | 
			
		||||
	npm run chrome:test --headed --grep="$(E2E_GREP)" --max-failures=$(E2E_FAILURES)
 | 
			
		||||
	npm run chrome:test -- --headed --grep="$(E2E_GREP)" --max-failures=$(E2E_FAILURES)
 | 
			
		||||
else
 | 
			
		||||
	npm run chrome:test --headed --workers='100%'
 | 
			
		||||
	npm run chrome:test -- --headed --workers='100%'
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
.PHONY: test-e2e-desktop
 | 
			
		||||
test-e2e-desktop: install build-desktop ## Run the desktop e2e tests
 | 
			
		||||
ifdef E2E_GREP
 | 
			
		||||
	npm run test:playwright:electron --grep="$(E2E_GREP)" --max-failures=$(E2E_FAILURES)
 | 
			
		||||
	npm run test:playwright:electron -- --grep="$(E2E_GREP)" --max-failures=$(E2E_FAILURES)
 | 
			
		||||
else
 | 
			
		||||
	npm run test:playwright:electron --workers='100%'
 | 
			
		||||
	npm run test:playwright:electron -- --workers='100%'
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
###############################################################################
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user