bugfix, Cookie-Hinweis angepasst
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import {Selector} from 'testcafe';
|
||||
import {ClientFunction} from 'testcafe';
|
||||
|
||||
let isLocal = false
|
||||
let isLocal = true;
|
||||
|
||||
|
||||
;
|
||||
const goBack = ClientFunction(() => window.history.back());
|
||||
const testLocalStorageSet = ClientFunction((key, value) => {
|
||||
localStorage.setItem(key, value)
|
||||
@@ -393,11 +393,12 @@ test('LoadLastLevel', async t => {
|
||||
});
|
||||
test('LevelRotation', async t => {
|
||||
await waitForMainMenu(t);
|
||||
await t.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
await t
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform')).eql("matrix(0, -1, 1, 0, 0, 0)")
|
||||
.wait(3700)
|
||||
.wait(1000)
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform')).eql("matrix(0, -1, 1, 0, 0, 0)")
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform')).eql("matrix(0, 1, -1, 0, 0, 0)")
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
@@ -413,7 +414,7 @@ test('LevelRotation', async t => {
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform')).eql("matrix(0, -1, 1, 0, 0, 0)")
|
||||
.wait(3700)
|
||||
.wait(2000)
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform')).eql("matrix(0, -1, 1, 0, 0, 0)")
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform')).eql("matrix(0, 1, -1, 0, 0, 0)")
|
||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||
@@ -425,7 +426,7 @@ test('LevelRotation', async t => {
|
||||
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).textContent).eql("NGAU");
|
||||
|
||||
}).before(async t => {
|
||||
await replaceRandom([0.9, 0.5]);
|
||||
await replaceRandom([0.5]);
|
||||
});
|
||||
test('SendUserstats', async t => {
|
||||
await waitForMainMenu(t);
|
||||
|
||||
Reference in New Issue
Block a user