onthespotqa / cypress-macros Goto Github PK
View Code? Open in Web Editor NEWadding macros to cypress gherkin plugin
License: MIT License
adding macros to cypress gherkin plugin
License: MIT License
Cypress will error if I use {@bogus} variable name, and macros will error if I use a {$bogus} macro variable. Nobody cares if I ask for {@real.bogus} or {$real.bogus}; they evaluate to undefined.
Guard our use of lodash/get
and raise an error if we get something that's undefined; the implication is that if we're using it in a macro, it should have some value.
We need a way to register new $foo
variables. Some decisions to make:
It's got issues with Cypress 4.x and needs to go away. (evalMacros
does just as good a job these days anyway.)
So we can be all official and have the siny ci badge.
a) Module-scope vars can be double initialized (etc) if modules are required multiple times (e.g. during tests).
b) No support for variables that are a simple scalar.
c) Improper use of chai be
causes false green tests.
d) Tests mix sync/async code with no synchronization; will always be red.
cy.evalMacros([fund, investor], { force: true, raw: true }).then(
([fundObj, investorObj]) => {
const params = {
name: fixture,
type,
fund: bodyRef(fundObj),
investor: bodyRef(investorObj),
};
bindDocument(key, fixture, params);
}
);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.