Skip to content

Commit b83548a

Browse files
chore(deps): update dependency eslint-plugin-cypress to v3 (#30136)
* chore(deps): update dependency eslint-plugin-cypress to v3 * empty commit * Fix cypress eslint errors in system tests * Update snapshots after changing protocol tests. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
1 parent 1f5fcf6 commit b83548a

File tree

7 files changed

+1364
-490
lines changed

7 files changed

+1364
-490
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"electron-builder": "^23.6.0",
147147
"enzyme-adapter-react-16": "1.12.1",
148148
"eslint": "^8.56.0",
149-
"eslint-plugin-cypress": "2.11.2",
149+
"eslint-plugin-cypress": "3.5.0",
150150
"eslint-plugin-graphql": "4.0.0",
151151
"eslint-plugin-import": "2.25.4",
152152
"eslint-plugin-json-format": "2.0.1",

system-tests/__snapshots__/protocol_spec.js

Lines changed: 1326 additions & 459 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
describe('font flooding', () => {
22
it('will not occur', () => {
33
cy.visit('cypress/fixtures/font-flooding.html')
4-
cy.get('#btn').click().should('have.text', 'Clicked')
4+
cy.get('#btn').click()
5+
cy.get('#btn').should('have.text', 'Clicked')
56
})
67

78
it('will not occur', () => {
89
cy.visit('cypress/fixtures/font-flooding.html')
9-
cy.get('#btn').click().should('have.text', 'Clicked')
10+
cy.get('#btn').click()
11+
cy.get('#btn').should('have.text', 'Clicked')
1012
})
1113
})

system-tests/projects/protocol/cypress/e2e/test-isolation.cy.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,47 +5,56 @@ describe('test isolation', { baseUrl: null }, () => {
55
it('test 1', () => {
66
cy.visit('cypress/fixtures/dom-with-browser-interactions.html')
77
cy.wait(1000, { log: false })
8-
cy.get('#text-target').type('abc').should('have.value', 'abc')
8+
cy.get('#text-target').type('abc')
9+
cy.get('#text-target').should('have.value', 'abc')
910
})
1011

1112
it('test 2', () => {
12-
cy.get('#text-target').type('def').should('have.value', 'abcdef')
13+
cy.get('#text-target').type('def')
14+
cy.get('#text-target').should('have.value', 'abcdef')
1315
})
1416

1517
it('test 3', () => {
16-
cy.get('#text-target').type('ghi').should('have.value', 'abcdefghi')
18+
cy.get('#text-target').type('ghi')
19+
cy.get('#text-target').should('have.value', 'abcdefghi')
1720
})
1821

1922
it('test 4', () => {
20-
cy.get('#text-target').type('!').should('have.value', 'abcdefghi!')
23+
cy.get('#text-target').type('!')
24+
cy.get('#text-target').should('have.value', 'abcdefghi!')
2125

2226
cy.visit('cypress/fixtures/dom-with-browser-interactions.html')
2327
cy.wait(1000, { log: false })
24-
cy.get('#text-target').type('abc').should('have.value', 'abc')
28+
cy.get('#text-target').type('abc')
29+
cy.get('#text-target').should('have.value', 'abc')
2530
})
2631

2732
it('test 5', () => {
28-
cy.get('#text-target').type('!').should('have.value', 'abc!')
33+
cy.get('#text-target').type('!')
34+
cy.get('#text-target').should('have.value', 'abc!')
2935
})
3036
})
3137

3238
describe('test isolation true', { testIsolation: true }, () => {
3339
it('test 6', () => {
3440
cy.visit('cypress/fixtures/dom-with-browser-interactions.html')
3541
cy.wait(1000, { log: false })
36-
cy.get('#text-target').type('abc').should('have.value', 'abc')
42+
cy.get('#text-target').type('abc')
43+
cy.get('#text-target').should('have.value', 'abc')
3744
})
3845

3946
it('test 7', () => {
4047
cy.visit('cypress/fixtures/dom-with-browser-interactions.html')
4148
cy.wait(1000, { log: false })
42-
cy.get('#text-target').type('def').should('have.value', 'def')
49+
cy.get('#text-target').type('def')
50+
cy.get('#text-target').should('have.value', 'def')
4351
})
4452
})
4553

4654
describe('test isolation false', { testIsolation: false }, () => {
4755
it('test 8', () => {
48-
cy.get('#text-target').type('abc').should('have.value', 'defabc')
56+
cy.get('#text-target').type('abc')
57+
cy.get('#text-target').should('have.value', 'defabc')
4958
})
5059
})
5160
})

