-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1643 from MirzaHanan/feature-add-user-stories
Implementation: Adding User Stories to Features
- Loading branch information
Showing
13 changed files
with
619 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { User, HostName, Workspaces, Repositories } from '../support/objects/objects'; | ||
|
||
|
||
describe('Create Repositories for Workspace', () => { | ||
it('passes', () => { | ||
cy.upsertlogin(User).then(value => { | ||
for(let i = 0; i <= 1; i++) { | ||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/repositories`, | ||
headers: { 'x-jwt': `${value}` }, | ||
body: Repositories[i] | ||
}).its('body').then(body => { | ||
expect(body).to.have.property('name').and.equal(Repositories[i].name.trim()); | ||
expect(body).to.have.property('url').and.equal(Repositories[i].url.trim()); | ||
}); | ||
} | ||
}) | ||
}) | ||
}) | ||
|
||
|
||
describe('Check Repositories Values', () => { | ||
it('passes', () => { | ||
cy.upsertlogin(User).then(value => { | ||
cy.request({ | ||
method: 'GET', | ||
url: `${HostName}/workspaces/repositories/` + Repositories[0].workspace_uuid, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: {} | ||
}).then((resp) => { | ||
expect(resp.status).to.eq(200) | ||
expect(resp.body[0]).to.have.property('name', Repositories[0].name.trim()) | ||
expect(resp.body[0]).to.have.property('url', Repositories[0].url.trim()) | ||
expect(resp.body[1]).to.have.property('name', Repositories[1].name.trim()) | ||
expect(resp.body[1]).to.have.property('url', Repositories[1].url.trim()) | ||
}) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.