cypress-emulate-media

所属分类:图形图像处理
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2024-02-22 18:04:04
上 传 者sh-1993
说明:  显示如何从柏树测试中设置首选颜色方案的示例
(Example showing how to set prefers-color-scheme from a Cypress test)

文件列表:
cypress/
images/
public/
.prettierrc.json
cypress.config.js
jsconfig.json
package-lock.json
package.json

# cypress-emulate-media ![cypress version](https://img.shields.io/badge/cypress-10.3.1-brightgreen) [![ci](https://github.com/bahmutov/cypress-emulate-media/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/bahmutov/cypress-emulate-media/actions/workflows/ci.yml) Read the blog post [Emulate Media In Cypress Tests](https://glebbahmutov.com/blog/cypress-emulate-media/) ![Test prefers the dark theme](./images/dark.cy.png) ## Small print Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2022 - [@bahmutov](https://twitter.com/bahmutov) - [glebbahmutov.com](https://glebbahmutov.com) - [blog](https://glebbahmutov.com/blog) - [videos](https://www.youtube.com/glebbahmutov) - [presentations](https://slides.com/bahmutov) - [cypress.tips](https://cypress.tips) - [Cypress Tips & Tricks Newsletter](https://cypresstips.substack.com/) - [my Cypress courses](https://cypress.tips/courses) License: MIT - do anything with the code, but don't blame me if it does not work. Support: if you find any problems with this module, email / tweet / [open issue](https://github.com/bahmutov/cypress-emulate-media/issues) on Github ## MIT License Copyright (c) 2022 Gleb Bahmutov <gleb.bahmutov@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

近期下载者

相关文件


收藏者