Basic demonstration of Bryntum Siesta as a web app testing tool. Shows how to wire up Siesta inside an app and start testing its UI.
Pretty much drop in the siesta
folder in your app, tweak pageUrl
and npm install
in the siesta
folder to use in any web app.
Turn this:
StartTest(t => {
const Page = {
name : 'input[name="name"]',
pswd : 'input[type="password"]',
login : 'input[type="button"]'
};
t.describe('Happy path', t => {
t.it('should login with name and password', async t => {
await t.click(Page.name);
await t.type(Page.name, 'dongryphon');
await t.click(Page.pswd);
await t.type(Page.pswd, 'foobar');
await t.click(Page.login);
t.expect(1).toBe(1);
});
});
});
...into this: