generated from maximegris/angular-electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix file system firebase, auth layout, layout login and register pages
add multiview config, cypress tests, debug to server, etc...
- Loading branch information
Showing
48 changed files
with
1,274 additions
and
584 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
8 changes: 7 additions & 1 deletion
8
cypress/integration/auth.spect.ts → cypress/integration/auth.spec.ts
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,112 @@ | ||
describe('Tests calculator', () => { | ||
|
||
before(() => { | ||
cy.visit('/'); | ||
cy.setCookie('user', JSON.stringify(Cypress.env('USER_COOKIES'))); | ||
cy.visit('/'); // Reload page | ||
cy.THUMDER_goCalculator(); | ||
}); | ||
|
||
beforeEach(() => { | ||
}); | ||
|
||
it('Check byte', () => { | ||
cy.get("#byte_value").clear().type('123'); | ||
cy.get("#byte_binary").should('have.value', '01111011'); | ||
cy.get("#byte_hex").should('have.value', '7B'); | ||
|
||
cy.get("#byte_hex").clear().type('FF'); | ||
cy.get("#byte_binary").should('have.value', '11111111'); | ||
cy.get("#byte_value").should('have.value', '255'); | ||
|
||
cy.get("#byte_binary").clear().type('00001111'); | ||
cy.get("#byte_value").should('have.value', '15'); | ||
cy.get("#byte_hex").should('have.value', '0F'); | ||
}); | ||
|
||
it('Check HalfWord', () => { | ||
cy.get("#halfword_value").clear().type('123'); | ||
cy.get("#halfword_binary").should('have.value', '0000000001111011'); | ||
cy.get("#halfword_hex").should('have.value', '007B'); | ||
|
||
cy.get("#halfword_hex").clear().type('00FF'); | ||
cy.get("#halfword_binary").should('have.value', '0000000011111111'); | ||
cy.get("#halfword_value").should('have.value', '255'); | ||
|
||
cy.get("#halfword_binary").clear().type('1111111111111111'); | ||
cy.get("#halfword_value").should('have.value', '65535'); | ||
cy.get("#halfword_hex").should('have.value', 'FFFF'); | ||
}); | ||
|
||
it('Check Word', () => { | ||
cy.get("#word_value").clear().type('255'); | ||
cy.get("#word_binary").should('have.value', '00000000000000000000000011111111'); | ||
cy.get("#word_hex").should('have.value', '000000FF'); | ||
|
||
cy.get("#word_hex").clear().type('00001000'); | ||
cy.get("#word_binary").should('have.value', '00000000000000000001000000000000'); | ||
cy.get("#word_value").should('have.value', '4096'); | ||
|
||
cy.get("#word_binary").clear().type('11111111111111111111111111111111'); | ||
cy.get("#word_value").should('have.value', '4294967295'); | ||
cy.get("#word_hex").should('have.value', 'FFFFFFFF'); | ||
}); | ||
|
||
it('Check Float SubNormal', () => { | ||
// 1 | ||
cy.get("#ieee754_number").clear().type('1'); | ||
cy.get("#ieee754_binary").should('have.value', '00111111100000000000000000000000'); | ||
cy.get("#ieee754_hex").should('have.value', '3F800000'); | ||
|
||
// 2 | ||
cy.get("#ieee754_number").clear().type('{rightarrow}2'); | ||
cy.get("#ieee754_binary").should('have.value', '01000000000000000000000000000000'); | ||
cy.get("#ieee754_hex").should('have.value', '40000000'); | ||
|
||
// -1 | ||
cy.get("#ieee754_number").clear().type('{rightarrow}1{leftarrow}{backspace}-'); | ||
cy.get("#ieee754_binary").should('have.value', '10111111100000000000000000000000'); | ||
cy.get("#ieee754_hex").should('have.value', 'BF800000'); | ||
|
||
// -2 | ||
cy.get("#ieee754_number").clear().type('{rightarrow}2{leftarrow}{backspace}-'); | ||
cy.get("#ieee754_binary").should('have.value', '11000000000000000000000000000000'); | ||
cy.get("#ieee754_hex").should('have.value', 'C0000000'); | ||
|
||
// PI | ||
cy.get("#ieee754_number").clear().type('{rightarrow}31415{movetostart}{rightarrow}{backspace}'); | ||
cy.get("#ieee754_number").type('{movetostart}{rightarrow}.'); | ||
cy.get("#ieee754_binary").should('have.value', '01000000010010010000111001010110'); | ||
cy.get("#ieee754_hex").should('have.value', '40490E56'); | ||
}); | ||
|
||
it('Check Double SubNormal', () => { | ||
// 1 | ||
cy.get("#ieee754_number_64").clear().type('1'); | ||
cy.get("#ieee754_binary_64").should('have.value', '0011111111110000000000000000000000000000000000000000000000000000'); | ||
cy.get("#ieee754_hex_64").should('have.value', '3FF0000000000000'); | ||
|
||
// 2 | ||
cy.get("#ieee754_number_64").clear().type('{rightarrow}2'); | ||
cy.get("#ieee754_binary_64").should('have.value', '0100000000000000000000000000000000000000000000000000000000000000'); | ||
cy.get("#ieee754_hex_64").should('have.value', '4000000000000000'); | ||
|
||
// -1 | ||
cy.get("#ieee754_number_64").clear().type('{rightarrow}1{leftarrow}{backspace}-'); | ||
cy.get("#ieee754_binary_64").should('have.value', '1011111111110000000000000000000000000000000000000000000000000000'); | ||
cy.get("#ieee754_hex_64").should('have.value', 'BFF0000000000000'); | ||
|
||
// -2 | ||
cy.get("#ieee754_number_64").clear().type('{rightarrow}2{leftarrow}{backspace}-'); | ||
cy.get("#ieee754_binary_64").should('have.value', '1100000000000000000000000000000000000000000000000000000000000000'); | ||
cy.get("#ieee754_hex_64").should('have.value', 'C000000000000000'); | ||
|
||
// PI | ||
cy.get("#ieee754_number_64").clear().type('{rightarrow}31415{movetostart}{rightarrow}{backspace}'); | ||
cy.get("#ieee754_number_64").type('{movetostart}{rightarrow}.'); | ||
cy.get("#ieee754_binary_64").should('have.value', '0100000000001001001000011100101011000000100000110001001001101111'); | ||
cy.get("#ieee754_hex_64").should('have.value', '400921CAC0831400'); | ||
|
||
}); | ||
|
||
}); |
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,31 @@ | ||
describe('Cookies', () => { | ||
|
||
before(() => { | ||
cy.visit('/'); | ||
// scy.setCookie('user', JSON.stringify(Cypress.env('USER_COOKIES'))); | ||
cy.visit('/'); // Reload page | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.clearCookie('cookieconsent_status'); | ||
cy.visit('/'); // Reload page | ||
cy.wait(1000); | ||
}); | ||
|
||
it('Allow cookies', () => { | ||
cy.get('.cc-window').then($element => { | ||
if ($element.is(':visible')) { | ||
cy.get('.cc-allow').click(); | ||
} | ||
}); | ||
}); | ||
|
||
it('Decline cookies', () => { | ||
cy.get('.cc-window').then($element => { | ||
if ($element.is(':visible')) { | ||
cy.get('.cc-deny').click(); | ||
} | ||
}); | ||
}); | ||
|
||
}); |
5 changes: 4 additions & 1 deletion
5
cypress/integration/cycle-clock.spect.ts → cypress/integration/cycle-clock.spec.ts
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
7 changes: 4 additions & 3 deletions
7
cypress/integration/memory.spect.ts → cypress/integration/memory.spec.ts
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
84 changes: 45 additions & 39 deletions
84
cypress/integration/navigate.spect.ts → cypress/integration/navigate.spec.ts
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,84 +1,90 @@ | ||
describe('Visit pages no auth', () => { | ||
describe('Visit pages auth', () => { | ||
|
||
beforeEach(() => { | ||
before(() => { | ||
cy.visit('/'); | ||
}); | ||
|
||
it('go to login', () => { | ||
cy.visit('/login'); | ||
cy.url().should('contain', '/login'); | ||
beforeEach(() => { | ||
cy.setCookie('user', JSON.stringify(Cypress.env('USER_COOKIES'))); | ||
cy.visit('/'); // Reload page | ||
}); | ||
|
||
it('go to forgot my password', () => { | ||
cy.visit('/forgot-password'); | ||
cy.url().should('contain', '/forgot-password'); | ||
it('can visit Multiview', () => { | ||
cy.THUMDER_goMultiview(); | ||
}); | ||
|
||
it('go to register a new membership', () => { | ||
cy.visit('/register'); | ||
cy.url().should('contain', '/register'); | ||
cy.contains('Register a new membership'); | ||
it('can visit calculator', () => { | ||
cy.THUMDER_goCalculator(); | ||
}); | ||
|
||
}); | ||
|
||
describe('Visit pages auth', () => { | ||
|
||
before(() => { | ||
cy.visit('/login'); | ||
it('can visit Code', () => { | ||
cy.THUMDER_goCode(); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.THUMDER_SignOut(); | ||
cy.THUMDER_login(); | ||
// cy.THUMDER_login() | ||
it('can visit Config', () => { | ||
cy.THUMDER_goConfig(); | ||
}); | ||
|
||
it('can visit calculator', () => { | ||
cy.THUMDER_goCalculator(); | ||
it('can visit Documentation', () => { | ||
cy.THUMDER_goDocumentation(); | ||
}); | ||
|
||
it('can visit file-manager', () => { | ||
it('can visit File manager', () => { | ||
cy.THUMDER_goFileManager(); | ||
}); | ||
|
||
it('can visit IDE', () => { | ||
cy.THUMDER_goIDE(); | ||
}); | ||
|
||
it('can visit Pipeline', () => { | ||
cy.THUMDER_goPipeline(); | ||
it('can visit Logger', () => { | ||
cy.THUMDER_goLogger(); | ||
}); | ||
|
||
it('can visit Memory', () => { | ||
cy.THUMDER_goMemory(); | ||
}); | ||
|
||
it('can visit Cycle clock diagram', () => { | ||
cy.THUMDER_goCycleClockDiagram(); | ||
}); | ||
|
||
it('can visit Memory', () => { | ||
cy.THUMDER_goMemory(); | ||
it('can visit Pipeline', () => { | ||
cy.THUMDER_goPipeline(); | ||
}); | ||
|
||
it('can visit Code', () => { | ||
cy.THUMDER_goCode(); | ||
it('can visit Profile', () => { | ||
cy.THUMDER_goProfile(); | ||
}); | ||
|
||
it('can visit Registers', () => { | ||
cy.THUMDER_goRegisters(); | ||
}); | ||
|
||
it('can visit Profile', () => { | ||
cy.THUMDER_goProfile(); | ||
it('can visit Statistics', () => { | ||
cy.THUMDER_goStatistics(); | ||
}); | ||
|
||
it('can visit Documentation', () => { | ||
cy.THUMDER_goDocumentation(); | ||
}); | ||
describe('Visit pages no auth', () => { | ||
|
||
beforeEach(() => { | ||
}); | ||
|
||
it('can visit Config', () => { | ||
cy.THUMDER_goConfig(); | ||
it('go to login', () => { | ||
cy.visit('/login'); | ||
cy.url().should('contain', '/login'); | ||
}); | ||
|
||
it('can visit Multiview', () => { | ||
cy.THUMDER_goMultiview(); | ||
it('go to forgot my password', () => { | ||
cy.visit('/forgot-password'); | ||
cy.url().should('contain', '/forgot-password'); | ||
}); | ||
|
||
it('go to register a new membership', () => { | ||
cy.visit('/register'); | ||
cy.url().should('contain', '/register'); | ||
cy.contains('Register a new membership'); | ||
}); | ||
|
||
}); |
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.