-
Notifications
You must be signed in to change notification settings - Fork 2
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 #66 from PoCInnovation/dev
Computing v1 & Storage file change
- Loading branch information
Showing
24 changed files
with
1,618 additions
and
891 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
REACT_APP_ALEPH_CHANNEL=TEST | ||
REACT_APP_ALEPH_CHANNEL=TEST | ||
PORT=8080 |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
let dashboardSpecMnemonic = ''; | ||
|
||
describe('Create account for DashboardView tests', () => { | ||
it('Connect', () => { | ||
cy.visit('/signup'); | ||
cy.wait(1000); | ||
cy.get('#ipc-signupView-credentials-signup-button').click(); | ||
cy.get('#ipc-signupView-text-area') | ||
.invoke('val') | ||
.then((input) => { | ||
dashboardSpecMnemonic = input; | ||
}); | ||
cy.get('#ipc-modal-close-button').click(); | ||
}); | ||
}); | ||
|
||
describe('Upload a program modal for DashboardView', () => { | ||
const fixtureFile = 'upload_test_program.zip'; | ||
|
||
beforeEach(() => { | ||
cy.visit('/login'); | ||
cy.wait(1000); | ||
cy.get('#ipc-loginView-text-area').click().type(dashboardSpecMnemonic); | ||
cy.get('#ipc-loginView-credentials-button').click().wait(3000); | ||
cy.get('#ipc-dashboardView-drawer-button').click({ force: true }); | ||
cy.get('#ipc-deploy-button').click().wait(2500); | ||
}); | ||
|
||
it('Good number of buttons after upload', () => { | ||
cy.get('#ipc-dashboardView-upload-program').attachFile(fixtureFile); | ||
cy.get('#ipc-dashboardView-upload-program-modal-button').click(); | ||
cy.wait(2000); | ||
cy.get('button').should('have.length', 10); | ||
}); | ||
|
||
it('Good number of buttons after closing modal', () => { | ||
cy.get('#ipc-modal-close-button').click(); | ||
cy.get('button').should('have.length', 10); | ||
}); | ||
}); |
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.