Added breaking test for Cmd+S bug
This commit is contained in:
parent
9922c98a6e
commit
13dd564793
@ -6,6 +6,7 @@ import {expect} from 'chai';
|
||||
import {setupApplicationTest} from 'ember-mocha';
|
||||
import {setupMirage} from 'ember-cli-mirage/test-support';
|
||||
import {visit} from '../helpers/visit';
|
||||
import {keyDown} from 'ember-keyboard/test-support/test-helpers';
|
||||
|
||||
describe('Acceptance: Members', function () {
|
||||
let hooks = setupApplicationTest();
|
||||
@ -40,7 +41,7 @@ describe('Acceptance: Members', function () {
|
||||
return await authenticateSession();
|
||||
});
|
||||
|
||||
it('it renders, can be navigated, can edit member', async function () {
|
||||
it.only('it renders, can be navigated, can edit member', async function () {
|
||||
let member1 = this.server.create('member', {createdAt: moment.utc().subtract(1, 'day').format('YYYY-MM-DD HH:mm:ss')});
|
||||
this.server.create('member', {createdAt: moment.utc().subtract(2, 'day').format('YYYY-MM-DD HH:mm:ss')});
|
||||
|
||||
@ -92,6 +93,13 @@ describe('Acceptance: Members', function () {
|
||||
|
||||
// lands on correct page
|
||||
expect(currentURL(), 'currentURL').to.equal('/members');
|
||||
|
||||
await visit(`/members/${member1.id}`);
|
||||
await fillIn('[data-test-input="member-name"]', 'New Name 222');
|
||||
await keyDown('cmd+s');
|
||||
|
||||
await click('[data-test-link="members-back"]');
|
||||
expect(currentURL(), 'currentURL').to.equal('/members');
|
||||
});
|
||||
|
||||
it('can create a new member', async function () {
|
||||
|
Loading…
Reference in New Issue
Block a user