Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 62c74f7b authored by VIAUD Nathan's avatar VIAUD Nathan
Browse files

fix e2e tests

parent b7af6794
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,6 @@ import { TestForm } from '@/tests/types';
const epocForm: TestForm = {
type: 'epoc',
inputs: [
{
label: 'ID de l\'ePoc',
value: 'TestID',
type: 'text'
},
{
label: 'Edition',
value: '2023',
......
......@@ -5,9 +5,19 @@ async function openForm(window, testId: string) {
const elementBox = await element.boundingBox();
const clickLocation = {
x: elementBox.x + 10,
y: elementBox.y + 10
x: 0,
y: 0
};
//? epoc-node isn't squared, so we need to click in the middle
if(testId === 'epoc-node') {
clickLocation.x = elementBox.x + elementBox.width / 2;
clickLocation.y = elementBox.y + elementBox.height / 2;
} else {
clickLocation.x = elementBox.x + 10;
clickLocation.y = elementBox.y + 10;
}
await window.mouse.click(clickLocation.x, clickLocation.y);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment