-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71b2164
commit 67b56fb
Showing
3 changed files
with
149 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="description" content="Kitchen Sink | Cypress Example"> | ||
<meta name="author" content="Cypress.io"> | ||
<meta name="copyright" content="Cypress.io, Inc"> | ||
|
||
<title>Cypress.io: Kitchen Sink</title> | ||
|
||
<link rel="icon" href="/assets/img/favicon.ico" type="image/x-icon"> | ||
<link rel="stylesheet" href="/assets/css/vendor/bootstrap.min.css"> | ||
<link rel="stylesheet" href="/assets/css/vendor/fira.css"> | ||
<link rel="stylesheet" href="/assets/css/styles.css"> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<h1>Worst App</h1> | ||
<div className="App"> | ||
<div role="orange" id="fuck-this-shitty-app">Fuck this janky shit</div> | ||
</div> | ||
</main> | ||
<script src="/assets/js/vendor/jquery-1.12.0.min.js"></script> | ||
<script src="/assets/js/vendor/bootstrap.min.js"></script> | ||
<script src="/assets/js/vendor/highlight.pack.js"></script> | ||
<script src="/assets/js/scripts.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,85 @@ | ||
/// <reference types="cypress" /> | ||
|
||
context('Actions', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:8080/commands/donkey') | ||
}) | ||
|
||
// eslint-disable-next-line | ||
it('works', () => { | ||
cy.get('#outer').should('contain', 'Outer') | ||
// cy.get('#outer').should('contain', 'Inner') | ||
}) | ||
|
||
// eslint-disable-next-line | ||
it('does not work', () => { | ||
cy.get('#outer').should('contain', 'Outer2') | ||
// cy.get('#outer').should('contain', 'Inner2') | ||
}) | ||
|
||
// eslint-disable-next-line | ||
it('talks to an iframe', () => { | ||
cy.get('#example-tier-1') | ||
.its('0.contentDocument.body') | ||
.should('contain', "I'm Tier 1 - h3") | ||
}) | ||
|
||
it('talks to the waffles', () => { | ||
cy.visit('http://localhost:8080/commands/donkey-content') | ||
|
||
cy.get('#example-tier-1') | ||
.its('0.contentDocument.body') | ||
.should('contain', "I'm Tier 1 - h3") | ||
}) | ||
// beforeEach(() => { | ||
// cy.visit('http://localhost:8080/commands/donkey') | ||
// }) | ||
|
||
// // eslint-disable-next-line | ||
// it('works', () => { | ||
// cy.get('#outer').should('contain', 'Outer') | ||
// // cy.get('#outer').should('contain', 'Inner') | ||
// }) | ||
|
||
// // eslint-disable-next-line | ||
// it('does not work', () => { | ||
// cy.get('#outer').should('contain', 'Outer2') | ||
// // cy.get('#outer').should('contain', 'Inner2') | ||
// }) | ||
|
||
// // eslint-disable-next-line | ||
// it('talks to an iframe', () => { | ||
// cy.get('#example-tier-1') | ||
// .its('0.contentDocument.body') | ||
// .should('contain', "I'm Tier 1 - h3") | ||
// }) | ||
|
||
// it('talks to the waffles', () => { | ||
// cy.visit('http://localhost:8080/commands/donkey-content') | ||
|
||
// cy.get('#example-tier-1') | ||
// .its('0.contentDocument.body') | ||
// .should('contain', "I'm Tier 1 - h3") | ||
// }) | ||
|
||
describe(`100% scores`, () => { | ||
// it("github", () => { | ||
// cy.visit("https://github.com"); | ||
// cy.contains("GitHub"); | ||
// }); | ||
|
||
it("deque university", () => { | ||
cy.visit("https://dequeuniversity.com/"); | ||
cy.contains("Deque University"); | ||
}); | ||
|
||
it("userway", () => { | ||
cy.visit("https://userway.org/accessibility/"); | ||
cy.contains("Accessibility Statement"); | ||
}); | ||
}); | ||
|
||
// beforeEach(() => { | ||
// cy.viewport(600, 500) | ||
// cy.visit('http://localhost:8080/commands/donkey') | ||
// }) | ||
|
||
// // eslint-disable-next-line | ||
// it('works', () => { | ||
// for (let index = 0; index < 10; index++) { | ||
// cy.get(`#a-${index}`).click() | ||
// } | ||
// }) | ||
|
||
// // eslint-disable-next-line | ||
// it('does not work', () => { | ||
// cy.visit('http://localhost:8080/commands/garbage') | ||
// cy.get('#outer').should('contain', 'Outer2') | ||
// // cy.get('#outer').should('contain', 'Inner2') | ||
// }) | ||
|
||
// // eslint-disable-next-line | ||
// it('talks to an iframe', () => { | ||
// cy.get('#example-tier-1') | ||
// .its('0.contentDocument.body') | ||
// .should('contain', "I'm Tier 1 - h3") | ||
// }) | ||
|
||
// it('talks to the waffles', () => { | ||
// cy.visit('http://localhost:8080/commands/donkey-content') | ||
|
||
// cy.get('#example-tier-1') | ||
// .its('0.contentDocument.body') | ||
// .should('contain', "I'm Tier 1 - h3") | ||
// }) | ||
}) |