UNPKG

siesta-lite

Version:

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

40 lines (22 loc) 1.47 kB
describe('Black box test', t => { t.chain( { click: '#app :textEquals(UI Elements):nth-of-type(2)' }, { click: '#app .sidebar-link__router-link > span:nth-of-type(1) span:textEquals(Collapse)' }, { click: '#content button:textEquals(Expand This Block)' }, { click: '#content button:textEquals(Another Block)' }, { click: '#content button:textEquals(Let\'s Go)' }, { click: '#app .sidebar-link-group:nth-of-type(3) > a:nth-of-type(1)' }, { click: '#app .sidebar-link__router-link > span:nth-of-type(1) span:textEquals(Form Elements)' }, { click: '#simple-input' }, { type: 'som [BACKSPACE]e tes[BACKSPACE]xt', target: '#simple-input' }, { mousedown: '#date-picker-basic', offset: [99.18603515625, 15.720947265625] }, { mouseup: [408.18603515625, 780.720947265625] }, { mousedown: '.open :textEquals(22)', offset: [6.441864013671875, 20.1395263671875] }, { mouseup: [391.4418640136719, 678.0232543945312] }, { click: '#app .sidebar-link-group:nth-of-type(5) > a:nth-of-type(1)', offset: [154.23255920410156, 48.06976318359375] }, { click: '#app .sidebar-link__router-link > span:nth-of-type(1) span:textEquals(Color Pickers)' }, { mousedown: '#content .col-md-6 .vc-hue-picker', offset: [6.604644775390625, 8.8604736328125] }, { mouseup: [642.6046752929688, 666.8604736328125] }, { click: '#content .vuestic-pallet-custom__palette .color-dot:nth-of-type(1) .color-dot__core' }, ) })