|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
import {Selector} from 'testcafe';
|
|
|
|
|
import {ClientFunction} from 'testcafe';
|
|
|
|
|
|
|
|
|
|
let isLocal = false;
|
|
|
|
|
let isLocal = true;
|
|
|
|
|
let isMobile = false;
|
|
|
|
|
|
|
|
|
|
const checkMatrix = async (matrixStringSelector, shouldValues, timeout) => {
|
|
|
|
|
@ -22,7 +22,7 @@ const checkMatrix = async (matrixStringSelector, shouldValues, timeout) => {
|
|
|
|
|
return await checkMatrix(matrixStringSelector._reExecute(), shouldValues, timeout - step)
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
console.error(values[i] +" not "+ shouldValues[i] + " with", values, shouldValues, i );
|
|
|
|
|
console.error(values[i] + " not " + shouldValues[i] + " with", values, shouldValues, i);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -86,7 +86,7 @@ else {
|
|
|
|
|
}
|
|
|
|
|
let dragDimen = 280;
|
|
|
|
|
|
|
|
|
|
if (isMobile){
|
|
|
|
|
if (isMobile) {
|
|
|
|
|
dragDimen = 90;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -170,9 +170,9 @@ test('Play', async t => {
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.TWO).textContent).eql("AUER")
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).textContent).eql("ERAP")
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.FOUR).textContent).eql("EIIE")
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment.segment-parent.rotate-270').nth(0).getStyleProperty('transform'), [0, -1, 1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment.segment-parent.rotate-180').getStyleProperty('transform'), [-1, 0, 0, -1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment.segment-parent.rotate-360').getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment.segment-parent.rotate-270').nth(0).getStyleProperty('transform'), [0, -1, 1, 0,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment.segment-parent.rotate-180').getStyleProperty('transform'), [-1, 0, 0, -1,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment.segment-parent.rotate-360').getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(Selector('#continue-button').visible).eql(false)
|
|
|
|
|
.expect(Selector('#level-number').textContent).eql("3")
|
|
|
|
|
.expect(Selector('#won-text').visible).eql(false)
|
|
|
|
|
@ -180,9 +180,9 @@ test('Play', async t => {
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ONE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TWO).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TWO).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TWO).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TWO).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(Selector('#won-text').visible).eql(true)
|
|
|
|
|
.expect(Selector('#continue-button').visible).eql(true)
|
|
|
|
|
.click(Selector('#continue-button'))
|
|
|
|
|
@ -208,6 +208,98 @@ test('Play', async t => {
|
|
|
|
|
|
|
|
|
|
levelNumber++;
|
|
|
|
|
|
|
|
|
|
await t
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.THREE), dragDimen, 4, {
|
|
|
|
|
offsetX: 10,
|
|
|
|
|
offsetY: 17
|
|
|
|
|
})
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ONE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('#continue-button'))
|
|
|
|
|
.expect(Selector('.coin-counter').innerText).contains("" + (coinsPerLevel * levelNumber + extraCoins - helpCost));
|
|
|
|
|
|
|
|
|
|
levelNumber++;
|
|
|
|
|
|
|
|
|
|
await t
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.EIGHT))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('#continue-button'))
|
|
|
|
|
.expect(Selector('.coin-counter').innerText).contains("" + (coinsPerLevel * levelNumber + extraCoins - helpCost));
|
|
|
|
|
|
|
|
|
|
levelNumber++;
|
|
|
|
|
|
|
|
|
|
await t
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.FIVE), -dragDimen, 4, {
|
|
|
|
|
offsetX: dragDimen + 50,
|
|
|
|
|
offsetY: 17
|
|
|
|
|
})
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ONE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.EIGHT))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('#continue-button'))
|
|
|
|
|
.expect(Selector('.coin-counter').innerText).contains("" + (coinsPerLevel * levelNumber + extraCoins - helpCost));
|
|
|
|
|
levelNumber++;
|
|
|
|
|
|
|
|
|
|
await t
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.EIGHT))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FIVE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ONE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SIX))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ONE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.EIGHT))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FIVE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.ELEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.EIGHT))
|
|
|
|
|
.click(Selector('#continue-button'))
|
|
|
|
|
.expect(Selector('.coin-counter').innerText).contains("" + (coinsPerLevel * levelNumber + extraCoins - helpCost));
|
|
|
|
|
|
|
|
|
|
levelNumber++;
|
|
|
|
|
|
|
|
|
|
await t.drag(Selector('.segment-parent').nth(SEGMENT.ONE), -dragDimen, 4, {
|
|
|
|
|
offsetX: dragDimen + 50,
|
|
|
|
|
offsetY: 17
|
|
|
|
|
@ -244,24 +336,24 @@ test('Play', async t => {
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.THIRTEEN).textContent).eql("TUTO")
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.FOURTEEN).textContent).eql("NGPF")
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.TEN), dragDimen, 4, {
|
|
|
|
|
offsetX: dragDimen/5,
|
|
|
|
|
offsetX: dragDimen / 5,
|
|
|
|
|
offsetY: 10
|
|
|
|
|
})
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.ONE), dragDimen, 3, {
|
|
|
|
|
offsetX: dragDimen/5,
|
|
|
|
|
offsetX: dragDimen / 5,
|
|
|
|
|
offsetY: 10
|
|
|
|
|
})
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.TEN).find('div').withText('I'), dragDimen, 4, {
|
|
|
|
|
offsetX: dragDimen/5,
|
|
|
|
|
offsetY: dragDimen/5
|
|
|
|
|
offsetX: dragDimen / 5,
|
|
|
|
|
offsetY: dragDimen / 5
|
|
|
|
|
})
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.ONE).find('div').withText('S'), 10, dragDimen, {
|
|
|
|
|
offsetX: dragDimen,
|
|
|
|
|
offsetY: dragDimen/5
|
|
|
|
|
offsetY: dragDimen / 5
|
|
|
|
|
})
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.TEN), dragDimen, 4, {
|
|
|
|
|
offsetX: 10,
|
|
|
|
|
offsetY: dragDimen/5
|
|
|
|
|
offsetY: dragDimen / 5
|
|
|
|
|
})
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.NINE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.EIGHT))
|
|
|
|
|
@ -290,15 +382,15 @@ test('Play', async t => {
|
|
|
|
|
await t.expect(Selector('#level-number').textContent).eql("" + levelNumber)
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.ONE).textContent).eql("BEANTOBEALBALEUM")
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.SIX).textContent).eql("NUTUNGNGRGHAIEUS")
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.ONE).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.SIX).getStyleProperty('transform'), [0, 1, -1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.ONE).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.SIX).getStyleProperty('transform'), [0, 1, -1, 0,])).ok()
|
|
|
|
|
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.TWO))
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.SIX).find('div').withText('U'), 3, dragDimen, {
|
|
|
|
|
offsetX: 10,
|
|
|
|
|
offsetY: dragDimen/5
|
|
|
|
|
offsetY: dragDimen / 5
|
|
|
|
|
})
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.SEVEN))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
@ -316,8 +408,8 @@ test('Play', async t => {
|
|
|
|
|
//Level 6
|
|
|
|
|
await t.expect(Selector('#level-number').textContent).eql("" + levelNumber)
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.ONE).textContent).eql("FEGEHLISARBEBERE")
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.ONE).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TEN).getStyleProperty('transform'), [-1, 0, 0, -1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.ONE).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TEN).getStyleProperty('transform'), [-1, 0, 0, -1,])).ok()
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.TEN).textContent).eql("ITITSPSCIKARAROT")
|
|
|
|
|
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
@ -358,7 +450,7 @@ test('Play', async t => {
|
|
|
|
|
offsetX: 10,
|
|
|
|
|
offsetY: 10
|
|
|
|
|
})
|
|
|
|
|
.expect(await checkMatrix(Selector('div').withText('P').nth(11).find('.segment.segment-parent.layer-2.rotate-360').getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('div').withText('P').nth(11).find('.segment.segment-parent.layer-2.rotate-360').getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(Selector('#continue-button').visible).eql(true)
|
|
|
|
|
.expect(Selector('#won-text').visible).eql(true)
|
|
|
|
|
.click(Selector('#continue-button'))
|
|
|
|
|
@ -366,7 +458,7 @@ test('Play', async t => {
|
|
|
|
|
|
|
|
|
|
levelNumber++;
|
|
|
|
|
//Level 7
|
|
|
|
|
await t.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.SIX).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
await t.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.SIX).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(Selector('.segment-row > .child-container').childElementCount).eql(3)
|
|
|
|
|
|
|
|
|
|
.drag(Selector('.segment-parent').nth(SEGMENT.ONE), 4, dragDimen, {
|
|
|
|
|
@ -408,9 +500,9 @@ test('LoadLastLevel', async t => {
|
|
|
|
|
await waitForMainMenu(t);
|
|
|
|
|
await t.click(Selector('#play-button')).wait(500)
|
|
|
|
|
.expect(Selector('.segment-parent').nth(SEGMENT.ONE).hasClass('locked')).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.ONE).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TWO).getStyleProperty('transform'), [1, 0, 0, 1, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.ONE).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.TWO).getStyleProperty('transform'), [1, 0, 0, 1,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0,])).ok()
|
|
|
|
|
}).before(async t => {
|
|
|
|
|
await testLocalStorageSet("currentLevel", "{\"id\":15,\"rotations\":[0,0,270],\"locks\":[false,true,true]}");
|
|
|
|
|
});
|
|
|
|
|
@ -420,10 +512,10 @@ test('LevelRotation', async t => {
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0,])).ok()
|
|
|
|
|
.wait(1000)
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform'), [0, 1, -1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform'), [0, 1, -1, 0,])).ok()
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
@ -436,10 +528,10 @@ test('LevelRotation', async t => {
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0,])).ok()
|
|
|
|
|
.wait(2000)
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform'), [0, 1, -1, 0, ])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform'), [0, -1, 1, 0,])).ok()
|
|
|
|
|
.expect(await checkMatrix(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform'), [0, 1, -1, 0,])).ok()
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
.click(Selector('.segment-parent').nth(SEGMENT.FOUR))
|
|
|
|
|
|