import { suite, test } from 'intern/lib/interfaces/tdd';
suite('functional', () => {
test('find link', test => {
return test.remote
.setFindTimeout(5000)
.get('/tests/functional/page.html')
.moveMouseTo(50, 50)
.clickMouseButton()
.moveMouseTo(100, 100)
.clickMouseButton(2)
.sleep(5000);
});
});
When running this test in both Chrome and FF, both clicks register as a left click, creating green boxes in the document area. When serving the page from a static server and using actual mouse clicks, left clicks produce green boxes and right clicks produce red boxes.
The necessary pieces to resolve this will likely be added in #1027.
Consider the following test case:
In
tests/page.html
:In
tests/hello.ts
:When running this test in both Chrome and FF, both clicks register as a left click, creating green boxes in the document area. When serving the page from a static server and using actual mouse clicks, left clicks produce green boxes and right clicks produce red boxes.
The necessary pieces to resolve this will likely be added in #1027.