system-tests/projects/protocol/src/components/HelloEarth.cy.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ import HelloEarth from './HelloEarth.jsx'
44
describe('<HelloEarth />', () => {
55
it('test 1', () => {
66
cy.mount(<HelloEarth />)
7-
cy.get('#earth-text')
8-
.type('Hello Earth')
9-
.should('have.value', 'Hello Earth')
7+
cy.get('#earth-text').type('Hello Earth')
8+
cy.get('#earth-text').should('have.value', 'Hello Earth')
109
})
1110

1211
it('test 2', () => {
1312
cy.mount(<HelloEarth />)
14-
cy.get('#earth-text')
15-
.type('Where\'s Mars?')
16-
.should('have.value', 'Where\'s Mars?')
13+
cy.get('#earth-text').type('Where\'s Mars?')
14+
cy.get('#earth-text').should('have.value', 'Where\'s Mars?')
1715
})
1816
})

system-tests/projects/protocol/src/components/HelloMars.cy.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ import HelloMars from './HelloMars.jsx'
44
describe('<HelloMars />', () => {
55
it('test 1', () => {
66
cy.mount(<HelloMars />)
7-
cy.get('#mars-text')
8-
.type('Hello Mars')
9-
.should('have.value', 'Hello Mars')
7+
cy.get('#mars-text').type('Hello Mars')
8+
cy.get('#mars-text').should('have.value', 'Hello Mars')
109
})
1110

1211
it('test 2', () => {
1312
cy.mount(<HelloMars />)
14-
cy.get('#mars-text')
15-
.type('Where\'s Earth?')
16-
.should('have.value', 'Where\'s Earth?')
13+
cy.get('#mars-text').type('Where\'s Earth?')
14+
cy.get('#mars-text').should('have.value', 'Where\'s Earth?')
1715
})
1816
})

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15066,12 +15066,12 @@ eslint-module-utils@^2.1.1, eslint-module-utils@^2.7.2, eslint-module-utils@^2.8
1506615066
dependencies:
1506715067
debug "^3.2.7"
1506815068

15069-
eslint-plugin-cypress@2.11.2:
15070-
version "2.11.2"
15071-
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.11.2.tgz#a8f3fe7ec840f55e4cea37671f93293e6c3e76a0"
15072-
integrity sha512-1SergF1sGbVhsf7MYfOLiBhdOg6wqyeV9pXUAIDIffYTGMN3dTBQS9nFAzhLsHhO+Bn0GaVM1Ecm71XUidQ7VA==
15069+
eslint-plugin-cypress@3.5.0:
15070+
version "3.5.0"
15071+
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-3.5.0.tgz#380ef5049ad80ebeca923db69e4aa96e72fcd893"
15072+
integrity sha512-JZQ6XnBTNI8h1B9M7wJSFzc48SYbh7VMMKaNTQOFa3BQlnmXPrVc4PKen8R+fpv6VleiPeej6VxloGb42zdRvw==
1507315073
dependencies:
15074-
globals "^11.12.0"
15074+
globals "^13.20.0"
1507515075

1507615076
eslint-plugin-graphql@4.0.0:
1507715077
version "4.0.0"
@@ -17207,12 +17207,12 @@ global@~4.4.0:
1720717207
min-document "^2.19.0"
1720817208
process "^0.11.10"
1720917209

17210-
globals@^11.1.0, globals@^11.12.0:
17210+
globals@^11.1.0:
1721117211
version "11.12.0"
1721217212
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
1721317213
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
1721417214

17215-
globals@^13.19.0:
17215+
globals@^13.19.0, globals@^13.20.0:
1721617216
version "13.24.0"
1721717217
resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171"
1721817218
integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==

0 commit comments

Comments
 (0)