@@ -31,3 +31,9 @@ is a library that aims to make application side effect asynchronous things like
|
||||
[Gmail-tester]
|
||||
https://github.com/levz0r/gmail-tester
|
||||
|
||||
|
||||
## Jenkins
|
||||
|
||||
>in case of emergency
|
||||
make docker-restart ENV=dev
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ describe('RegisterTest', function() {
|
||||
before(function(){
|
||||
|
||||
cy.exec('yarn dropAndCreateDB',{failOnNonZeroExit: false});
|
||||
cy.exec('yarn add cypress',{failOnNonZeroExit: false});
|
||||
})
|
||||
it('Test if Register works', function() {
|
||||
cy.viewport(375, 667)
|
||||
|
||||
@@ -12,11 +12,11 @@ describe('Apply to an offer', function() {
|
||||
cy.get('.cypButtonConnexion').click().wait(3000)
|
||||
|
||||
|
||||
cy.get('.cypButtonOffers').click()
|
||||
cy.get('.cypButtonOffers').click().wait(3000)
|
||||
cy.url().should('contain', 'Offres')
|
||||
cy.get('.cypCardOffre').first().click()
|
||||
cy.get('.cypCardOffre').first().click().wait(3000)
|
||||
cy.url().should('contain', 'Offre')
|
||||
cy.get('.cypButtonApply').first().click()
|
||||
cy.get('.cypButtonApply').first().click().wait(3000)
|
||||
cy.url().should('contain', 'Reponse')
|
||||
|
||||
cy.fixture('cypVid.mov', 'base64').then(fileContent => {
|
||||
@@ -24,6 +24,8 @@ describe('Apply to an offer', function() {
|
||||
{ fileContent, fileName: 'cypVid.mov', mimeType: 'video/quicktime', encoding: 'base64' },
|
||||
{ subjectType: 'input', force: true }
|
||||
)}).wait(3000)
|
||||
cy.get('.cypButtonSendApplication').click()
|
||||
cy.get('.cypButtonSendApplication').click().wait(3000)
|
||||
})
|
||||
|
||||
//Should verify if application is received
|
||||
})
|
||||
@@ -0,0 +1,17 @@
|
||||
describe('test_name', function() {
|
||||
|
||||
it('what_it_does', function() {
|
||||
|
||||
cy.viewport(1536, 674)
|
||||
|
||||
cy.visit('http://localhost:8000/')
|
||||
|
||||
cy.get('.MuiList-root > div > .jss56:nth-child(1) > .MuiListItemText-root > .MuiTypography-root').click()
|
||||
|
||||
cy.get('.MuiList-root > div > .jss56:nth-child(2) > .MuiListItemText-root > .MuiTypography-root').click()
|
||||
|
||||
cy.get('.MuiList-root > div > .jss56:nth-child(3) > .MuiListItemText-root > .MuiTypography-root').click()
|
||||
|
||||
})
|
||||
|
||||
})
|
||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 176 KiB |
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 140 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user