Skip to content

Instantly share code, notes, and snippets.

@mrnugget
Created November 20, 2019 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrnugget/41df2e9c5a32da19c30a8c5b9c84b98e to your computer and use it in GitHub Desktop.
Save mrnugget/41df2e9c5a32da19c30a8c5b9c84b98e to your computer and use it in GitHub Desktop.
diff cli/types/index.d.ts cli/types/index.d.ts
--- cli/types/index.d.ts
+++ cli/types/index.d.ts
@@ -2796,7 +2796,7 @@
/**
* Asserts that the target string contains the given substring `str`.
* @example
- * cy.wrap('foobar').should('have.string', 'bar')
+ * cy.wrap('barfoo').should('have.string', 'bar')
* @see http://chaijs.com/api/bdd/#method_string
* @see https://on.cypress.io/assertions
*/
@@ -2804,7 +2804,7 @@
/**
* When the target is a string, `.include` asserts that the given string `val` is a substring of the target.
* @example
- * cy.wrap('foobar').should('include', 'foo')
+ * cy.wrap('barfoo').should('include', 'foo')
* @see http://chaijs.com/api/bdd/#method_include
* @see https://on.cypress.io/assertions
*/
@@ -2834,7 +2834,7 @@
/**
* Asserts that the target matches the given regular expression `re`.
* @example
- * cy.wrap('foobar').should('match', /^foo/)
+ * cy.wrap('barfoo').should('match', /^foo/)
* @see http://chaijs.com/api/bdd/#method_match
* @see https://on.cypress.io/assertions
*/
@@ -3296,7 +3296,7 @@
/**
* Asserts that the target string does not contains the given substring `str`.
* @example
- * cy.wrap('foobar').should('not.have.string', 'baz')
+ * cy.wrap('barfoo').should('not.have.string', 'baz')
* @see http://chaijs.com/api/bdd/#method_string
* @see https://on.cypress.io/assertions
*/
@@ -3304,7 +3304,7 @@
/**
* When the target is a string, `.include` asserts that the given string `val` is not a substring of the target.
* @example
- * cy.wrap('foobar').should('not.include', 'baz')
+ * cy.wrap('barfoo').should('not.include', 'baz')
* @see http://chaijs.com/api/bdd/#method_include
* @see https://on.cypress.io/assertions
*/
@@ -3334,7 +3334,7 @@
/**
* Asserts that the target does not match the given regular expression `re`.
* @example
- * cy.wrap('foobar').should('not.match', /baz$/)
+ * cy.wrap('barfoo').should('not.match', /baz$/)
* @see http://chaijs.com/api/bdd/#method_match
* @see https://on.cypress.io/assertions
*/
diff cli/types/tests/chainer-examples.ts cli/types/tests/chainer-examples.ts
--- cli/types/tests/chainer-examples.ts
+++ cli/types/tests/chainer-examples.ts
@@ -155,7 +155,7 @@
cy.wrap(addTwo).should('increase', getVal)
}
-cy.wrap('foobar').should('match', /^foo/)
+cy.wrap('barfoo').should('match', /^foo/)
;
() => {
@@ -297,9 +297,9 @@
cy.wrap({ a: 1 }).should('not.have.property', 'b')
cy.wrap({ a: 1 }).should('not.have.property', 'b', 1)
-cy.wrap('foobar').should('not.have.string', 'baz')
+cy.wrap('barfoo').should('not.have.string', 'baz')
-cy.wrap('foobar').should('not.include', 'baz')
+cy.wrap('barfoo').should('not.include', 'baz')
;
() => {
@@ -309,7 +309,7 @@
cy.wrap(() => {}).should('not.increase', getVal)
}
-cy.wrap('foobar').should('not.match', /baz$/)
+cy.wrap('barfoo').should('not.match', /baz$/)
;
() => {
diff packages/driver/test/cypress/fixtures/dom.html packages/driver/test/cypress/fixtures/dom.html
--- packages/driver/test/cypress/fixtures/dom.html
+++ packages/driver/test/cypress/fixtures/dom.html
@@ -500,7 +500,7 @@
</li>
</ul>
</div>
- <foobarbazquux>custom element</foobarbazquux>
+ <barfoobazquux>custom element</barfoobazquux>
<div id="ajax-get-container">
<button id="get-json">get ajax</button>
</div>
diff packages/driver/test/cypress/integration/commands/actions/click_spec.js packages/driver/test/cypress/integration/commands/actions/click_spec.js
--- packages/driver/test/cypress/integration/commands/actions/click_spec.js
+++ packages/driver/test/cypress/integration/commands/actions/click_spec.js
@@ -492,7 +492,7 @@
})
it('places cursor at the end of input', () => {
- cy.get('input:first').invoke('val', 'foobar').click().then(($el) => {
+ cy.get('input:first').invoke('val', 'barfoo').click().then(($el) => {
const el = $el.get(0)
expect(el.selectionStart).to.eql(6)
diff packages/driver/test/unit_old/cypress/server_spec.coffee packages/driver/test/unit_old/cypress/server_spec.coffee
--- packages/driver/test/unit_old/cypress/server_spec.coffee
+++ packages/driver/test/unit_old/cypress/server_spec.coffee
@@ -312,11 +312,11 @@
expect(@abort).to.be.calledOn(@xhr)
it "calls onXhrAbort callback with xhr + stack trace", ->
- @sandbox.stub(@server, "getStack").returns("foobarbaz")
+ @sandbox.stub(@server, "getStack").returns("barfoobaz")
onXhrAbort = @sandbox.spy @server.options, "onXhrAbort"
@xhr.open("GET", "/foo")
@xhr.abort()
- expect(onXhrAbort).to.be.calledWith(@server.getProxyFor(@xhr), "foobarbaz")
+ expect(onXhrAbort).to.be.calledWith(@server.getProxyFor(@xhr), "barfoobaz")
it "calls onAnyAbort callback with route + xhr", ->
onAnyAbort = @sandbox.spy @server.options, "onAnyAbort"
@@ -445,7 +445,7 @@
# response: [{name: "b"}, {name: "j"}]
# })
# @xhr = new @window.XMLHttpRequest
-# @xhr.open("POST", "foobar")
+# @xhr.open("POST", "barfoo")
# @server.applyStubProperties(@xhr, @stub)
# @expectRequestHeader = (key, val) =>
@@ -481,7 +481,7 @@
# })
# xhr = new @window.XMLHttpRequest
-# xhr.open("POST", "foobar")
+# xhr.open("POST", "barfoo")
# @server.applyStubProperties(xhr, stub)
# expect(@setRequestHeader).not.to.be.calledWith("X-Cypress-Headers")
diff packages/driver/test/cypress/integration/commands/actions/type_spec.js packages/driver/test/cypress/integration/commands/actions/type_spec.js
--- packages/driver/test/cypress/integration/commands/actions/type_spec.js
+++ packages/driver/test/cypress/integration/commands/actions/type_spec.js
@@ -2361,7 +2361,7 @@
.type('bar{enter}baz{enter}{enter}{enter}quux').then(function ($div) {
const conditionalNewLines = '\n\n'.repeat(this.multiplierNumNewLines)
- expect(trimInnerText($div)).to.eql(`foobar\nbaz${conditionalNewLines}\nquux`)
+ expect(trimInnerText($div)).to.eql(`barfoo\nbaz${conditionalNewLines}\nquux`)
expect($div.get(0).textContent).to.eql('foobarbazquux')
expect($div.get(0).innerHTML).to.eql('foobar<div>baz</div><div><br></div><div><br></div><div>quux</div>')
@@ -3425,8 +3425,8 @@
cy.get('[contenteditable]:first')
.type('{selectall}{leftarrow}')
- .type(`foobar${'{rightarrow}'.repeat(6)}[_I_]`).then(() => {
- expect(trimInnerText($el)).to.eql(`foobar${newLines}\nen[_I_]d`)
+ .type(`barfoo${'{rightarrow}'.repeat(6)}[_I_]`).then(() => {
+ expect(trimInnerText($el)).to.eql(`barfoo${newLines}\nen[_I_]d`)
})
})
diff packages/driver/test/cypress/integration/commands/assertions_spec.coffee packages/driver/test/cypress/integration/commands/assertions_spec.coffee
--- packages/driver/test/cypress/integration/commands/assertions_spec.coffee
+++ packages/driver/test/cypress/integration/commands/assertions_spec.coffee
@@ -174,12 +174,12 @@
@remoteWindow = cy.state("window")
it "yields the remote jQuery instance", ->
- @remoteWindow.$.fn.__foobar = fn = ->
+ @remoteWindow.$.fn.__barfoo = fn = ->
cy
.get("input:first").should ($input) ->
isInstanceOf = Cypress.utils.isInstanceOf($input, @remoteWindow.$)
- hasProp = $input.__foobar is fn
+ hasProp = $input.__barfoo is fn
expect(isInstanceOf).to.be.true
expect(hasProp).to.to.true
diff packages/server/lib/request.coffee packages/server/lib/request.coffee
--- packages/server/lib/request.coffee
+++ packages/server/lib/request.coffee
@@ -527,7 +527,7 @@
## tough-cookie will return us a cookie that looks like this....
# { key: 'secret-session',
# value: 's%3AxMYoMAXnnMN2pzjYKJx21Id9zjQOaPsT.aKJv1mlfNlCEtrPUjgt48KX0c7xNiB%2Bb0fLijmi48dY',
- # domain: 'session.foobar.com',
+ # domain: 'session.barfoo.com',
# path: '/',
# httpOnly: true,
# extensions: [ 'SameSite=Strict' ],
diff packages/driver/test/cypress/integration/commands/querying_spec.coffee packages/driver/test/cypress/integration/commands/querying_spec.coffee
--- packages/driver/test/cypress/integration/commands/querying_spec.coffee
+++ packages/driver/test/cypress/integration/commands/querying_spec.coffee
@@ -1142,7 +1142,7 @@
expect(lastLog.get("error")).to.eq err
done()
- cy.get("foobar")
+ cy.get("barfoo")
it "throws when alias property is '0'", (done) ->
cy.on "fail", (err) ->
diff packages/server/__snapshots__/5_subdomain_spec.coffee.js packages/server/__snapshots__/5_subdomain_spec.coffee.js
--- packages/server/__snapshots__/5_subdomain_spec.coffee.js
+++ packages/server/__snapshots__/5_subdomain_spec.coffee.js
@@ -18,7 +18,7 @@
subdomains
- ✓ can swap to help.foobar.com:2292
+ ✓ can swap to help.barfoo.com:2292
✓ can directly visit a subdomain in another test
✓ issue: #207: does not duplicate or hostOnly cookies as a domain cookie
✓ corrects sets domain based cookies
diff packages/server/test/e2e/5_subdomain_spec.coffee packages/server/test/e2e/5_subdomain_spec.coffee
--- packages/server/test/e2e/5_subdomain_spec.coffee
+++ packages/server/test/e2e/5_subdomain_spec.coffee
@@ -19,7 +19,7 @@
<body>
<ul>
<li>
- <a href="http://help.foobar.com:2292">switch to http://help.foobar.com</a>
+ <a href="http://help.barfoo.com:2292">switch to http://help.foobar.com</a>
</li>
</ul>
</body>
diff packages/server/test/support/fixtures/projects/e2e/cypress/integration/subdomain_spec.coffee packages/server/test/support/fixtures/projects/e2e/cypress/integration/subdomain_spec.coffee
--- packages/server/test/support/fixtures/projects/e2e/cypress/integration/subdomain_spec.coffee
+++ packages/server/test/support/fixtures/projects/e2e/cypress/integration/subdomain_spec.coffee
@@ -70,7 +70,7 @@
})
## send a request to localhost but get
- ## redirected back to foobar
+ ## redirected back to barfoo
.request("http://localhost:2292/redirect")
.its("body.cookie")
.should("not.exist")
@@ -78,7 +78,7 @@
it.skip "sets a hostOnly cookie by default", ->
cy
## this should set a hostOnly cookie for
- ## www.foobar.com
+ ## www.barfoo.com
.setCookie("foobar", "1")
.request("http://domain.foobar.com:2292/cookies")
@@ -87,22 +87,22 @@
it "issue #361: incorrect cookie synchronization between cy.request redirects", ->
cy
- ## start with a cookie on foobar
+ ## start with a cookie on barfoo
.setCookie("foobar", "1")
## send a request to localhost but get
- ## redirected back to foobar
+ ## redirected back to barfoo
.request("http://localhost:2292/redirect")
.its("body.cookie")
.should("eq", "foobar=1")
it "issue #362: incorrect cookie synchronization between cy.visit redirects", ->
cy
- ## start with a cookie on foobar specifically for www
+ ## start with a cookie on barfoo specifically for www
.setCookie("foobar", "1", {domain: "www.foobar.com"})
- ## send a request to domain.foobar but get
- ## redirected back to www.foobar.com
+ ## send a request to domain.barfoo but get
+ ## redirected back to www.barfoo.com
.visit("http://domain.foobar.com:2292/domainRedirect")
.get("#cookie")
.should("have.text", "foobar=1")
diff packages/server/test/integration/websockets_spec.coffee packages/server/test/integration/websockets_spec.coffee
--- packages/server/test/integration/websockets_spec.coffee
+++ packages/server/test/integration/websockets_spec.coffee
@@ -140,10 +140,10 @@
it "proxies through subdomain by using host header", (done) ->
## we specifically only allow remote connections
- ## to ws.foobar.com since that is where the websocket
+ ## to ws.barfoo.com since that is where the websocket
## server is mounted and this tests that we make
## a connection to the right host instead of the
- ## origin (which isnt ws.foobar.com)
+ ## origin (which isnt ws.barfoo.com)
nock.enableNetConnect("ws.foobar.com")
evilDns.add("ws.foobar.com", "127.0.0.1")
diff packages/server/test/support/fixtures/projects/todos/tests/_fixtures/message.txt packages/server/test/support/fixtures/projects/todos/tests/_fixtures/message.txt
--- packages/server/test/support/fixtures/projects/todos/tests/_fixtures/message.txt
+++ packages/server/test/support/fixtures/projects/todos/tests/_fixtures/message.txt
@@ -1,1 +1,1 @@
-foobarbaz
\ No newline at end of file
+barfoobaz
\ No newline at end of file
diff packages/server/test/unit/config_spec.coffee packages/server/test/unit/config_spec.coffee
--- packages/server/test/unit/config_spec.coffee
+++ packages/server/test/unit/config_spec.coffee
@@ -770,7 +770,7 @@
it "sets config, envFile and env", ->
sinon.stub(config, "getProcessEnvVars").returns({
quux: "quux"
- RECORD_KEY: "foobarbazquux",
+ RECORD_KEY: "barfoobazquux",
CI_KEY: "justanothercikey",
PROJECT_ID: "projectId123"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment