-
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.
- Loading branch information
1 parent
c216448
commit 4b76994
Showing
13 changed files
with
2,208 additions
and
83 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,11 @@ | ||
{ | ||
"type": "chrome", | ||
"request": "attach", | ||
"name": "Attach to Chrome", | ||
"port": 9222, | ||
"urlFilter": "http://localhost:4200/*", | ||
"webRoot": "${workspaceFolder}", | ||
"configurations": [ | ||
|
||
] | ||
} |
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,8 @@ | ||
import { User } from '../support/objects/objects' | ||
|
||
describe('Create User', () => { | ||
it('it creates a user', () => { | ||
const response = cy.upsertlogin(User); | ||
return response; | ||
}) | ||
}); |
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,94 @@ | ||
import { User, HostName, Workspaces } from '../support/objects/objects'; | ||
|
||
|
||
describe('Create Workspaces', () => { | ||
it('passes', () => { | ||
cy.upsertlogin(User).then(value => | ||
{ | ||
//Create 3 Workspaces | ||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/`, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: Workspaces[0] | ||
}).its('body').should('have.property', 'name', Workspaces[0].name.trim()); | ||
|
||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/`, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: Workspaces[1] | ||
}); | ||
|
||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/`, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: Workspaces[2] | ||
}); | ||
}) | ||
}) | ||
}) | ||
|
||
describe('Edit Mission', () => { | ||
it('passes', () => { | ||
cy.upsertlogin(User).then(value => | ||
{ | ||
//Create 3 Workspaces | ||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/mission`, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: { | ||
uuid: Workspaces[0].uuid, | ||
mission: 'This is a sample mission for workspace' | ||
} | ||
}).then((resp) => { | ||
expect(resp.status).to.eq(200) | ||
}) | ||
|
||
}) | ||
}) | ||
}) | ||
|
||
describe('Edit Tactics', () => { | ||
it('passes', () => { | ||
cy.upsertlogin(User).then(value => | ||
{ | ||
//Create 3 Workspaces | ||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/tactics`, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: { | ||
uuid: Workspaces[0].uuid, | ||
mission: 'This is a sample tactics and objectives for workspace' | ||
} | ||
}).then((resp) => { | ||
expect(resp.status).to.eq(200) | ||
}) | ||
|
||
}) | ||
}) | ||
}) | ||
|
||
describe('Edit Schematics Url', () => { | ||
it('passes', () => { | ||
cy.upsertlogin(User).then(value => | ||
{ | ||
//Create 3 Workspaces | ||
cy.request({ | ||
method: 'POST', | ||
url: `${HostName}/workspaces/schematicurl`, | ||
headers: { 'x-jwt': `${ value }` }, | ||
body: { | ||
uuid: Workspaces[0].uuid, | ||
mission: 'This is a sample schematic url for workspaces' | ||
} | ||
}).then((resp) => { | ||
expect(resp.status).to.eq(200) | ||
}) | ||
|
||
}) | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = (on, config) => { | ||
|
||
on('before:browser:launch', (browser = {}, args) => { | ||
|
||
if (browser.name === 'chrome') { | ||
args.push('--remote-debugging-port=9222') | ||
|
||
// whatever you return here becomes the new args | ||
return args | ||
} | ||
|
||
}) | ||
} |
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.