Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(ui): add cypress tests to github actions #2285

Closed
wants to merge 73 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
be35e1f
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
b8ca923
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
5a3d727
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
619f532
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
7173b74
test: first commit to add cypress tests to github actions
TheoPascoli Jan 9, 2025
4ad2c94
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
3066c2d
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
0d01a7e
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
22327e6
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
7438c87
test: first commit to add cypress tests to github actions
TheoPascoli Jan 9, 2025
a711dbb
Merge branch 'test/setup-cypress' of https://github.com/AntaresSimula…
TheoPascoli Jan 9, 2025
b0bfeee
test: first commit to add cypress tests to github actions
TheoPascoli Jan 9, 2025
5e02359
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
e015945
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
ee07ed4
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
06503d7
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
a9fa20a
test: first commit to add cypress tests to github actions
TheoPascoli Jan 9, 2025
ace09c0
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
30dfa81
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
ad93e6f
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
6af45b8
test: first commit to add cypress tests to github actions
TheoPascoli Jan 8, 2025
600f7a1
test: first commit to add cypress tests to github actions
TheoPascoli Jan 9, 2025
748ab69
test: first commit to add cypress tests to github actions
TheoPascoli Jan 9, 2025
d4badfb
test: first commit to add cypress tests to github actions
TheoPascoli Jan 13, 2025
d29f907
Merge branch 'test/setup-cypress' of https://github.com/AntaresSimula…
TheoPascoli Jan 13, 2025
8e8eeba
test: first commit to add cypress tests to github actions
TheoPascoli Jan 13, 2025
e2ec24a
test: first commit to add cypress tests to github actions
TheoPascoli Jan 13, 2025
934fca8
Merge remote-tracking branch 'origin/test/setup-cypress' into test/se…
TheoPascoli Jan 13, 2025
763320e
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 14, 2025
1688e66
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 14, 2025
57a8606
test: first commit to add cypress tests to github actions
TheoPascoli Jan 15, 2025
9876c9d
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 15, 2025
f382a0e
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 16, 2025
444a568
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 20, 2025
17e184b
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 21, 2025
e724f86
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 22, 2025
3cfb912
feat: move cypress inside webapp folder
TheoPascoli Jan 23, 2025
14f5cd0
Merge remote-tracking branch 'origin/dev' into test/setup-cypress
TheoPascoli Jan 23, 2025
dbc94f5
feat: move cypress inside webapp folder
TheoPascoli Jan 23, 2025
1595193
feat: move cypress inside webapp folder
TheoPascoli Jan 23, 2025
77ac271
feat: move cypress inside webapp folder
TheoPascoli Jan 23, 2025
9e0427f
feat: lint fix
TheoPascoli Jan 23, 2025
fa4bdf2
feat: lint fix
TheoPascoli Jan 23, 2025
c020055
feat: lint fix
TheoPascoli Jan 23, 2025
59c564c
feat: lint fix
TheoPascoli Jan 23, 2025
a571a12
feat: lint fix
TheoPascoli Jan 23, 2025
a5a1c60
feat: lint fix
TheoPascoli Jan 23, 2025
157e008
feat: lint fix
TheoPascoli Jan 23, 2025
512e04c
feat: lint fix
TheoPascoli Jan 23, 2025
00839b0
feat: lint fix
TheoPascoli Jan 23, 2025
377bae5
feat: lint fix
TheoPascoli Jan 23, 2025
7d75010
feat: lint fix
TheoPascoli Jan 23, 2025
145241c
feat: lint fix
TheoPascoli Jan 23, 2025
69694e8
feat: lint fix
TheoPascoli Jan 23, 2025
31ffaf4
feat: lint fix
TheoPascoli Jan 23, 2025
fe7fb33
Merge branch 'dev' into test/setup-cypress
TheoPascoli Jan 24, 2025
9c91a2a
feat: lint fix
TheoPascoli Jan 24, 2025
7994dd0
feat: lint fix
TheoPascoli Jan 24, 2025
3e54dfe
feat: lint fix
TheoPascoli Jan 24, 2025
12de919
feat: lint fix
TheoPascoli Jan 24, 2025
f1e1e8f
feat: lint fix
TheoPascoli Jan 24, 2025
61891d3
feat: lint fix
TheoPascoli Jan 24, 2025
46183dd
feat: lint fix
TheoPascoli Jan 24, 2025
07c2bb9
feat: lint fix
TheoPascoli Jan 24, 2025
db7a9f2
feat: lint fix
TheoPascoli Jan 24, 2025
10712d7
feat: lint fix
TheoPascoli Jan 24, 2025
63036b8
feat: lint fix
TheoPascoli Jan 24, 2025
46ffe93
feat: lint fix
TheoPascoli Jan 24, 2025
b501079
feat: lint fix
TheoPascoli Jan 24, 2025
5ff77f1
feat: lint fix
TheoPascoli Jan 24, 2025
fb66707
feat: lint fix
TheoPascoli Jan 24, 2025
7a60117
feat: lint fix
TheoPascoli Jan 24, 2025
e196794
feat: lint fix
TheoPascoli Jan 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: lint fix
TheoPascoli committed Jan 24, 2025
commit 61891d3413514322984855204b01d80be18f709e
3 changes: 1 addition & 2 deletions webapp/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
@@ -12,8 +12,7 @@
* This file is part of the Antares project.
*/

