fro Positive Findings from Year 2 of the Centers for Medicare & Medicaid Services’ Million Hearts® Cardiovascular Disease Risk Reduction Model By www.mathematica.org Published On :: Wed, 12 Feb 2020 19:35:00 Z Mathematica has released positive evaluation findings from Year 2 of the Million Hearts® model, just in time for American Heart Month this February. Full Article
fro Development of the Uncertainty Communication Checklist: A Patient-Centered Approach to Patient Discharge From the Emergency Department By www.mathematica.org Published On :: Tue, 25 Feb 2020 15:07:00 Z Clear communication with patients upon emergency department (ED) discharge is important for patient safety during the transition to outpatient care. Full Article
fro Coordinating Parenting Time and Child Support: Experiences and Lessons Learned from Three States (Issue Brief) By www.mathematica.org Published On :: Wed, 11 Mar 2020 14:37:00 Z This issue brief reports on how three states coordinate the establishment and enforcement of parenting time with child support establishment activities. Full Article
fro Putting Rigorous Evidence Within Reach: Lessons Learned from the New Heights Evaluation By www.mathematica.org Published On :: Tue, 24 Mar 2020 14:51:00 Z This article uses an evaluation of New Heights, a school-based program for pregnant and parenting teens in the District of Columbia Public Schools, to illustrate how maternal and child health programs can obtain rigorous evaluations at reasonable cost using extant administrative data. Full Article
fro Emerging Findings from the 2012-2017 National Cross-Site Evaluation of the Regional Partnership Grant (RPG) Program (Summary) By www.mathematica.org Published On :: Thu, 09 Apr 2020 18:29:14 Z This summary presents emerging findings from the national cross-site evaluation for the Regional Partnership Grant program. The program supports partnerships between providers of child welfare and social services to improve the well-being of children impacted by substance abuse. Full Article
fro COVID-19 Data Primer from Mathematica By www.mathematica.org Published On :: Thu, 16 Apr 2020 17:31:12 Z Mathematica continues to partner with our clients and groups like the National Association of Health Data Organizations (NAHDO) to respond to the evolving COVID-19 pandemic, particularly in the area of data analytics. Full Article
fro The outlaw ocean: journeys across the last untamed frontier / Ian Urbina By library.mit.edu Published On :: Sun, 22 Dec 2019 07:46:07 EST Barker Library - SH319.A2 U73 2019 Full Article
fro Wild at heart: America's turbulent relationship with nature, from exploitation to redemption / Alice Outwater By library.mit.edu Published On :: Sun, 23 Feb 2020 09:06:07 EST Rotch Library - GF75.O87 2019 Full Article
fro Green heroes: from Buddha to Leonardo DiCaprio / László Erdős By library.mit.edu Published On :: Sun, 23 Feb 2020 09:06:07 EST Online Resource Full Article
fro Volcanoes & wine: from Pompeii to Napa / Charles Frankel By library.mit.edu Published On :: Sun, 8 Mar 2020 07:47:17 EDT Dewey Library - SB387.7.F73 2019 Full Article
fro The imperiled ocean: human stories from a changing sea / Laura Trethewey By library.mit.edu Published On :: Sun, 5 Apr 2020 07:26:29 EDT Dewey Library - QH541.5.S3 T74 2019 Full Article
fro Forests and sustainable cities: inspiring stories from around the world. By library.mit.edu Published On :: Sun, 12 Apr 2020 09:09:06 EDT Rotch Library - SD131.F677 2018 Full Article
fro Ocean outbreak: confronting the rising tide of marine disease / Drew Harvell By library.mit.edu Published On :: Sun, 26 Apr 2020 08:31:05 EDT Hayden Library - QH541.5.S3 H37 2019 Full Article
fro Pushing our limits: insights from Biosphere 2 / Mark Nelson By library.mit.edu Published On :: Sun, 26 Apr 2020 08:31:05 EDT Hayden Library - QH541.27.N45 2018 Full Article
fro Garden variety: the American tomato from corporate to heirloom / John M. Hoenig By library.mit.edu Published On :: Sun, 26 Apr 2020 08:31:05 EDT Hayden Library - SB349.H64 2018 Full Article
fro Insect sex pheromone research and beyond: from molecules to robots / Yukio Ishikawa, editor By library.mit.edu Published On :: Sun, 26 Apr 2020 08:31:05 EDT Online Resource Full Article
fro The Relation Between Large-Scale Land Acquisitions and Rural Households: Evidence from Ethiopia and Tanzania / Giulia Barbanente By library.mit.edu Published On :: Sun, 3 May 2020 09:41:51 EDT Online Resource Full Article
fro New frontiers in stress management for durable agriculture Amitava Rakshit, Harikesh Bahadur Singh, Anand Kumar Singh, Uma Shankar Singh, Leonardo Fraceto, editors By library.mit.edu Published On :: Sun, 3 May 2020 09:41:51 EDT Online Resource Full Article
fro Inverse leidenfrost drop manipulation using menisci By feeds.rsc.org Published On :: Soft Matter, 2020, 16,4043-4048DOI: 10.1039/C9SM02363A, PaperAnaïs Gauthier, Guillaume Lajoinie, Jacco H. Snoeijer, Devaraj van der MeerThe motion of droplets levitated above a liquid surface is controlled using the menisci rising against partially immersed walls.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Detachment work of prolate spheroidal particles from fluid droplets: role of viscous dissipation By feeds.rsc.org Published On :: Soft Matter, 2020, 16,4049-4056DOI: 10.1039/C9SM02385B, PaperSergey V. Lishchuk, Rammile EttelaieThe minimum possible work done upon removal of an elongated solid particle from the surface of a liquid droplet can be less than that for a sphere.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Assessing the Extent of Structural and Dynamic Modulation of Membrane Lipids due to Pore Forming Toxins: Insights from Molecular Dynamics Simulations By feeds.rsc.org Published On :: Soft Matter, 2020, Accepted ManuscriptDOI: 10.1039/D0SM00086H, PaperVadhana Varadarajan, Rajat Desikan, Ganapathy AyappaInfections in many virulent bacterial strains are triggered by the release of pore forming toxins (PFTs), which form oligomeric transmembrane pore complexes on the target plasma membrane. The spatial extent...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Liquid marbles from soot films By feeds.rsc.org Published On :: Soft Matter, 2020, Advance ArticleDOI: 10.1039/C9SM02199J, PaperXiaoguang Li, Haixiao Shi, Yiqi Wang, Hanming Wang, Junchao Huang, Mei DuanMechanically-weak superhydrophobic soot films are suitable for liquid marble production.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Review and reproducibility of forming adsorbed layers from solvent washing of melt annealed films By feeds.rsc.org Published On :: Soft Matter, 2020, Advance ArticleDOI: 10.1039/D0SM00565G, PaperMichael F. Thees, Jennifer A. McGuire, Connie B. RothEfforts to reproduce the “Guiselin’s experiment” procedure finds hads(t) curves to be far less reliable than implied in the literature, being strongly dependent on solvent washing conditions, consistent with how adsorption in solution is understood.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Effects of Eigen and Actual Frequencies of Soft Elastic Surfaces on droplet Rebound from Stationary Flexible Feather Vanes By feeds.rsc.org Published On :: Soft Matter, 2020, Accepted ManuscriptDOI: 10.1039/D0SM00315H, PaperChengchun Zhang, Zhengyang Wu, Chun Shen, Yihua Zheng, LIANG YANG, Yan Liu, Luquan RenThe aim of this paper is to investigate the effect of eigenfrequency and the actual frequency of the elastic surface for the droplet rebound. The elastic surface used in this...The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Characterizing the fluid–matrix affinity in an organogel from the growth dynamics of oil stains on blotting paper By feeds.rsc.org Published On :: Soft Matter, 2020, 16,4200-4209DOI: 10.1039/C9SM01965K, Paper Open Access   This article is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported Licence.Qierui Zhang, Frieder Mugele, Piet M. Lugt, Dirk van den EndeFluid–matrix affinity in an organogel is characterized by capillarity-induced oil release using absorbing paper.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Ionic effects on synthetic polymers: from solutions to brushes and gels By feeds.rsc.org Published On :: Soft Matter, 2020, 16,4087-4104DOI: 10.1039/D0SM00199F, Review ArticleHaiyang Yuan, Guangming LiuIn this review, the polymer solutions, brushes, and gels are employed to exemplify the ionic effects on synthetic polymers.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro Controlled release of entrapped nanoparticles from thermoresponsive hydrogels with tunable network characteristics By feeds.rsc.org Published On :: Soft Matter, 2020, Advance ArticleDOI: 10.1039/D0SM00207K, PaperYi Wang, Zhen Li, Jie Ouyang, George Em KarniadakisThermoresponsive hydrogels have been studied intensively for creating smart drug carriers and controlled drug delivery.To cite this article before page numbers are assigned, use the DOI form of citation above.The content of this RSS Feed (c) The Royal Society of Chemistry Full Article
fro From privacy to trust and ROI By blogs.cisco.com Published On :: Mon, 27 Jan 2020 08:00:00 PST Insights from the Cisco Data Privacy Research Program More RSS Feed for Cisco: newsroom.cisco.com/rss-feeds ... Full Article Security
fro Sand lorry owners seek exemption from quarterly tax payment By www.thehindu.com Published On :: Fri, 08 May 2020 21:42:35 +0530 Most lorries were not operated during the lockdown which resulted in loss, they say Full Article Tamil Nadu
fro [ASAP] Monochromatic X-ray Source Based on Scattering from a Magnetic Nanoundulator By dx.doi.org Published On :: Tue, 07 Apr 2020 04:00:00 GMT ACS PhotonicsDOI: 10.1021/acsphotonics.0c00121 Full Article
fro [ASAP] White Light Emission from a Zero-Dimensional Lead Chloride Hybrid Material By dx.doi.org Published On :: Thu, 09 Apr 2020 04:00:00 GMT ACS PhotonicsDOI: 10.1021/acsphotonics.9b01817 Full Article
fro [ASAP] Directional off-Normal Photon Streaming from Hybrid Plasmon-Emitter Coupled Metasurfaces By dx.doi.org Published On :: Fri, 17 Apr 2020 04:00:00 GMT ACS PhotonicsDOI: 10.1021/acsphotonics.0c00196 Full Article
fro Twelve Days of Front End Testing By feedproxy.google.com Published On :: Mon, 02 Dec 2019 12:00:00 +0000 Amy Kapernick sings us through numerous ways of improving the robustness and reliability of our front end code with a comprehensive rundown of ideas, tools, and resources. The girls and boys won’t get any toys until all the tests are passing. Anyone who’s spoken to me at some point in November may get the impression that I’m a bit of a grinch. But don’t get me wrong, I love Christmas, I love decorating my tree, singing carols, and doing Christmas cooking - in December. So for me to willingly be humming the 12 days of Christmas in October, it’s probably for something that I think is even more important than banning premature Christmas decorations, like front end testing. On the 12th day of Christmas, my front end dev, she gave to me, 12 testing tools, 11 optimised images, 10 linting rules, 9 semantic headings, 8 types of colour blindness, 7(.0) contrast ratio, 6 front end tests, 5 browser types, 4 types of tests, 3 shaken trees, 2 image types, and a source controlled deployment pipeline. Twelve Testing Tools axe does automated accessibility testing. Run as part of your development build, it outputs warnings to your console to let you know what changes you need to make (referencing accessibility guides). You can also specify particular accessibility standard levels that you’d like to test against, eg. best-practice, wcag2a or wcag2aa, or you can pick and choose individual rules that you want to check for (full list of rules you can test with axe). aXe Core can be used to automate accessibility testing, and has a range of extensions for different programming languages and frameworks. BackstopJS runs visual regression tests on your website. Run separately, or as part of your deployment/PR process, you can use it to make sure your code changes aren’t bleeding into other areas of the website. By default, BackstopJS will set you up with a bunch of configuration options by running backstop init in your project to help get you started. BackstopJS compares screenshots of your website to previous screenshots and compares the visual differences to see what’s changed. Website Speed Test analyses the performance of your website specifically with respect to images, and the potential size savings if they were optimised. Calibre runs several different types of tests by leveraging Lighthouse. You can run it over your live website through their web app or through the command line, it then monitors your website for performance and accessibility over time, providing metrics and notifications of any changes. Calibre provides an easy to use interface and dashboard to test and monitor your website for performance, accessibility and several other areas. Cypress is for end-to-end testing of your website. When visual regression testing may be a bit much for you, Cypress can help you test and make sure elements are still on the page and visible (even if they’re not pixel for pixel where they were last time). pa11y is for automated accessibility testing. Run as part of your build process or using their CLI or dashboard, it tests your website against various Web Content Accessibility Guidelines (WCAG) criteria (including visual tests like colour contrast). While axe is run as part of your dev build and gives you an output to the console, it can be combined with pa11y to automate any changes as part of your build process. whocanuse was created by Corey Ginnivan, and it allows you to view colour combinations as those with colour blindness would (as well as testing other visual deficiencies, and situational vision events), and test the colour contrast ratio based on those colours. Colour contrast assessment of my brand colours, testing them for issues for people with various vision deficiencies, and situational vision events. Colour Blindness Emulation was created by Kyo Nagashima as an SVG filter to emulate the different types of colour blindness, or if you’re using Gatsby, you can use a plugin based off of gatsby-plugin-colorblind-filters. Accessible Brand Colors tests all your branding colours against each other (this is great to show designers what combinations they can safely use). Accessible Brand Colors tests all colour combinations of background and text colours available from your branding colours, and checks them for compliance levels at various font sizes and weights. Browser dev tools - Most of the modern browsers have been working hard on the features available in their dev tools: Firefox: Accessibility Inspector, Contrast Ratio testing, Performance monitoring. Chromium: (Chrome, Edge Beta, Brave, Vivaldi, Opera, etc) - Accessibility Inspector, Contrast Ratio testing, Performance Monitoring, Lighthouse Audits (testing performance, best practices, accessibility and more). Edge: Accessibility Inspector, Performance monitoring. Safari: Accessibility Inspector, Performance monitoring. Firefox (left), Chrome, and Edge Beta (right) Dev Tools now analyse contrast ratios in the colour picker. The Chromium-based browsers also show curves on the colour picker to let you know which shades would meet the contrast requirements. Linc is a continuous delivery platform that makes testing the front end easier by automatically deploying a version of your website for every commit on every branch. One of the biggest hurdles when testing the front end is needing a live version of the site to view and test against. Linc makes sure you always have one. ESLint and Stylelint check your code for programmatic and stylistic errors, as well as helping keep formatting standard on projects with multiple developers. Adding a linter to your project not only helps you write better code, it can reduce simple errors that might be found during testing time. If you’re not writing JavaScript, there are plenty of alternatives for whatever language you’re writing in. If you’re trying to run eslint in VS Code, make sure you don’t have the Beautify extension installed, as that will break things. Eleven Optimised Images When it comes to performance, images are where we take the biggest hit, with images accounting for over 50% of total transfer size for websites. Many websites are serving excessively large images “just in case”, but there’s actually a native HTML element that allows us to serve different image sizes based on the screen size or serve better image formats when the browser supports it (or both). <!-- Serving different images based on the width of the screen --> <picture> <source srcset="/img/banner_desktop.jpg" media="(min-width: 1200px)" /> <source srcset="/img/banner_tablet.jpg" media="(min-width: 700px)" /> <source srcset="/img/banner_mobile.jpg" media="(min-width: 300px)" /> <img src="/img/banner_fallback.jpg"> </picture> <!-- Serving different image formats based on browser compatibility --> <picture> <source srcset="/banner.webp" type="image/webp" /> <img src="/img/banner_fallback.jpg"> </picture> Ten Linting Rules A year ago, I didn’t use linting. It was mostly just me working on projects, and I can code properly right? But these days it’s one of the first things I add to a project as it saves me so much time (and has taught me a few things about JavaScript). Linting is a very personal choice, but there are plenty of customisations to make sure it’s doing what you want, and it’s available in a wide variety of languages (including linting for styling). // .eslintrc module.exports = { rules: { 'no-var': 'error', 'no-unused-vars': 1, 'arrow-spacing': ['error', { before: true, after: true }], indent: ['error', 'tab'], 'comma-dangle': ['error', 'always'], // standard plugin - options 'standard/object-curly-even-spacing': ['error', 'either'], 'standard/array-bracket-even-spacing': ['error', 'either'], }, } // .stylelintrc { "rules": { "color-no-invalid-hex": true, "indentation": [ "tab", { "except": [ "value" ] } ], "max-empty-lines": 2, } } Nine Semantic Headings No, I’m not saying you should use 9 levels of headings, but your webpage should have an appropriate number of semantic headings. When your users are accessing your webpage with a screen reader, they rely on landmarks like headings to tell them about the page. Similarly to how we would scan a page visually, screen readers give users a list of all headings on a page to allow them to scan through the sections and access the information faster. When there aren’t any headings on a page (or headings are being used for their formatting rather than their semantic meaning), it makes it more difficult for anyone using a screen reader to understand and navigate the page. Make sure that you don’t skip heading levels on your page, and remember, you can always change the formatting on a p tag if you need to have something that looks like a heading but isn’t one. <h1>Heading 1 - Page Title</h2> <p>Traditionally you'll only see one h1 per page as it's the main page title</p> <h2>Heading 2</h2> <p>h2 helps to define other sections within the page. h2 must follow h1, but you can also have h2 following another h2.</p> <h3>Heading 3</h3> <p>h3 is a sub-section of h2 and follows similar rules to h2. You can have a h3 after h3, but you can't go from h1 to h3.</p> <h4>Heading 4</h4> <p>h4 is a sub-section of h3. You get the pattern?</p> Eight Types of Colour Blindness Testing colour contrast may not always be enough, as everyone perceives colour differently. Take the below colour combination (ignoring the fact that it doesn’t actually look nice). It has decent colour contrast and would meet the WCAG colour contrast requirements for AA standards – but what if one of your users was red-green colour blind? Would they be able to tell the difference? http://colorsafe.co/ empowers designers with beautiful and accessible colour palettes based on WCAG Guidelines of text and background contrast ratios. Red-green colour blindness is the most common form of colour blindness, but there are 8 different types affecting different parts of the colour spectrum, all the way up to complete colour blindness. Protanopia Inability to see red end of the colour spectrum. Protanomaly Difficulty seeing some shades of red. Deuteranopia Inability to see the green portion of the colour spectrum. Deuteranomaly Difficulty seeing some shades of green. Tritanopia Inability to see blue end of the colour spectrum. Tritanomaly Difficulty seeing some shades of blue. Achromatopsia Inability to see all parts of the colour spectrum, only able to perceive black, white and shades of grey. Achromatomaly Difficulty seeing all parts of the colour spectrum. Seven (.0) Contrast Ratio Sufficient colour contrast is perhaps one of the best steps to take for accessibility, as it benefits everyone. Having adequate contrast doesn’t just make the experience better for those with vision impairments, but it also helps those with situational impairments. Have you ever been in the sun and tried to read something on your screen? Whether you can view something when there’s glare could be as easy as making sure there’s enough contrast between the text and its background colour. The WCAG have defined a contrast ratio of at least 4.5:1 for normal text (18.5px) and 3:1 for large text (24px) to meet AA accessibility standards, but this should be an absolute minimum and isn’t always readable. All four below examples have sufficient contrast to pass AA standards, but you might be hard pressed to read them when there’s glare or you have a dodgy monitor (even more so considering most websites use below 18.5px for their base font size). Examples of 4.5:1 colour contrast To meet the AAA standard you need to have a ratio of 7:1 for normal text and 4.5:1 for large text, which should be sufficient for those with 20/80 vision to read. Six Front End Tests Adding default axe-core testing to Gatsby: //gatsby-config.js { resolve: 'gatsby-plugin-react-axe', options: {}, }, Running pa11y tests on homepage at various screen sizes: // tests/basic-a11y_home.js const pa11y = require('pa11y'), fs = require('file-system') runTest() async function runTest() { try { const results = await Promise.all([ pa11y('http://localhost:8000', { standard: 'WCAG2AA', actions: [], screenCapture: `${__dirname}/results/basic-a11y_home_mobile.png`, viewport: { width: 320, height: 480, deviceScaleFactor: 2, isMobile: true, }, }), pa11y('http://localhost:8000', { standard: 'WCAG2AA', actions: [], screenCapture: `${__dirname}/results/basic-a11y_home_desktop.png`, viewport: { width: 1280, height: 1024, deviceScaleFactor: 1, isMobile: false, }, }), ]) fs.writeFile('tests/results/basic-a11y_home.json', JSON.stringify(results), err => { console.log(err) }) } catch (err) { console.error(err.message) } } Running pa11y tests on a blog post template at various screen sizes: // tests/basic-a11y_post.js const pa11y = require('pa11y'), fs = require('file-system') runTest() async function runTest() { try { const results = await Promise.all([ pa11y('http://localhost:8000/template', { standard: 'WCAG2AA', actions: [], screenCapture: `${__dirname}/results/basic-a11y_post_mobile.png`, viewport: { width: 320, height: 480, deviceScaleFactor: 2, isMobile: true, }, }), pa11y('http://localhost:8000/template', { standard: 'WCAG2AA', actions: [], screenCapture: `${__dirname}/results/basic-a11y_post_desktop.png`, viewport: { width: 1280, height: 1024, deviceScaleFactor: 1, isMobile: false, }, }), ]) fs.writeFile('tests/results/basic-a11y_post.json', JSON.stringify(results), err => { console.log(err) }) } catch (err) { console.error(err.message) } } Running BackstopJS on a homepage and blog post template at various screen sizes: // backstop.json { "id": "backstop_default", "viewports": [ { "label": "phone", "width": 320, "height": 480 }, { "label": "tablet", "width": 1024, "height": 768 }, { "label": "desktop", "width": 1280, "height": 1024 } ], "onBeforeScript": "puppet/onBefore.js", "onReadyScript": "puppet/onReady.js", "scenarios": [ { "label": "Blog Homepage", "url": "http://localhost:8000", "delay": 2000, "postInteractionWait": 0, "expect": 0, "misMatchThreshold": 1, "requireSameDimensions": true }, { "label": "Blog Post", "url": "http://localhost:8000/template", "delay": 2000, "postInteractionWait": 0, "expect": 0, "misMatchThreshold": 1, "requireSameDimensions": true } ], "paths": { "bitmaps_reference": "backstop_data/bitmaps_reference", "bitmaps_test": "backstop_data/bitmaps_test", "engine_scripts": "backstop_data/engine_scripts", "html_report": "backstop_data/html_report", "ci_report": "backstop_data/ci_report" }, "report": [ "browser" ], "engine": "puppeteer", "engineOptions": { "args": [ "--no-sandbox" ] }, "asyncCaptureLimit": 5, "asyncCompareLimit": 50, "debug": false, "debugWindow": false } Running Cypress tests on the homepage: // cypress/integration/basic-test_home.js describe('Blog Homepage', () => { beforeEach(() => { cy.visit('http://localhost:8000') }) it('contains "Amy Goes to Perth" in the title', () => { cy.title().should('contain', 'Amy Goes to Perth') }) it('contains posts in feed', () => { cy.get('.article-feed').find('article') }) it('all posts contain title', () => { cy.get('.article-feed') .find('article') .get('h2') }) }) Running Cypress tests on a blog post template at various screen sizes: // cypress/integration/basic-test_post.js describe('Blog Post Template', () => { beforeEach(() => { cy.visit('http://localhost:8000/template') }) it('contains "Amy Goes to Perth" in the title', () => { cy.title().should('contain', 'Amy Goes to Perth') }) it('has visible post title', () => { cy.get('h1').should('be.visible') }) it('has share icons', () => { cy.get('.share-icons a').should('be.visible') }) it('has working share icons', () => { cy.get('.share-icons a').click({ multiple: true }) }) it('has a visible author profile image', () => { cy.get('.author img').should('be.visible') }) }) describe('Mobile Blog Post Template', () => { beforeEach(() => { cy.viewport('samsung-s10') cy.visit('http://localhost:8000/template') }) it('contains "Amy Goes to Perth" in the title', () => { cy.title().should('contain', 'Amy Goes to Perth') }) it('has visible post title', () => { cy.get('h1').should('be.visible') }) it('has share icons', () => { cy.get('.share-icons .share-link').should('be.visible') }) it('has a visible author profile image', () => { cy.get('.author img').should('be.visible') }) }) Five Browser Types Browser testing may be the bane of our existence, but it’s gotten easier, especially when you know the secret: Not every browser needs to look the same. Now, this may differ depending on your circumstances, but your website doesn’t have to match pixel for pixel across all browsers. As long as it’s on-brand and is useable across all browsers (this is where a good solid HTML foundation is useful), it’s ok for your site to look a little different between browsers. While the browsers you test in will differ depending on your user base, the main ones you want to be covering are: Chrome/Chromium Firefox Safari Internet Explorer Edge Make sure you’re testing these browsers on both desktop and mobile/tablet as well, sometimes their level of support or rendering engine will differ between devices – for example, iOS Chrome uses the Safari rendering engine, so something that works on Android Chrome may not work on iOS Chrome. Four Types of Test When it comes to testing the front end, there are a few different areas that we can cover: Accessibility Testing: doing accessibility testing properly usually involves getting an expert to run through your website, but there are several automated tests that you can run against various standard levels. Performance Testing: performance testing does technically bleed into the back end as well, but there are plenty of things that can be done from a front end perspective. Making sure the images are optimised, our code is clean and minified, and even optimising fonts using features like the font-display property. No amount of optimising the server and back end will matter if it takes forever for the front end to appear in a browser. Visual Regression Testing: we’ve all been in the position where changing one line of CSS somewhere has affected another section of the website. Visual regression testing helps prevent that. By using a tool that compares before and after screenshots against one another to flag up what’s changed, you can be sure that style changes won’t bleed into unintended areas of the site. Browser/device testing: while we all want our users to be running the most recent version of Chrome or Firefox, they may still be using the inbuilt browser on their DVD player – so we need to test various browsers, platforms and devices to make sure that our website can be accessed on whatever device they use. Three Shaken Trees Including (and therefore requiring your users to download) things that you’re not using affects the performance of your application. Are you forcing them to download the entire lodash library when you’re only using 2 functions? While a couple of unused lines of code may not seem like a huge performance hit, it can greatly affect users with slower devices or internet connections, as well as cluttering up your code with unused functions and dependencies. This can be set up on your bundler – Webpack and Parcel both have guides for tree shaking, and Gatsby has a plugin to enable it. Two Image Types While there are several different types of images, most of the time they fall into one of two categories: Informative The image represents/conveys important information that isn’t conveyed by the content surrounding it. Decorative The image only adds visual decoration to a page. From these two categories, we can then determine if we need to provide alternative text for an image. If an image is purely decorative, then we add alt="" to let screen readers know that it’s not important. But if an image is informative, then we need to be supplying a text alternative that describes the picture for anyone who’s using a screen reader or isn’t able to see the image (remember the days when a standard internet connection took a long time to load a page and you saw alt text before an image loaded). <img src="./nice-picture.jpg" alt="" /> <img src="./important-graphic.png" alt="This is a picture of something important to help add meaning to the text around me" /> If you have a lot of images with missing alt text, look into services that can auto-generate alt text based on image recognition services. One Source Controlled Deployment Pipeline While front end tests are harder to automate, running them through a source control and deployment pipeline helps track changes and eliminates issues where “it works on my computer”. Whether you’re running tests as part of the PR process, or simply against every commit that comes through, running tests automatically as part of your process makes every developer’s life easier and helps keep code quality at a high standard. We already knew that testing was important, and your project can’t be run unless all your unit and integration tests are written (and pass), but often we forget about testing the front end. There are so many different tests we need to be running on the front end, it’s hard to work out what your need to test for and where to start. Hopefully this has given you a bit of insight to front end testing, and some Christmas cheer to take you into the holidays. About the author Amy wears many hats as a freelance developer, business owner and conference addict. She regularly shares her knowledge with her peers and the next generation of developers by mentoring, coaching, teaching and feeding into the tech community in many ways. Amy can be found volunteering her time with Fenders, ACS, SheCodes (formerly Perth Web Girls) and MusesJS (formerly NodeGirls). She also works as an evangelist for YOW! Conferences, is a Twilio Champion and has been nominated for the WiTWA awards for the last 2 years. In her spare time Amy shares her knowledge and experience on her blogs and speaking at conferences. She has previously given keynotes at multiple events as well as speaking at several international conferences in the US and Europe. More articles by Amy Full Article Code testing
fro Addiction debates : hot topics from policy to practice / Catherine Comiskey. By darius.uleth.ca Published On :: Thousand Oaks : SAGE Publishing, 2019 Full Article
fro The effects of e-cigarette taxes on e-cigarette prices and tobacco product sales [electronic resource] : evidence from retail panel data / Chad D. Cotti, Charles J. Courtemanche, Johanna Catherine Maclean, Erik T. Nesson, Michael F. Pesko, Nathan Tefft By darius.uleth.ca Published On :: Cambridge, Mass. : National Bureau of Economic Research, 2020 Full Article
fro America's use of terror: from Colonial times to the A-bomb / Stephen Huggins By library.mit.edu Published On :: Sun, 12 Apr 2020 09:49:18 EDT Dewey Library - HV6432.H8244 2019 Full Article
fro Stalin and Mao: a comparison of the Russian and Chinese revolutions / by Lucien Bianco ; translated from the French edition La récidive: Révolution russe, révolution chinoise by Krystyna Horko By library.mit.edu Published On :: Sun, 19 Apr 2020 10:15:39 EDT Dewey Library - HX550.R48 B5213 2018 Full Article
fro A place outside the law: forgotten voices from Guantanamo / Peter Jan Honigsberg By library.mit.edu Published On :: Sun, 26 Apr 2020 09:04:30 EDT Dewey Library - HV6432.H67 2019 Full Article
fro Strategy, evolution, and war: from apes to artificial intelligence / Kenneth Payne By library.mit.edu Published On :: Sun, 26 Apr 2020 09:04:30 EDT Dewey Library - U162.P39 2018 Full Article
fro Responsible parties: saving democracy from itself / Frances McCall Rosenbluth and Ian Shapiro By library.mit.edu Published On :: Sun, 26 Apr 2020 09:04:30 EDT Dewey Library - JF2051.R67 2018 Full Article
fro Yolqui, a warrior summoned from the spirit world: testimonios on violence / Roberto Cintli Rodríguez ; foreword by Patrisia Gonzales By library.mit.edu Published On :: Sun, 26 Apr 2020 09:04:30 EDT Dewey Library - HV8141.R63 2019 Full Article
fro Muzaffarnagar Violence: Two former MLAs resign from SP By archive.indianexpress.com Published On :: Sat, 21 Sep 2013 10:07:57 GMT Father-son duo said the administration could have stopped the Muzaffarnagar riots. Full Article
fro After Bhopal, BJP to charge Rs 10 from its workers for Modi's Bangalore rally By archive.indianexpress.com Published On :: Sun, 22 Sep 2013 11:33:06 GMT Earlier BJP party workers were charged Rs 5 for attending Modi's Bhopal rally. Full Article
fro Navjot Singh Sidhu to begin fast-unto-death from Saturday By archive.indianexpress.com Published On :: Fri, 27 Sep 2013 16:44:47 GMT "My duty towards Amritsar would never be stopped" Full Article
fro Sidhu calls off fast-unto-death over funds for Amritsar after an assurance from Badal By archive.indianexpress.com Published On :: Sat, 28 Sep 2013 09:37:58 GMT Meanwhile, the opposition charged Sidhu with spending too much time on TV and cricket commentary. Full Article
fro Lokayukta court seeks reply soon from IAS couple in DA case By archive.indianexpress.com Published On :: Sun, 29 Sep 2013 09:19:58 GMT Court direction after Lokayukta counsel pleaded that the couple was deliberately delaying the case. Full Article
fro After 16 yrs, over 80 Bru families return to Mizoram from Tripura relief camps By archive.indianexpress.com Published On :: Mon, 30 Sep 2013 19:20:20 GMT Chorky, along with other Bru leaders and Mizoram officials welcomed the families at Kanhmun. Full Article
fro Seven suspected SIMI operatives flee from MP jail with rifles By archive.indianexpress.com Published On :: Tue, 01 Oct 2013 05:02:37 GMT The prisoners were successful in fleeing after stabbing two security guards. Full Article
fro Pakistan Army denies infiltration attempts from across the LoC By archive.indianexpress.com Published On :: Thu, 03 Oct 2013 07:50:20 GMT Analysis of this infiltration bid indicated the involvement of Pak Border Action Team. Full Article
fro Telangana turmoil: Chandrababu Naidu evicted from fast venue in Delhi By archive.indianexpress.com Published On :: Fri, 11 Oct 2013 10:18:46 GMT Naidu had begun his indefinite fast on Monday in protest against the Andhra bifurcation. Full Article