
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@trendyol/baklava-cypress-plugin
Advanced tools
This Cypress plugin is designed to test the open-source UI library used in our company. The plugin includes customized Cypress commands to facilitate testing of some commonly used UI elements. Below are examples of how to use this plugin.
Make sure you have added Cypress to your project. If you haven't added it yet, you can follow the Cypress Installation guide.
Use the following command to add this plugin to your project:
npm i --save @trendyol/baklava-cypress-plugin
Create a test file in your Cypress project and start using this plugin.
To add Cypress commands to the commands.js
file, you can do the following. You can find this file in the support
folder of your Cypress project. If there is no commands.js
file, you should create one.
Open the commands.js
file and add the following commands:
// Contains general commands for the plugin.
import '@trendyol/baklava-cypress-plugin/src/baklava/general.command';
// Adds necessary commands for Button.
import '@trendyol/baklava-cypress-plugin/src/baklava/bl-button.command';
// Adds necessary commands for Input.
import '@trendyol/baklava-cypress-plugin/src/baklava/bl-input.command';
// If you want to add more commands, you can do so here.
This code will import the necessary Cypress commands into the commands.js
file. This way, you can use these commands in all your test files. If you need to add other commands like bl-select
, bl-checkbox
, bl-switch
, etc., you can import them in a similar way.
Below are some examples of using this plugin. Each example focuses on testing a specific UI element.
cy.blButton("baklava-button")
.kind("primary")
.variant("primary")
.icon("search")
.isDisabled(false)
.contains("Baklava")
.click();
cy.blInput("baklava-input")
.type("Baklava")
.placeholder("Enter Your Password")
.helpText("Password must be at least 8 characters")
.icon("lock")
.label("Password")
.should("have.value", "Baklava")
.isDisabled(false)
.clear();
Similar tests can be created for other UI elements. There is a separate Cypress command for each feature.
cy.blSelect()
cy.blCheckbox()
cy.blSwitch()
cy.blTextarea()
cy.blAlert()
cy.blBadge()
cy.blIcon()
Each is designed to test a specific UI element, and you can interact with these elements using Cypress commands. For more information, it is useful to review the documentation of the plugin.
If you want to improve or fix bugs in this plugin, please contribute via GitHub repository. Pull requests and issue reports are always welcome.
This plugin is open source and distributed under the MIT License.
FAQs
baklava cypress plugin
We found that @trendyol/baklava-cypress-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.