mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	 0ca6135f68
			
		
	
	0ca6135f68
	
	
	
		
			
			* make splash page view only block content * change invocation of component * address some of the pr comments * add test coverage * remove conditional because of issue with it always showing * solve for mfa errors * move altcontent outside
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| /**
 | |
|  * Copyright (c) HashiCorp, Inc.
 | |
|  * SPDX-License-Identifier: BUSL-1.1
 | |
|  */
 | |
| 
 | |
| import { module, test } from 'qunit';
 | |
| import { setupRenderingTest } from 'ember-qunit';
 | |
| import { render } from '@ember/test-helpers';
 | |
| import { hbs } from 'ember-cli-htmlbars';
 | |
| 
 | |
| module('Integration | Component | splash-page', function (hooks) {
 | |
|   setupRenderingTest(hooks);
 | |
| 
 | |
|   test('it should render', async function (assert) {
 | |
|     assert.expect(4);
 | |
|     await render(hbs`<SplashPage>
 | |
|     <:header>
 | |
|       Header here
 | |
|     </:header>
 | |
|     <:subHeader>
 | |
|       sub header
 | |
|     </:subHeader>
 | |
|     <:content>
 | |
|       content
 | |
|     </:content>
 | |
|     <:footer>
 | |
|       <div data-test-footer>footer</div>
 | |
|     </:footer>
 | |
| 
 | |
|     </SplashPage>
 | |
|       `);
 | |
|     assert.dom('[data-test-splash-page-header]').includesText('Header here', 'Header renders');
 | |
|     assert.dom('[data-test-splash-page-sub-header]').includesText('sub header', 'SubHeader renders');
 | |
|     assert.dom('[data-test-splash-page-content]').includesText('content', 'Content renders');
 | |
|     assert.dom('[data-test-footer]').includesText('footer', 'Footer renders');
 | |
|   });
 | |
| });
 |