Skip to content

Commit

Permalink
update ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Jan Pietrzak committed Sep 23, 2018
1 parent 5b5255c commit 0f04c5d
Show file tree
Hide file tree
Showing 7 changed files with 1,003 additions and 16 deletions.
6 changes: 3 additions & 3 deletions cypress/integration/basic_spec.js
@@ -1,15 +1,15 @@
describe('Basic example', () => {

it('counter should be increased after click on #plus', () => {
cy.visit('localhost:3000/basic/index.html');
cy.visit('/Basic/index.html');
cy.get('#count').should('contain', '42');
cy.get('#plus').click()
cy.get('#count').should('contain', '43');
cy.get('#plus').click();
});

it('counter should be decrease after click on #minus', () => {
cy.visit('localhost:3000/basic/index.html');
cy.visit('/Basic/index.html');
cy.get('#count').should('contain', '42');
cy.get('#minus').click();
cy.get('#count').should('contain', '41');
Expand All @@ -18,7 +18,7 @@ describe('Basic example', () => {
});

it('counter should be increased 2x after click on #double', () => {
cy.visit('localhost:3000/basic/index.html');
cy.visit('/Basic/index.html');
cy.get('#count').should('contain', '42');
cy.get('#double').click();
cy.wait(5000)
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/form_spec.js
@@ -1,7 +1,7 @@
describe('Form example', () => {

it('2way data binding', () => {
cy.visit('/form/index.html');
cy.visit('/Form/index.html');

cy.get('#first').should('contain', 'first: ');
cy.get('#second').should('contain', 'second: ');
Expand All @@ -15,7 +15,7 @@ describe('Form example', () => {
});

it('async loading', () => {
cy.visit('/form/index.html');
cy.visit('/Form/index.html');
cy.get('button').click();

cy.get('#loading').should('contain', 'loaded');
Expand All @@ -33,7 +33,7 @@ describe('Form example', () => {
});

it('send form data to backend', () => {
cy.visit('/form/index.html');
cy.visit('/Form/index.html');
cy.get('button').click();

cy.get('#loading').should('contain', 'loaded');
Expand Down
2 changes: 1 addition & 1 deletion cypress/integration/request_spec.js
Expand Up @@ -5,7 +5,7 @@ describe('Basic example', () => {
cy.server({ delay: 1500 })
cy.route('GET', 'localhost:3000/api/example/1', {})

cy.visit('/request/index.html');
cy.visit('/Request/index.html');
cy.get('#data').should('contain', 'begin');
cy.get('#request').click();
cy.get('#data').should('contain', 'loading');
Expand Down
1 change: 0 additions & 1 deletion cypress/server/main.js
Expand Up @@ -16,7 +16,6 @@ app.get('/api/example/1', (req, res) => {
}, 3000);
});


app.post('/api/form', (req, res) => {
setTimeout(() => {
const { firstName, lastName } = req.body;
Expand Down

0 comments on commit 0f04c5d

Please sign in to comment.