Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into user/tom9744/recursive-no-pause
Browse files Browse the repository at this point in the history
tom9744 authored Apr 24, 2024
2 parents 198c6f5 + 404387a commit e47aedd
Showing 10 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@
],
"rules": {
"eslint-plugin/require-meta-schema": "off",
"eslint-plugin/require-meta-type": "off",
"n/no-extraneous-require": [
"error",
{
1 change: 1 addition & 0 deletions lib/rules/assertion-before-screenshot.js
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ const assertionCommands = [

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Assert on the page state before taking a screenshot, so the screenshot is consistent',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/no-assigning-return-values.js
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ function get (obj, propertyString = '') {

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent assigning return values of cy calls',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/no-async-before.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent using async/await in Cypress before methods',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/no-async-tests.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent using async/await in Cypress test cases',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/no-force.js
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@

module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Disallow using of \'force: true\' option for click and type calls',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/no-pause.js
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@

module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Disallow using of \'cy.pause\' calls',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/no-unnecessary-waiting.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Prevent waiting for arbitrary time periods',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/require-data-selectors.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@

module.exports = {
meta: {
type: 'suggestion',
docs: {
description: 'Use data-* attributes to provide context to your selectors and insulate them from CSS or JS changes https://docs.cypress.io/guides/references/best-practices.html#Selecting-Elements',
category: 'Possible Errors',
1 change: 1 addition & 0 deletions lib/rules/unsafe-to-chain-command.js
Original file line number Diff line number Diff line change
@@ -69,6 +69,7 @@ const getDefaultOptions = (context) => {
/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
type: 'problem',
docs: {
description: DESCRIPTION,
category: 'Possible Errors',

0 comments on commit e47aedd

Please sign in to comment.