22 lines
528 B
JavaScript
22 lines
528 B
JavaScript
import { acceptance } from 'helpers/qunit-helpers';
|
|
acceptance('Discourse Payments', { loggedIn: true });
|
|
|
|
test('Choice Page Exists', () => {
|
|
visit('/users/eviltrout/payments');
|
|
|
|
andThen(() => {
|
|
ok(exists('h1'), 'Heading exists');
|
|
ok($.trim($('.payments').text()) == 'eviltrout', 'username is present on page');
|
|
});
|
|
});
|
|
|
|
test('Choice Page response happens', () => {
|
|
visit('/users/eviltrout/payments');
|
|
|
|
click('.choice-btn');
|
|
|
|
andThen(() => {
|
|
ok(exists('.choice-response'), 'Response happens');
|
|
});
|
|
});
|