We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda861b commit 29a02fbCopy full SHA for 29a02fb
app/commands/actions.html
@@ -82,9 +82,9 @@ <h4 id="type"><a href="https://on.cypress.io/type">.type()</a></h4>
82
cy.get('.action-email').type('{del}{selectall}{backspace}')
83
84
// .type() with key modifiers
85
-cy.get('.action-email').type('{alt}{option}') //these are equivalent
86
-cy.get('.action-email').type('{ctrl}{control}') //these are equivalent
87
-cy.get('.action-email').type('{meta}{command}{cmd}') //these are equivalent
+cy.get('.action-email').type('{alt}{option}') // these are equivalent
+cy.get('.action-email').type('{ctrl}{control}') // these are equivalent
+cy.get('.action-email').type('{meta}{command}{cmd}') // these are equivalent
88
cy.get('.action-email').type('{shift}')
89
90
// Delay each keypress by 0.1 sec
@@ -182,7 +182,7 @@ <h4 id="submit"><a href="https://on.cypress.io/submit">.submit()</a></h4>
182
<p>To submit a form, use the <a href="https://on.cypress.io/submit"><code>cy.submit()</code></a> command.</p>
183
<pre><code class="javascript">cy.get('.action-form')
184
.find('[type="text"]').type('HALFOFF')
185
-
+
186
cy.get('.action-form').submit()
187
cy.get('.action-form').next().should('contain', 'Your form has been submitted!')</code></pre>
188
</div>
app/commands/misc.html
@@ -123,7 +123,8 @@ <h4 id="exec"><a href="https://on.cypress.io/exec">cy.exec()</a></h4>
123
if (Cypress.platform === 'win32') {
124
cy.exec('print cypress.config.js')
125
.its('stderr').should('be.empty')
126
-} else {
+}
127
+else {
128
cy.exec('cat cypress.config.js')
129
130
app/commands/storage.html
@@ -141,9 +141,9 @@ <h4><a href="https://on.cypress.io/getalllocalstorage">cy.getAllLocalStorage()</
141
expect(storageMap).to.deep.equal({
142
// other origins will also be present if localStorage is set on them
143
'http://localhost:8080': {
144
- 'prop1': 'red',
145
- 'prop2': 'blue',
146
- 'prop3': 'magenta',
+ prop1: 'red',
+ prop2: 'blue',
+ prop3: 'magenta',
147
},
148
})
149
})</code></pre>
@@ -191,9 +191,9 @@ <h4><a href="https://on.cypress.io/getallsessionstorage">cy.getAllSessionStorage
191
192
// other origins will also be present if sessionStorage is set on them
193
194
- 'prop4': 'cyan',
195
- 'prop5': 'yellow',
196
- 'prop6': 'black',
+ prop4: 'cyan',
+ prop5: 'yellow',
+ prop6: 'black',
197
198
199
cypress.config.js
@@ -1,4 +1,4 @@
1
module.exports = {
2
- 'projectId': '4b7344',
+ projectId: '4b7344',
3
e2e: {},
4
}
cypress/e2e/2-advanced-examples/actions.cy.js
@@ -17,9 +17,9 @@ context('Actions', () => {
17
18
19
20
- cy.get('.action-email').type('{alt}{option}') //these are equivalent
21
- cy.get('.action-email').type('{ctrl}{control}') //these are equivalent
22
- cy.get('.action-email').type('{meta}{command}{cmd}') //these are equivalent
+ cy.get('.action-email').type('{alt}{option}') // these are equivalent
+ cy.get('.action-email').type('{ctrl}{control}') // these are equivalent
+ cy.get('.action-email').type('{meta}{command}{cmd}') // these are equivalent
23
24
25
cypress/e2e/2-advanced-examples/cypress_api.cy.js
@@ -1,7 +1,6 @@
/// <reference types="cypress" />
context('Cypress APIs', () => {
5
context('Cypress.Commands', () => {
6
beforeEach(() => {
7
cy.visit('http://localhost:8080/cypress-api')
cypress/e2e/2-advanced-examples/misc.cy.js
@@ -43,7 +43,8 @@ context('Misc', () => {
43
44
cy.exec(`print ${Cypress.config('configFile')}`)
45
46
- } else {
+ }
47
+ else {
48
cy.exec(`cat ${Cypress.config('configFile')}`)
49
50
cypress/e2e/2-advanced-examples/storage.cy.js
@@ -64,9 +64,9 @@ context('Local Storage / Session Storage', () => {
64
65
66
67
68
69
70
71
72
@@ -94,9 +94,9 @@ context('Local Storage / Session Storage', () => {
94
95
96
97
98
99
100
101
102
eslint.config.mjs
@@ -10,18 +10,18 @@ export default [
10
...eslintPluginJsonc.configs['flat/recommended-with-json'],
11
mochaPlugin.configs.recommended,
12
pluginCypress.configs.recommended,
13
+ stylistic.configs.recommended,
14
{
- ignores: ['app/assets/js/vendor/'],
15
+ ignores: ['app/assets/js/{vendor,todo}/'],
16
- plugins: {
- '@stylistic': stylistic,
- },
rules: {
- '@stylistic/indent': ['error', 2, { 'SwitchCase': 1, 'MemberExpression': 'off' }],
+ '@stylistic/arrow-parens': ['error', 'always'],
'@stylistic/comma-dangle': ['error', 'always-multiline'],
+ '@stylistic/indent': ['error', 2, { SwitchCase: 1, MemberExpression: 'off' }],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/semi': ['error', 'never'],
+ '@stylistic/space-before-function-paren': ['error', 'always'],
'mocha/no-exclusive-tests': 'error',
26
'mocha/no-pending-tests': 'error',
27
'mocha/no-mocha-arrows': 'off',
scripts/set-port.js
@@ -26,7 +26,6 @@ const newUrl = `localhost:${process.env.PORT}`
console.log('replacing "%s" with "%s" in all spec files', input, newUrl)
28
29
30
const getSpecFilenames = () => {
31
const globby = require('globby')
32
0 commit comments