mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-05 14:50:00 -06:00
rename cypress basics and core concepts
This commit is contained in:
@@ -5,10 +5,10 @@ guides:
|
||||
writing-your-first-test: writing-your-first-test.html
|
||||
testing-your-app: testing-your-app.html
|
||||
next-steps: next-steps.html
|
||||
cypress-basics:
|
||||
overview-of-the-gui-tool: overview-of-the-gui-tool.html
|
||||
core-concepts: core-concepts.html
|
||||
core-concepts:
|
||||
cypress-in-a-nutshell: cypress-in-a-nutshell.html
|
||||
organizing-tests: organizing-tests.html
|
||||
overview-of-the-gui-tool: overview-of-the-gui-tool.html
|
||||
aliases-variables-in-an-async-world: aliases-variables-in-an-async-world.html
|
||||
dead-simple-debugging: dead-simple-debugging.html
|
||||
stubs-spies-clocks: stubs-spies-clocks.html
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
title: Core Concepts
|
||||
title: Cypress in a Nutshell
|
||||
comments: true
|
||||
---
|
||||
|
||||
@@ -20,21 +20,21 @@ Expressivity is all about getting more done with less typing. Let's look at an e
|
||||
```js
|
||||
describe("Post Resource", function() {
|
||||
it("Creating a new Post", function() {
|
||||
cy.visit("/posts/new") // 1.
|
||||
cy.visit("/posts/new") // 1.
|
||||
|
||||
cy.get("input.post-title") // 2.
|
||||
.type("My First Post") // 3.
|
||||
.type("My First Post") // 3.
|
||||
|
||||
cy.get("input.post-body") // 4.
|
||||
.type("Hello, world!") // 5.
|
||||
cy.get("input.post-body") // 4.
|
||||
.type("Hello, world!") // 5.
|
||||
|
||||
cy.get('button[type="submit"]') // 6.
|
||||
.click() // 7.
|
||||
cy.contains('Submit') // 6.
|
||||
.click() // 7.
|
||||
|
||||
cy.url() // 8.
|
||||
cy.url() // 8.
|
||||
.should("eq", "/posts/my-first-post")
|
||||
|
||||
cy.get('h1') // 9.
|
||||
cy.get('h1') // 9.
|
||||
.its('value')
|
||||
.should("eq", "My First Post")
|
||||
})
|
||||
@@ -49,7 +49,7 @@ Can you read this? If you did, it might sound something like this:
|
||||
3. Type "My First Post" into it.
|
||||
4. Find the `<input>` with class `post-body`.
|
||||
5. Type "Hello, world!" into it.
|
||||
6. Select the `<button>` tag with a type of `submit`.
|
||||
6. Find the element containing the text `Submit`.
|
||||
7. Click it.
|
||||
8. Grab the browser URL, ensure it is `/posts/my-first-post`.
|
||||
9. Select the `<h1>` tag, ensure it contains the text "My First Post".
|
||||
4
docs/themes/cypress/languages/en.yml
vendored
4
docs/themes/cypress/languages/en.yml
vendored
@@ -24,10 +24,10 @@ sidebar:
|
||||
writing-your-first-test: Writing Your First Test
|
||||
testing-your-app: Testing Your App
|
||||
next-steps: Next Steps
|
||||
cypress-basics: Basics
|
||||
overview-of-the-gui-tool: Overview of the GUI Tool
|
||||
core-concepts: Core Concepts
|
||||
cypress-in-a-nutshell: Cypress in a Nutshell
|
||||
organizing-tests: Organizing Tests
|
||||
overview-of-the-gui-tool: Overview of the GUI Tool
|
||||
dead-simple-debugging: Dead Simple Debugging
|
||||
aliases-variables-in-an-async-world: Aliases: Variables in an Async World
|
||||
stubs-spies-clocks: Stubs, Spies, and Clocks
|
||||
|
||||
Reference in New Issue
Block a user