Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR-05.02:Updating the linter and fixing the errors found #18

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
ecmaVersion: 'latest',
},
extends: ['plugin:cypress/recommended', 'eslint:recommended'],
ignorePatterns: ['node_modules/', 'reports/'],
rules: {
quotes: [
'error',
Expand Down
4 changes: 2 additions & 2 deletions cypress/src/components/ProductList.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import QuickView from '../modals/QuickView';

export default class ProductList {
homeTabsContainerLocator = '#home-page-tabs'
bestSellersBtnLocator = '.blockbestsellers'
homeTabsContainerLocator = '#home-page-tabs';
bestSellersBtnLocator = '.blockbestsellers';
productsContainerLocator = '.tab-content';
productContainerLocator = '.product-container';
productDiscountLocator = '#blockbestsellers .right-block .price-percent-reduction';
Expand Down
2 changes: 1 addition & 1 deletion cypress/src/modals/QuickView.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export default class QuickView {
});
});
return this;
}
}
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": " Automation Mentoring project (JavaScript, Cypress ^10, Mochawesome reporter, CI/CD GitHub,)",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint .",
"lint-debug": "eslint . --debug"
},
"repository": {
"type": "git",
Expand All @@ -18,8 +20,9 @@
"homepage": "https://github.com/VadimNastoyashchy/cypressautomationpracticecom#readme",
"devDependencies": {
"cypress": "10.2.0",
"eslint-plugin-cypress": "2.12.1",
"mochawesome": "7.1.3",
"cypress-iframe": "1.0.1"
"cypress-iframe": "1.0.1",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^2.12.1",
"mochawesome": "7.1.3"
}
}
Loading