Comments (7)
You use [ctrl-up]
to unpress it. Not sure about [caps]
, I can't get that one to work either. Will write a test for this.
from syn.
What is your use case for needing [caps]
by the way? If course if you want to type AAA
you can do that yourself, is there some other reason why Syn needs to control it?
from syn.
The test I added passes, showing that [ctrl]
works as expected.
from syn.
Hi, we are attempting to use FuncUnit to test our frontend and we are experiencing the same behaviour as the OP. I did not find what version of Syn is our FuncUnit using but our version of FuncUnit is not older than 3 weeks.
When I use:
var inputModuleTextArea = S(workflowsControl.getModuleTextarea()[0]); //just fetches the first input of specific class
inputModuleTextArea.type('[ctrl]a[ctrl-up][delete]'); //this deletes all text
inputModuleTextArea.type('Some sample text');
So far so good, but when I add next line:
inputModuleTextArea.type('[ctrl]z[ctrl-up]'); //our controller reacts to Ctrl+Z
it outputs this: Some sample textctrl
Other than that, typing [escape] instead of [ctrl]z[ctrl-up] also ends up like: Some sample textescape
We are already out of ideas. Has this been fixed or can you provide some solution or workaround if it hasn't, please?
from syn.
There is a problem in the file mouse.support.js - missing checkSupport function.
var syn = require('./synthetic');
require('./mouse');
if (!document.body) {
syn.schedule(function () {
checkSupport(syn);
}, 1);
} else {
window.__synthTest = function () {
syn.support.linkHrefJS = true;
};
In code is condition
syn.support.ready === 2
and this never occurs, because the scheduler is not able to invoke the code in the else branche. Solution is to encapsulate this code into the appropriate function:
if (!document.body) {
syn.schedule(function () {
checkSupport(syn);
}, 1);
} else {
checkSupport(syn);
}
function checkSupport(syn) {
window.__synthTest = function () {
syn.support.linkHrefJS = true;
};
This seems works for me. I will try to fix it.
from syn.
I am working on this issue.
from syn.
This will be resolved in 0.4.3 the fix is already submitted
from syn.
Related Issues (20)
- Version inconsistency? HOT 2
- Uncaught error when run in browser extension
- An in-range update of steal is breaking the build 🚨 HOT 2
- An in-range update of jshint is breaking the build 🚨 HOT 2
- An in-range update of steal-tools is breaking the build 🚨 HOT 4
- Add the “key” property to events HOT 1
- inconsistent syn downloads from github
- Syn 1.0
- Syn 1.0 - ESLint
- Syn 1.0 - Publish 1.0.0-pre.0 HOT 1
- Syn 1.0 - CI passing
- Syn 1.0 - Make sure it works in all browsers again HOT 1
- Syn 1.0 - Mocha & webpack setup
- Syn 1.0 - Jest setup
- Syn 1.0 - Finish API documentation
- Syn 1.0 - ESM build
- keyCode is not mapped correctly when capital character is given
- Syn::focus() dispatch some unwanted events, it closes popup HOT 1
- `syn.type()` with `[escape]` string does press escape, but also appends `escape` text HOT 1
- `syn.type()` with `[end]` does not support `input` tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syn.