improve new tests

This commit is contained in:
Vitaly 2023-09-17 23:39:05 +03:00
commit 8f09f31581
5 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

View file

@ -49,7 +49,7 @@ it('Loads & renders zip world', () => {
setLocalStorageSettings()
// todo replace with data-test
cy.get('#title-screen').find('[data-test-id="select-file-folder"]', { includeShadowDom: true, }).click({ shiftKey: true })
cy.get('input[type="file"]').selectFile('cypress/fixtures/superflat.zip', { force: true })
cy.get('input[type="file"]').selectFile('cypress/superflat.zip', { force: true })
// todo implement load event
cy.wait(12000)
cy.get('body').toMatchImageSnapshot({

BIN
cypress/superflat.zip Normal file

Binary file not shown.

View file

@ -7,9 +7,9 @@ const serverOptions = {
...defaultOptions,
'online-mode': false,
'logging': false,
'gameMode': 1,
'gameMode': 0,
'difficulty': 0,
'worldFolder': null,
'worldFolder': false,
// todo set sid, disable entities auto-spawn
'generation': {
'name': 'superflat',