fixed failing specs
This commit is contained in:
parent
b367cc0ca2
commit
f9acd80569
|
@ -122,7 +122,7 @@ feature 'Project > Members > Share with Group', :js do
|
||||||
select2 group.id, from: '#link_group_id'
|
select2 group.id, from: '#link_group_id'
|
||||||
|
|
||||||
fill_in 'expires_at_groups', with: (Time.now + 4.5.days).strftime('%Y-%m-%d')
|
fill_in 'expires_at_groups', with: (Time.now + 4.5.days).strftime('%Y-%m-%d')
|
||||||
page.find('body').click
|
click_on 'share-with-group-tab'
|
||||||
find('.btn-create').click
|
find('.btn-create').click
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ describe('Api', () => {
|
||||||
describe('group', () => {
|
describe('group', () => {
|
||||||
it('fetches a group', (done) => {
|
it('fetches a group', (done) => {
|
||||||
const groupId = '123456';
|
const groupId = '123456';
|
||||||
const expectedUrl = `${dummyUrlRoot}/api/${dummyApiVersion}/groups/${groupId}.json`;
|
const expectedUrl = `${dummyUrlRoot}/api/${dummyApiVersion}/groups/${groupId}`;
|
||||||
mock.onGet(expectedUrl).reply(200, {
|
mock.onGet(expectedUrl).reply(200, {
|
||||||
name: 'test',
|
name: 'test',
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue