mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore] tweak first test
This commit is contained in:
@@ -22,8 +22,8 @@ export async function startApp(): Promise<StartAppResponse> {
|
||||
recordVideo: {
|
||||
dir: getRecordingPath(appInfo.platform),
|
||||
size: {
|
||||
width: 1200,
|
||||
height: 800,
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -41,7 +41,7 @@ export async function startApp(): Promise<StartAppResponse> {
|
||||
throw new Error('Unable to get main window');
|
||||
}
|
||||
|
||||
await pause(3000);
|
||||
await pause(4000);
|
||||
|
||||
appWindow.on('console', log.info);
|
||||
appWindow.screenshot({path: path.join(TEST_OUTPUT_DIR, "initial-screen.png")});
|
||||
|
||||
@@ -27,8 +27,9 @@ test.afterEach(async () => {
|
||||
});
|
||||
|
||||
test('should be able to select then unselect a bs version', async () => {
|
||||
const versionManifest = "5325635033564462932";
|
||||
await addVersionPanel.selectYear("2018");
|
||||
const versionManifest = "8948172000430595334";
|
||||
await addVersionPanel.selectYear("2021");
|
||||
await pause(1000);
|
||||
|
||||
await addVersionPanel.clickVersion(versionManifest); // select version 0.12.2
|
||||
await pause(1000);
|
||||
@@ -36,7 +37,7 @@ test('should be able to select then unselect a bs version', async () => {
|
||||
expect(await addVersionPanel.downloadVersionButton.isVisible()).toBeTruthy();
|
||||
|
||||
await addVersionPanel.clickVersion(versionManifest); // deselect version 0.12.2
|
||||
await pause(1000);
|
||||
await pause(2000);
|
||||
|
||||
expect(await addVersionPanel.downloadVersionButton.isVisible()).toBeFalsy();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user