File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
tests/integration/components/modals Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ import { module , test } from 'qunit' ;
2+ import { setupIntegrationTest } from 'open-event-frontend/tests/helpers/setup-integration-test' ;
3+ import hbs from 'htmlbars-inline-precompile' ;
4+ import { render } from '@ember/test-helpers' ;
5+
6+ module ( 'Integration | Component | modals/paytm otp modal' , function ( hooks ) {
7+ setupIntegrationTest ( hooks ) ;
8+
9+ test ( 'it renders' , async function ( assert ) {
10+ this . set ( 'isOpen' , false ) ;
11+ this . set ( 'currency' , 'USD' ) ;
12+ this . set ( 'amount' , 100 ) ;
13+ await render ( hbs `{{modals/paytm-otp isOpen=isOpen currency=currency amount=amount}}` ) ;
14+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'Enter OTP sent to mobile number' ) ) ;
15+ } ) ;
16+ } ) ;
Original file line number Diff line number Diff line change 1+ import { module , test } from 'qunit' ;
2+ import { setupIntegrationTest } from 'open-event-frontend/tests/helpers/setup-integration-test' ;
3+ import hbs from 'htmlbars-inline-precompile' ;
4+ import { render } from '@ember/test-helpers' ;
5+
6+ module ( 'Integration | Component | modals/paytm payment options modal' , function ( hooks ) {
7+ setupIntegrationTest ( hooks ) ;
8+
9+ test ( 'it renders' , async function ( assert ) {
10+ this . set ( 'isOpen' , false ) ;
11+ this . set ( 'currency' , 'USD' ) ;
12+ this . set ( 'amount' , 100 ) ;
13+ await render ( hbs `{{modals/paytm-payment-options isOpen=isOpen currency=currency amount=amount}}` ) ;
14+ assert . ok ( this . element . innerHTML . trim ( ) . includes ( 'Select an option to pay' ) ) ;
15+ } ) ;
16+ } ) ;
You can’t perform that action at this time.
0 commit comments