mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 14:54:34 -04:00
Fixes for cypress tests
This commit is contained in:
parent
b28ec2ace2
commit
314b62f0bb
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"video": false,
|
"video": false,
|
||||||
"baseUrl": "http://ninja.test:8000/"
|
"baseUrl": "http://invoiceninja.wip/"
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ describe('Credits', () => {
|
|||||||
cy.visit('/client/credits');
|
cy.visit('/client/credits');
|
||||||
|
|
||||||
cy.get('body')
|
cy.get('body')
|
||||||
.find('h3')
|
.find('span')
|
||||||
.first()
|
.first()
|
||||||
.should('contain.text', 'Credits');
|
.should('contain.text', 'Credits');
|
||||||
});
|
});
|
||||||
|
@ -14,7 +14,7 @@ context('Invoices', () => {
|
|||||||
cy.visit('/client/invoices');
|
cy.visit('/client/invoices');
|
||||||
|
|
||||||
cy.get('body')
|
cy.get('body')
|
||||||
.find('h3')
|
.find('span')
|
||||||
.first()
|
.first()
|
||||||
.should('contain.text', 'Invoices');
|
.should('contain.text', 'Invoices');
|
||||||
});
|
});
|
||||||
|
@ -39,7 +39,7 @@ context('Login', () => {
|
|||||||
.click();
|
.click();
|
||||||
cy.location().should(location => {
|
cy.location().should(location => {
|
||||||
expect(location.pathname).to.eq(
|
expect(location.pathname).to.eq(
|
||||||
'/client/dashboard'
|
'/client/invoices'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -14,20 +14,11 @@ context('Payment methods', () => {
|
|||||||
cy.visit('/client/payment_methods');
|
cy.visit('/client/payment_methods');
|
||||||
|
|
||||||
cy.get('body')
|
cy.get('body')
|
||||||
.find('h3')
|
.find('span')
|
||||||
.first()
|
.first()
|
||||||
.should('contain.text', 'Payment Method');
|
.should('contain.text', 'Payment Method');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show add payment method button', () => {
|
|
||||||
cy.visit('/client/payment_methods');
|
|
||||||
|
|
||||||
cy.get('body')
|
|
||||||
.find('a.button.button-primary')
|
|
||||||
.first()
|
|
||||||
.should('contain.text', 'Add Payment Method');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should have per page options dropdown', () => {
|
it('should have per page options dropdown', () => {
|
||||||
cy.visit('/client/payment_methods');
|
cy.visit('/client/payment_methods');
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ context('Payments', () => {
|
|||||||
cy.visit('/client/payments');
|
cy.visit('/client/payments');
|
||||||
|
|
||||||
cy.get('body')
|
cy.get('body')
|
||||||
.find('h3')
|
.find('span')
|
||||||
.first()
|
.first()
|
||||||
.should('contain.text', 'Payments');
|
.should('contain.text', 'Payments');
|
||||||
});
|
});
|
||||||
|
@ -14,7 +14,7 @@ describe('Quotes', () => {
|
|||||||
cy.visit('/client/quotes');
|
cy.visit('/client/quotes');
|
||||||
|
|
||||||
cy.get('body')
|
cy.get('body')
|
||||||
.find('h3')
|
.find('span')
|
||||||
.first()
|
.first()
|
||||||
.should('contain.text', 'Quotes');
|
.should('contain.text', 'Quotes');
|
||||||
});
|
});
|
||||||
|
@ -16,7 +16,7 @@ context('Recurring invoices', () => {
|
|||||||
it('should show reucrring invoices text', () => {
|
it('should show reucrring invoices text', () => {
|
||||||
cy.visit('/client/recurring_invoices');
|
cy.visit('/client/recurring_invoices');
|
||||||
|
|
||||||
cy.get('h3')
|
cy.get('span')
|
||||||
.first()
|
.first()
|
||||||
.should('contain.text', 'Recurring Invoices');
|
.should('contain.text', 'Recurring Invoices');
|
||||||
});
|
});
|
||||||
|
@ -8,13 +8,15 @@
|
|||||||
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"prod": "npm run production",
|
"prod": "npm run production",
|
||||||
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
|
||||||
"test": "cypress run"
|
"test": "cypress run",
|
||||||
|
"test:gui": "cypress open"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/compat-data": "7.9.0",
|
"@babel/compat-data": "7.9.0",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.10.1",
|
"@babel/plugin-proposal-class-properties": "^7.10.1",
|
||||||
"laravel-mix-purgecss": "^5.0.0-rc.1",
|
"laravel-mix-purgecss": "^5.0.0-rc.1",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.6.11",
|
||||||
|
"cypress": "^4.6.0",
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tailwindcss/ui": "^0.1.3",
|
"@tailwindcss/ui": "^0.1.3",
|
||||||
@ -22,7 +24,6 @@
|
|||||||
"card-js": "^1.0.13",
|
"card-js": "^1.0.13",
|
||||||
"card-validator": "^6.2.0",
|
"card-validator": "^6.2.0",
|
||||||
"cross-env": "^7.0",
|
"cross-env": "^7.0",
|
||||||
"cypress": "^4.6.0",
|
|
||||||
"jsignature": "^2.1.3",
|
"jsignature": "^2.1.3",
|
||||||
"laravel-mix": "^5.0.1",
|
"laravel-mix": "^5.0.1",
|
||||||
"lodash": "^4.17.13",
|
"lodash": "^4.17.13",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user