mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 04:21:44 +00:00
feat(driver): add squish.ini config file to repo
Creating it by calling `squishserver` is a waste of time. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
eec2e382d8
commit
6c91ebef11
1
test/e2e/.gitignore
vendored
1
test/e2e/.gitignore
vendored
@ -3,7 +3,6 @@ configs/_local.py
|
||||
|
||||
.idea/
|
||||
.venv/
|
||||
/squish_server.ini
|
||||
|
||||
*.pyc
|
||||
|
||||
|
@ -13,7 +13,7 @@ _logger = logging.getLogger(__name__)
|
||||
class SquishServer:
|
||||
__instance = None
|
||||
path = configs.testpath.SQUISH_DIR / 'bin' / 'squishserver'
|
||||
config = configs.testpath.ROOT / 'squish_server.ini'
|
||||
config = configs.testpath.ROOT / 'squish.ini'
|
||||
host = '127.0.0.1'
|
||||
port = None
|
||||
pid = None
|
||||
@ -53,18 +53,6 @@ class SquishServer:
|
||||
local_system.run(
|
||||
[f'"{cls.path}"', '--configfile', str(cls.config), '--config', action, ' '.join(options)])
|
||||
|
||||
@classmethod
|
||||
def add_executable_aut(cls, aut_id, app_dir):
|
||||
cls.configuring('addAUT', [aut_id, f'"{app_dir}"'])
|
||||
|
||||
@classmethod
|
||||
def add_attachable_aut(cls, aut_id: str, port: int):
|
||||
cls.configuring('addAttachableAUT', [aut_id, f'localhost:{port}'])
|
||||
|
||||
@classmethod
|
||||
def set_aut_timeout(cls, value: int = configs.timeouts.PROCESS_TIMEOUT_SEC):
|
||||
cls.configuring('setAUTTimeout', [str(value)])
|
||||
|
||||
@classmethod
|
||||
def set_cursor_animation(cls, value: bool = configs.squish.CURSOR_ANIMATION):
|
||||
cls.configuring('setCursorAnimation', [str(value)])
|
||||
|
3
test/e2e/squish.ini
Normal file
3
test/e2e/squish.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[General]
|
||||
AUTTimeout = "10"
|
||||
CursorAnimation = False
|
Loading…
x
Reference in New Issue
Block a user