File tree Expand file tree Collapse file tree 5 files changed +88
-0
lines changed
tests/integration/components/forms Expand file tree Collapse file tree 5 files changed +88
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { module , test } from 'qunit' ;
2
+ import { setupRenderingTest } from 'ember-qunit' ;
3
+ import { render } from '@ember/test-helpers' ;
4
+ import hbs from 'htmlbars-inline-precompile' ;
5
+
6
+ module ( 'Integration | Component | forms/login-form' , function ( hooks ) {
7
+ setupRenderingTest ( hooks ) ;
8
+
9
+ test ( 'it renders' , async function ( assert ) {
10
+ this . setProperties ( {
11
+ errorMessage : null ,
12
+ newUser : false
13
+ } ) ;
14
+ await render ( hbs `{{forms/login-form errorMessage=errorMessage newUser=newUser}}` ) ;
15
+
16
+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'Forgot your password ?' ) ) ;
17
+
18
+ } ) ;
19
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { module , test } from 'qunit' ;
2
+ import { setupRenderingTest } from 'ember-qunit' ;
3
+ import { render } from '@ember/test-helpers' ;
4
+ import hbs from 'htmlbars-inline-precompile' ;
5
+
6
+ module ( 'Integration | Component | forms/register-form' , function ( hooks ) {
7
+ setupRenderingTest ( hooks ) ;
8
+
9
+ test ( 'it renders' , async function ( assert ) {
10
+ this . setProperties ( {
11
+ errorMessage : null ,
12
+ showSignupPass : false ,
13
+ showConfirmPass : false
14
+ } ) ;
15
+ await render ( hbs `{{forms/register-form errorMessage=errorMessage showSignupPass=showSignupPass showConfirmPass=showConfirmPass}}` ) ;
16
+
17
+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'Already have an account? Login' ) ) ;
18
+
19
+ } ) ;
20
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { module , test } from 'qunit' ;
2
+ import { setupRenderingTest } from 'ember-qunit' ;
3
+ import { render } from '@ember/test-helpers' ;
4
+ import hbs from 'htmlbars-inline-precompile' ;
5
+
6
+ module ( 'Integration | Component | forms/reset-password-form' , function ( hooks ) {
7
+ setupRenderingTest ( hooks ) ;
8
+
9
+ test ( 'it renders' , async function ( assert ) {
10
+ this . setProperties ( {
11
+ errorMessage : null ,
12
+ successMessage : 'This is a success message'
13
+ } ) ;
14
+ await render ( hbs `{{forms/reset-password-form errorMessage=errorMessage successMessage=successMessage}}` ) ;
15
+
16
+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'This is a success message' ) ) ;
17
+
18
+ } ) ;
19
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { module , test } from 'qunit' ;
2
+ import { setupRenderingTest } from 'ember-qunit' ;
3
+ import { render } from '@ember/test-helpers' ;
4
+ import hbs from 'htmlbars-inline-precompile' ;
5
+
6
+ module ( 'Integration | Component | forms/user-payment-info-form' , function ( hooks ) {
7
+ setupRenderingTest ( hooks ) ;
8
+
9
+ test ( 'it renders' , async function ( assert ) {
10
+ await render ( hbs `{{forms/user-payment-info-form}}` ) ;
11
+
12
+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'Payment Information' ) ) ;
13
+
14
+ } ) ;
15
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import { module , test } from 'qunit' ;
2
+ import { setupRenderingTest } from 'ember-qunit' ;
3
+ import { render } from '@ember/test-helpers' ;
4
+ import hbs from 'htmlbars-inline-precompile' ;
5
+
6
+ module ( 'Integration | Component | forms/user-profile-form' , function ( hooks ) {
7
+ setupRenderingTest ( hooks ) ;
8
+
9
+ test ( 'it renders' , async function ( assert ) {
10
+ await render ( hbs `{{forms/user-profile-form isLoading=isLoading}}` ) ;
11
+
12
+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'Update Changes' ) ) ;
13
+
14
+ } ) ;
15
+ } ) ;
You can’t perform that action at this time.
0 commit comments