Work on login form stuff

This commit is contained in:
Melody Becker 2024-10-28 08:36:11 +01:00
parent 53e6418e89
commit 952949b609
11 changed files with 127 additions and 22 deletions

View file

@ -0,0 +1,26 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'frontend-reactive/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | auth/login', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<Auth::Login />`);
assert.dom().hasText('');
// Template block usage:
await render(hbs`
<Auth::Login>
template block text
</Auth::Login>
`);
assert.dom().hasText('template block text');
});
});

View file

@ -10,15 +10,15 @@ module('Integration | Component | auth/registration-form', function (hooks) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<Auth::RegistrationForm />`);
await render(hbs`<Auth::PostRegistrationForm />`);
assert.dom().hasText('');
// Template block usage:
await render(hbs`
<Auth::RegistrationForm>
<Auth::PostRegistrationForm>
template block text
</Auth::RegistrationForm>
</Auth::PostRegistrationForm>
`);
assert.dom().hasText('template block text');

View file

@ -0,0 +1,26 @@
import { module, test } from 'qunit';
import { setupRenderingTest } from 'frontend-reactive/tests/helpers';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | auth/register-start', function (hooks) {
setupRenderingTest(hooks);
test('it renders', async function (assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions with this.set('myAction', function(val) { ... });
await render(hbs`<Auth::RegisterStart />`);
assert.dom().hasText('');
// Template block usage:
await render(hbs`
<Auth::RegisterStart>
template block text
</Auth::RegisterStart>
`);
assert.dom().hasText('template block text');
});
});