import { describe, it } from "cypress";
import { cy } from "cypress";
import { describe, it, cy } from "cypress";

describe("template spec", () => {
it("passes", () => {

Unchanged files with check annotations Beta

*
* This file is part of the Antares project.
*/
// Commands here

Check failure on line 14 in webapp/cypress/support/commands.js

GitHub Actions / npm-lint

Insert `⏎`

Check failure on line 14 in webapp/cypress/support/commands.js

GitHub Actions / npm-lint

Missing license header
);
};
const onChange = async (currentName: string) => {

Check warning on line 40 in webapp/src/components/App/Data/DataPropsView.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
if (currentName !== "") {
const f = filter(currentName);
setFilteredDatas(f);
setOpenModal(true);
};
const handleDelete = async (id: string) => {

Check warning on line 70 in webapp/src/components/App/Data/index.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
setIdForDeletion(id);
setOpenConfirmationModal(true);
};
}
};
const onMatrixClick = async (id: string) => {

Check warning on line 109 in webapp/src/components/App/Data/index.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
if (selectedItem) {
const tmp = dataList.find((o) => o.id === selectedItem);
if (tmp) {
}
};
const handleChange = async (e: React.ChangeEvent<HTMLInputElement>) => {

Check warning on line 44 in webapp/src/components/App/Singlestudy/Commands/Edition/DraggableCommands/CommandImportButton.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
e.preventDefault();
const reader = new FileReader();
reader.onload = async (ev: ProgressEvent<FileReader>) => {

Check warning on line 47 in webapp/src/components/App/Singlestudy/Commands/Edition/DraggableCommands/CommandImportButton.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
try {
if (ev.target) {
const text = ev.target.result;
}
};
const onDelete = async (index: number) => {

Check warning on line 125 in webapp/src/components/App/Singlestudy/Commands/Edition/index.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
setOpenDeleteCommandDialog(index);
};
unsubscribeWsChannels();
window.clearInterval(intervalId);
};
}, [studyId]);

Check warning on line 182 in webapp/src/components/App/Singlestudy/FreezeStudy.tsx

GitHub Actions / npm-lint

React Hook useEffect has a missing dependency: 'blockingTasksRef'. Either include it or remove the dependency array
return (
<Backdrop open={blockingTasks.length > 0} sx={{ position: "absolute" }}>
import DigestDialog from "../../../../../common/dialogs/DigestDialog";
import type { EmptyObject } from "../../../../../../utils/tsUtils";
export const ColorStatus = {

Check warning on line 46 in webapp/src/components/App/Singlestudy/HomeView/InformationView/LauncherHistory/JobStepper.tsx

GitHub Actions / npm-lint

Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
running: "warning.main",
pending: "grey.400",
success: "success.main",
return nodeDatum;
};
const buildTree = async (node: StudyTree, childrenTree: VariantTree): Promise<void> => {

Check warning on line 62 in webapp/src/components/App/Singlestudy/HomeView/StudyTreeView/utils.ts

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
if ((childrenTree.children || []).length === 0) {
node.drawOptions.depth = 1;
node.drawOptions.nbAllChildrens = 0;
// Event handlers
////////////////////////////////////////////////////////////////
const handleSubmit = async (data: SubmitHandlerPlus<typeof defaultValues>) => {

Check warning on line 54 in webapp/src/components/App/Singlestudy/UpgradeDialog.tsx

GitHub Actions / npm-lint

Async arrow function has no 'await' expression
return upgradeStudy(study.id, data.values.version).then(onClose);
};