-
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.
- Loading branch information
Showing
76 changed files
with
2,330 additions
and
2,839 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,7 +1,8 @@ | ||
NEXTAUTH_URL=http://localhost:8080 | ||
NEXTAUTH_SECRET="secret" | ||
|
||
NEXT_PUBLIC_ALEPH_CHANNEL=TEST | ||
|
||
NEXT_PUBLIC_GITCLONE_DIR=repositories | ||
NEXT_PUBLIC_GITHUB_CLIENT_ID="your OAuth client id" | ||
NEXT_PUBLIC_GITHUB_CLIENT_SECRET="your OAuth client secret" | ||
NEXTAUTH_URL=http://localhost:8080 | ||
NEXTAUTH_SECRET="secret" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
"useTabs": true, | ||
"bracketSpacing": true, | ||
"parser": "typescript" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,13 +1,8 @@ | ||
import { defineConfig } from 'cypress'; | ||
|
||
export default defineConfig({ | ||
watchForFileChanges: false, | ||
e2e: { | ||
// We've imported your old cypress plugins here. | ||
// You may want to clean this up later by importing these. | ||
setupNodeEvents(on, config) { | ||
return require('./cypress/plugins/index.js')(on, config) | ||
}, | ||
baseUrl: 'http://localhost:8080', | ||
}, | ||
}) | ||
watchForFileChanges: false, | ||
e2e: { | ||
baseUrl: 'http://localhost: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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,28 @@ | ||
let dashboardSpecMnemonic = ''; | ||
|
||
describe('Create account for File tests', () => { | ||
it('Connect', () => { | ||
cy.visit('/signup'); | ||
cy.get('#ipc-signup-credentials-signup-button').click(); | ||
cy.get('#ipc-signup-text-area') | ||
.invoke('val') | ||
.then((input) => { | ||
dashboardSpecMnemonic = input as string; | ||
}); | ||
cy.get('#ipc-modal-close-button').click(); | ||
}); | ||
}); | ||
|
||
describe('Upload a file modal in Dashboard', () => { | ||
describe('File tests', () => { | ||
const fixtureFile = 'upload_test_file.txt'; | ||
const emptyFixtureFile = 'upload_empty_file.txt'; | ||
|
||
beforeEach(() => { | ||
cy.visit('/login'); | ||
cy.get('#ipc-login-text-area').click().type(dashboardSpecMnemonic); | ||
cy.get('#ipc-login-credentials-button').click(); | ||
cy.get('#ipc-dashboard-drawer-button').click({ force: true }); | ||
cy.get('.ipc-new-elem-button').click(); | ||
cy.get('#ipc-upload-button').click({ force: true }); | ||
it('Signup for file tests', () => { | ||
cy.signup(); | ||
}); | ||
|
||
it('Good number of buttons after upload', () => { | ||
cy.get('#ipc-dashboard-upload-file').attachFile(fixtureFile); | ||
cy.get('#ipc-dashboard-upload-file-modal-button').click(); | ||
cy.wait(20000); | ||
cy.get('button').should('have.length', 19); | ||
cy.uploadFile(fixtureFile); | ||
|
||
cy.get('#chakra-toast-portal').contains('File uploaded'); | ||
}); | ||
|
||
it('Good number of buttons after failed upload', () => { | ||
cy.get('#ipc-dashboard-upload-file').attachFile(emptyFixtureFile, { allowEmpty: true }); | ||
cy.get('#ipc-dashboard-upload-file-modal-button').click(); | ||
cy.wait(20000); | ||
cy.get('button').should('have.length', 21); | ||
}); | ||
}); | ||
cy.uploadFile(emptyFixtureFile, { allowEmpty: true }); | ||
|
||
describe('Download a file in Dashboard', () => { | ||
beforeEach(() => { | ||
cy.visit('/login'); | ||
cy.get('#ipc-login-text-area').click().type(dashboardSpecMnemonic); | ||
cy.get('#ipc-login-credentials-button').click(); | ||
cy.get('.ipc-file-popover-button').click(); | ||
cy.get('#ipc-dashboard-download-button').click(); | ||
cy.get('#chakra-toast-portal').contains('Invalid file'); | ||
cy.get('#ipc-modal-close-button').click(); | ||
}); | ||
|
||
it('Good content for downloaded file', () => { | ||
cy.readFile('./cypress/downloads/upload_test_file.txt').should('eq', 'This is an upload test file'); | ||
cy.get('.ipc-file-popover-button').click({ force: true }); | ||
cy.get('#ipc-dashboard-download-button').click({ force: true }); | ||
cy.readFile(`./cypress/downloads/${fixtureFile}`).should('eq', 'This is an upload test file'); | ||
cy.get('#chakra-toast-portal').contains('File downloaded'); | ||
}); | ||
}); |
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,37 +1,15 @@ | ||
describe('Create account for Dashboard tests', () => { | ||
it('Connect', () => { | ||
cy.visit('/signup'); | ||
cy.get('#ipc-signup-credentials-signup-button').click(); | ||
cy.get('#ipc-signup-text-area') | ||
.invoke('val') | ||
.then((input) => { | ||
dashboardSpecMnemonic = input as string; | ||
}); | ||
cy.get('#ipc-modal-close-button').click(); | ||
}); | ||
}); | ||
|
||
describe('Deploy a program modal for Dashboard', () => { | ||
describe('Programs', () => { | ||
const fixtureFile = 'upload_test_program.zip'; | ||
|
||
beforeEach(() => { | ||
cy.visit('/login'); | ||
cy.get('#ipc-login-text-area').click().type(dashboardSpecMnemonic); | ||
cy.get('#ipc-login-credentials-button').click(); | ||
it("Signup for program tests", () => { | ||
cy.signup(); | ||
}); | ||
|
||
it('Good program deployment', () => { | ||
cy.get('#ipc-dashboard-drawer-button').click({ force: true }); | ||
cy.get('.ipc-new-elem-button').click(); | ||
cy.get('#ipc-deploy-button').click({ force: true }).wait(2500); | ||
}); | ||
|
||
it('Good number of buttons after deployment', () => { | ||
cy.get('#ipc-dashboard-deploy-program').attachFile(fixtureFile); | ||
cy.get('#ipc-dashboard-deploy-program-modal-button').click(); | ||
cy.wait(20000); | ||
cy.get('button').should('have.length', 14); | ||
}); | ||
|
||
it('Good number of buttons after closing modal', () => { | ||
cy.get('#ipc-modal-close-button').click(); | ||
cy.get('button').should('have.length', 12); | ||
}); | ||
}); |
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.