Tests angepasst
This commit is contained in:
parent
9310230a0d
commit
699b1a7d7d
@ -92,8 +92,8 @@ test('Play', async t => {
|
|||||||
.expect(Selector('.tutorial-text .step-2').visible).eql(true)
|
.expect(Selector('.tutorial-text .step-2').visible).eql(true)
|
||||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||||
.expect(Selector('#continue-button').visible).eql(true)
|
.expect(Selector('#continue-button').visible).eql(true)
|
||||||
// .wait(3500)
|
.click(Selector('#continue-button'))
|
||||||
.click(Selector('#continue-button'));
|
.wait(1000);
|
||||||
|
|
||||||
levelNumber++;
|
levelNumber++;
|
||||||
//first Level
|
//first Level
|
||||||
@ -382,7 +382,7 @@ 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))
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||||
.wait(3750)
|
.wait(3000)
|
||||||
.expect(Selector('.segment-parent').nth(SEGMENT.THREE).getStyleProperty('transform')).eql("matrix(0, -1, 1, 0, 0, 0)")
|
.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)")
|
.expect(Selector('.segment-parent').nth(SEGMENT.FOUR).getStyleProperty('transform')).eql("matrix(0, 1, -1, 0, 0, 0)")
|
||||||
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
.click(Selector('.segment-parent').nth(SEGMENT.THREE))
|
||||||
@ -411,7 +411,7 @@ test('LevelRotation', async t => {
|
|||||||
}).before(async t => {
|
}).before(async t => {
|
||||||
await replaceRandom([0.9, 0.5]);
|
await replaceRandom([0.9, 0.5]);
|
||||||
});
|
});
|
||||||
test.only('SendUserstats', async t => {
|
test('SendUserstats', async t => {
|
||||||
let matomoCheck = ClientFunction(() => {
|
let matomoCheck = ClientFunction(() => {
|
||||||
return fetch("//matomo.silas.link/index.php?module=API&method=AjaxOptOut.isTracked", {
|
return fetch("//matomo.silas.link/index.php?module=API&method=AjaxOptOut.isTracked", {
|
||||||
"mode": "cors",
|
"mode": "cors",
|
||||||
@ -439,4 +439,19 @@ test.only('SendUserstats', async t => {
|
|||||||
await t.expect(res).ok()
|
await t.expect(res).ok()
|
||||||
}).before(async t => {
|
}).before(async t => {
|
||||||
await testLocalStorageSet("matomoShouldTrack", "1");
|
await testLocalStorageSet("matomoShouldTrack", "1");
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Themes', async t => {
|
||||||
|
await testLocalStorageSet("currentTheme", "dark");
|
||||||
|
await t
|
||||||
|
.expect(Selector("body.dark").visible).ok()
|
||||||
|
.click(Selector(".action [data-translation-title='settings']"))
|
||||||
|
.expect(Selector("#theme-name").innerText).eql("Dunkel")
|
||||||
|
.click(Selector("#theme-name"))
|
||||||
|
.click(Selector(".name [data-translation]").nth(3))
|
||||||
|
.wait(100)
|
||||||
|
.expect(Selector("#theme-name").innerText).eql("Grün")
|
||||||
|
.expect(Selector("body.green").visible).ok()
|
||||||
|
}).before(async t => {
|
||||||
|
testLocalStorageSet("currentTheme", "dark");
|
||||||
});
|
});
|
||||||
Loading…
x
Reference in New Issue
Block a user