improve new tests
This commit is contained in:
parent
db4282da45
commit
8f09f31581
5 changed files with 3 additions and 3 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 229 KiB |
BIN
cypress/integration/__image_snapshots__/superflat-world #0.png
Normal file
BIN
cypress/integration/__image_snapshots__/superflat-world #0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 262 KiB |
|
|
@ -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
BIN
cypress/superflat.zip
Normal file
Binary file not shown.
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue