From fb3e13f314d13e3155b1b2073bc7306f39333b09 Mon Sep 17 00:00:00 2001 From: Michael Leners Date: Tue, 14 Jan 2020 15:29:42 -0600 Subject: [PATCH] Update Closing --- assets/auth.example | 5 -- assets/traffic.example | 5 -- presentation/index.js | 62 ++++++++++------------ presentation/slides/Closing.js | 92 +++++++++++++++++++-------------- presentation/slides/Closing2.js | 82 +++++++++++++++++++++++++++++ 5 files changed, 163 insertions(+), 83 deletions(-) create mode 100644 presentation/slides/Closing2.js diff --git a/assets/auth.example b/assets/auth.example index 17d6fdb..e1ffe9e 100644 --- a/assets/auth.example +++ b/assets/auth.example @@ -12,11 +12,6 @@ function login(secret: string, id: string) { } }).then(response => { const adalToken = response.body.access_token; - window.localStorage.setItem( - 'adal.access.token.keyede' + RESOURCE_ID, - adalToken - ); - window.localStorage.setItem('adal.idtoken', adalToken); }); } diff --git a/assets/traffic.example b/assets/traffic.example index 9863ddd..63383d4 100644 --- a/assets/traffic.example +++ b/assets/traffic.example @@ -3,11 +3,6 @@ beforeEach(() => { cy.server({}); }); -const pendingPombTitle = 'No Pending Payment Option Market Basis Results'; -const pendingPombMessage = 'All POMB records for this basis date are Active.'; -const activePombTitle = 'No Active Payment Option Market Basis Results'; -const activePombMessage = 'All POMB records for this basis date are Pending.'; - const mockedPendingPombs = [ { 'POMB object 1' }, ..., { 'POMB object N' } ]; diff --git a/presentation/index.js b/presentation/index.js index 021880f..5d8c1c9 100644 --- a/presentation/index.js +++ b/presentation/index.js @@ -214,29 +214,33 @@ export default class Presentation extends React.Component { code={require("raw-loader!../assets/auth.example").default} ranges={[ { loc: [0, 22], title: "Auth Flow with Cypress" }, - { loc: [2, 22], title: "Setup Auth Request" }, + { loc: [2, 22], title: "Setup Auth Token" }, { - loc: [2, 4], - title: "Setup", - note: - "`cy.login` is a custom built Cypress command to deal with authentication" + loc: [2, 12], + title: "Setup Auth Token", + note: "Request Auth Token" }, { - loc: [6, 9], - title: "Open Modal", - note: "Assert that it's on the DOM" + loc: [12, 16], + title: "Setup Auth Token", + note: "Set Auth Token in Storage" }, { - loc: [10, 12], - title: "Select in Searchable Dropdown", - note: - "`cy.contains` allows you to search for element containing text" + loc: [18, 29], + title: "Get Permission Specific Auth Token", + note: "Each authorization level has its own service account." }, - { loc: [13, 16], title: "Do other things" }, { - loc: [17, 19], - title: "Finish Flow", - note: "Assert that dialog modal is no longer open." + loc: [32, 36], + title: "Invoke Login @ Start of Test" + }, + { + loc: [40, 44], + title: "Invoke Login @ Start of Test" + }, + { + loc: [48, 52], + title: "Invoke Login @ Start of Test" } ]} /> @@ -249,30 +253,20 @@ export default class Presentation extends React.Component { textColor="text" code={require("raw-loader!../assets/traffic.example").default} ranges={[ - { loc: [0, 2], title: "Cypress Example" }, + { loc: [0, 4], title: "Mocking API Return Values" }, { - loc: [2, 4], - title: "Setup", + loc: [5, 12], + title: "Mocking API Return Values", note: - "`cy.login` is a custom built Cypress command to deal with authentication" - }, - { - loc: [6, 9], - title: "Open Modal", - note: "Assert that it's on the DOM" + "Mock data for API to return" }, { - loc: [10, 12], - title: "Select in Searchable Dropdown", + loc: [14, 28], + title: "Set Up Response from URL", note: - "`cy.contains` allows you to search for element containing text" + "Mocking API Return Values" }, - { loc: [13, 16], title: "Do other things" }, - { - loc: [17, 19], - title: "Finish Flow", - note: "Assert that dialog modal is no longer open." - } + { loc: [29, 38], title: "Check DOM for Expected Behavior" } ]} /> diff --git a/presentation/slides/Closing.js b/presentation/slides/Closing.js index 5b0bb56..d89d723 100644 --- a/presentation/slides/Closing.js +++ b/presentation/slides/Closing.js @@ -33,49 +33,63 @@ export const Closing = () => ( Questions or Comments? - - The Hedgehogs - - - DL-TheHedgeHogs@corteva.com -
- - Dan Rocha - - - dan.rocha@corteva.com -
- - Michael Leners - - - michael.leners@corteva.com - + + cypress-retro.micleners.com +
- - cypress-review.micleners.com - - - github.com/micleners/cypress-review - + + github.com/micleners/cypress-retro +
+ +
+
+
+ + +
+ + Michael Leners + + +
+ {" "} + @micLeners +
+
+
+ +
+ + Hosted by + + +
+
); diff --git a/presentation/slides/Closing2.js b/presentation/slides/Closing2.js new file mode 100644 index 0000000..320551e --- /dev/null +++ b/presentation/slides/Closing2.js @@ -0,0 +1,82 @@ + +import React from "react"; +import { + themeColors, + H1Norm, + H1Col1, + H2, + FlexRowCenter, + ListItemIndent +} from "../helpers"; +import "../styles.css"; +import { + BlockQuote, + Cite, + Deck, + Heading, + Image, + List, + ListItem, + Notes, + Quote, + Slide, + Text, + Link +} from "spectacle"; + +const images = { + sai: require("../../assets/sai.png").default, + dsmjs: require("../../assets/dsmjs.png").default, + twitter: require("../../assets/twitter.png").default +}; + +export const Closing = () => ( + + Questions or Comments? + + + The Hedgehogs + + + DL-TheHedgeHogs@corteva.com + +
+ + Dan Rocha + + + dan.rocha@corteva.com + +
+ + Michael Leners + + + michael.leners@corteva.com + +
+ + + cypress-review.micleners.com + + + github.com/micleners/cypress-review + +
+
+);