Skip to content

Commit

Permalink
try temp for branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dkasper-was-taken committed Sep 11, 2024
1 parent 71b2164 commit 67b56fb
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 30 deletions.
38 changes: 38 additions & 0 deletions app/commands/donkey.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,51 @@ <h2>I'm H2</h2>
<button id="outer" aria-colindex="true">Outer</button>
<hr></hr>
<div style="height: 500px;">im big</div>
<<<<<<< Updated upstream
<iframe
=======
<!-- <iframe
>>>>>>> Stashed changes
id="example-tier-1"
title="frame-tier-1"
src="./donkey-content.html"
width="300"
height="300"
<<<<<<< Updated upstream
></iframe>
=======
></iframe> -->
<a href="#" id="a-0">A-0</a>
<a href="#" id="a-1">A-1</a>
<a href="#" id="a-2">A-2</a>
<a href="#" id="a-3">A-3</a>
<a href="#" id="a-4">A-4</a>
<a href="#" id="a-5">A-5</a>
<a href="#" id="a-6">A-6</a>
<a href="#" id="a-7">A-7</a>
<a href="#" id="a-8">A-8</a>
<a href="#" id="a-9">A-9</a>
<a href="#" id="a-10">A-10</a>
<a href="#" id="a-11">A-11</a>
<a href="#" id="a-12">A-12</a>
<a href="#" id="a-13">A-13</a>
<a href="#" id="a-14">A-14</a>
<a href="#" id="a-15">A-15</a>
<a href="#" id="a-16">A-16</a>
<a href="#" id="a-17">A-17</a>
<a href="#" id="a-18">A-18</a>
<a href="#" id="a-19">A-19</a>
<a href="#" id="a-20">A-30</a>
<a href="#" id="a-21">A-21</a>
<a href="#" id="a-22">A-22</a>
<a href="#" id="a-23">A-23</a>
<a href="#" id="a-24">A-24</a>
<a href="#" id="a-25">A-25</a>
<a href="#" id="a-26">A-26</a>
<a href="#" id="a-27">A-27</a>
<a href="#" id="a-28">A-28</a>
<a href="#" id="a-29">A-29</a>
>>>>>>> Stashed changes
<div style="height: 500px;">im big</div>
<div style="height: 500px;">im big</div>
</div>
Expand Down
30 changes: 30 additions & 0 deletions app/commands/garbage.html
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>
111 changes: 81 additions & 30 deletions cypress/e2e/2-advanced-examples/actions.cy.js
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")
// })
})

0 comments on commit 67b56fb

Please sign in to comment.