Skip to content
Snippets Groups Projects
Commit 9e329e71 authored by Damien IRIBERRY's avatar Damien IRIBERRY Committed by Michele Alberti
Browse files

Fix individual tests

parent bb01dd30
No related branches found
No related tags found
No related merge requests found
...@@ -233,12 +233,12 @@ ivette-tests: ...@@ -233,12 +233,12 @@ ivette-tests:
- make clean && make && make -C ivette dist - make clean && make && make -C ivette dist
- cd ivette - cd ivette
- cp dist/renderer/* dist/main/ - cp dist/renderer/* dist/main/
- xvfb-run --auto-servernum -e /dev/stdout -s "-screen 0 1280x1024x24 -ac -nolisten tcp -nolisten unix" npx playwright test --headed - xvfb-run --auto-servernum -e /dev/stdout -s "-screen 0 1920x1080x24 -ac -nolisten tcp -nolisten unix" yarn playwright test --headed
artifacts: artifacts:
paths: paths:
- ivette/test-results - ivette/test-results
- ivette/screenshots - ivette/screenshots
when: on_failure when: always
expire_in: 1 day expire_in: 1 day
tags: tags:
- docker - docker
......
...@@ -408,8 +408,8 @@ function createBrowserWindow( ...@@ -408,8 +408,8 @@ function createBrowserWindow(
let configFile = PATH_WINDOW_SETTINGS; let configFile = PATH_WINDOW_SETTINGS;
if (argv && argv.includes('--with-fixed-settings')) { if (argv && argv.includes('--with-fixed-settings')) {
configFile = configFile =
argv[process.argv.indexOf('--with-fixed-settings') + 1]; argv[argv.indexOf('--with-fixed-settings') + 1];
argv = process.argv.filter((p) => !!p && p !== "--with-fixed-settings"); argv = argv.filter((p) => !!p && p !== "--with-fixed-settings" && p !== configFile);
} else if (isAppWindow) { } else if (isAppWindow) {
configFile = lookupConfig(wdir); configFile = lookupConfig(wdir);
} }
......
...@@ -46,7 +46,8 @@ export const argsLaunchWithDefaultSettings: string[] = [ ...@@ -46,7 +46,8 @@ export const argsLaunchWithDefaultSettings: string[] = [
// e2e tests using an additional C file loaded // e2e tests using an additional C file loaded
export const argsLaunchWithTestFile: string[] = [ export const argsLaunchWithTestFile: string[] = [
"./dist/main/main.js", "./dist/main/main.js",
"--no-sandbox", "--with-fixed-settings",
"./tests/settings.json",
"--command", "--command",
"../bin/frama-c", "../bin/frama-c",
"../tests/test/adpcm.c", "../tests/test/adpcm.c",
......
...@@ -26,9 +26,9 @@ import * as e2eService from "../libs/e2eService"; ...@@ -26,9 +26,9 @@ import * as e2eService from "../libs/e2eService";
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
let gremlins: any; let gremlins: any;
test.skip("run gremlins.js", async () => { test("run gremlins.js", async () => {
const launchAppResult = await e2eService.launchApp( const launchAppResult = await e2eService.launchApp(
e2eService.argsLaunchWithDefaultSettings, e2eService.argsDefaultLaunch,
); );
const electronApp = launchAppResult.app; const electronApp = launchAppResult.app;
const window = launchAppResult.page; const window = launchAppResult.page;
......
...@@ -25,7 +25,7 @@ import * as e2eService from "./libs/e2eService"; ...@@ -25,7 +25,7 @@ import * as e2eService from "./libs/e2eService";
test("check server connection", async () => { test("check server connection", async () => {
const launchAppResult = await e2eService.launchApp( const launchAppResult = await e2eService.launchApp(
e2eService.argsDefaultLaunch, e2eService.argsLaunchWithDefaultSettings,
); );
const electronApp = launchAppResult.app; const electronApp = launchAppResult.app;
const window = launchAppResult.page; const window = launchAppResult.page;
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"frame": { "frame": {
"x": 100, "x": 100,
"y": 100, "y": 100,
"width": 1000, "width": 1900,
"height": 750 "height": 1060
}, },
"settings": { "settings": {
"frama-c.labview.shape": { "frama-c.labview.shape": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment