UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

51 lines (36 loc) 1.04 kB
/* Siesta 5.6.1 Copyright(c) 2009-2022 Bryntum AB https://bryntum.com/contact https://bryntum.com/products/siesta/license */ /** @class Siesta.Test.Action.Tap @extends Siesta.Test.Action @mixin Siesta.Test.Action.Role.HasTarget This action can be included in the `t.chain` call with "tap" shortcut: t.chain( { action : 'tap', target : someDOMElement }, // or { tap : someDOMElement } ) This action will perform a {@link Siesta.Test.Browser#tap tap} on the provided {@link #target}. */ Class('Siesta.Test.Action.Tap', { isa : Siesta.Test.Action, does : Siesta.Test.Action.Role.HasTarget, has : { requiredTestMethod : 'tap' }, methods : { process : function () { this.test.tap(this.getTarget(), this.next, null, this.options, this.offset) } } }); Siesta.Test.ActionRegistry().registerAction('tap', Siesta.Test.Action.Tap)