[chore] tweak first test

This commit is contained in:
MathieuG-P
2023-10-08 16:48:04 +02:00
parent e55c146824
commit 4f475d4224
2 changed files with 7 additions and 6 deletions
+3 -3
View File
@@ -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")});
+4 -3
View File
@@ -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();