-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
283 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
describe("Blank Gun Detection", () => { | ||
it("should identificate real blank gun", () => { | ||
cy.Identification(); | ||
cy.getByDataTestid("select-file").as("fileInput"); | ||
cy.intercept("POST", "/api/upload").as("upload"); | ||
cy.get("@fileInput").selectFile("./cypress/images/blank-gun.jpg", { | ||
force: true, | ||
}); | ||
cy.wait("@upload").then(({ response }) => { | ||
expect(response.statusCode).to.eq(200); | ||
}); | ||
cy.wait(1000); | ||
cy.getByDataTestid("next-step").click(); | ||
cy.IdentificationPistoletOCR("Identification d'une arme d'alarme"); | ||
cy.wait(5000); | ||
cy.url().should("contain", "/guide-identification/resultat-final"); | ||
cy.getByDataTestid("arm-category").should("contain", "Catégorie C"); | ||
}); | ||
|
||
it("should identificate firearm with missing text", () => { | ||
cy.Identification(); | ||
cy.getByDataTestid("select-file").as("fileInput"); | ||
cy.intercept("POST", "/api/upload").as("upload"); | ||
cy.get("@fileInput").selectFile("./cypress/images/no-text.jpg", { | ||
force: true, | ||
}); | ||
cy.wait("@upload").then(({ response }) => { | ||
expect(response.statusCode).to.eq(200); | ||
}); | ||
cy.wait(1000); | ||
cy.getByDataTestid("next-step").click(); | ||
cy.IdentificationPistoletOCR("Marquages non détectés"); | ||
cy.get('.fr-col-12 > [data-testid="next-step"]').click(); | ||
cy.url().should("contain", "/guide-identification/resultat-final"); | ||
cy.getByDataTestid("arm-category").should("contain", "Catégorie B"); | ||
}); | ||
|
||
it("should identificate firearm with low quality", () => { | ||
cy.Identification(); | ||
cy.getByDataTestid("select-file").as("fileInput"); | ||
cy.intercept("POST", "/api/upload").as("upload"); | ||
cy.get("@fileInput").selectFile("./cypress/images/low-quality.jpg", { | ||
force: true, | ||
}); | ||
cy.wait("@upload").then(({ response }) => { | ||
expect(response.statusCode).to.eq(200); | ||
}); | ||
cy.wait(1000); | ||
cy.getByDataTestid("next-step").click(); | ||
cy.IdentificationPistoletOCR("Qualité d'image insuffisante"); | ||
cy.get('.fr-col-12 > [data-testid="next-step"]').click(); | ||
cy.url().should("contain", "/guide-identification/resultat-final"); | ||
cy.getByDataTestid("arm-category").should("contain", "Catégorie B"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-58.1 KB
(65%)
frontend/cypress/images/pistolet-semi-auto.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
/* eslint-disable */ | ||
/* prettier-ignore */ | ||
// @ts-nocheck | ||
// Generated by unplugin-vue-components | ||
// Read more: https://github.com/vuejs/core/pull/3399 | ||
export {} | ||
export {}; | ||
|
||
declare module "vue" { | ||
/* prettier-ignore */ | ||
declare module 'vue' { | ||
export interface GlobalComponents { | ||
AskingExpert: (typeof import("./components/AskingExpert.vue"))["default"]; | ||
AuthCallback: (typeof import("./components/authentication/AuthCallback.vue"))["default"]; | ||
AuthRedirect: (typeof import("./components/authentication/AuthRedirect.vue"))["default"]; | ||
ContactExpert: (typeof import("./components/ContactExpert.vue"))["default"]; | ||
copy: (typeof import("./components/authentification/AuthRedirect copy.vue"))["default"]; | ||
DsfrAlert: (typeof import("@gouvminint/vue-dsfr"))["DsfrAlert"]; | ||
DsfrButton: (typeof import("@gouvminint/vue-dsfr"))["DsfrButton"]; | ||
DsfrCheckbox: (typeof import("@gouvminint/vue-dsfr"))["DsfrCheckbox"]; | ||
DsfrFileUpload: (typeof import("@gouvminint/vue-dsfr"))["DsfrFileUpload"]; | ||
DsfrHeader: (typeof import("@gouvminint/vue-dsfr"))["DsfrHeader"]; | ||
DsfrInput: (typeof import("@gouvminint/vue-dsfr"))["DsfrInput"]; | ||
DsfrModal: (typeof import("@gouvminint/vue-dsfr"))["DsfrModal"]; | ||
DsfrPicture: (typeof import("@gouvminint/vue-dsfr"))["DsfrPicture"]; | ||
DsfrRadioButton: (typeof import("@gouvminint/vue-dsfr"))["DsfrRadioButton"]; | ||
DsfrRadioButtonSet: (typeof import("@gouvminint/vue-dsfr"))["DsfrRadioButtonSet"]; | ||
DsfrSelect: (typeof import("@gouvminint/vue-dsfr"))["DsfrSelect"]; | ||
DsfrTag: (typeof import("@gouvminint/vue-dsfr"))["DsfrTag"]; | ||
HeaderMain: (typeof import("./components/HeaderMain.vue"))["default"]; | ||
MissingCardAlert: (typeof import("./components/MissingCardAlert.vue"))["default"]; | ||
OnboardingSwiper: (typeof import("./components/OnboardingSwiper.vue"))["default"]; | ||
PopupContact: (typeof import("./components/PopupContact.vue"))["default"]; | ||
PopupVideo: (typeof import("./components/PopupVideo.vue"))["default"]; | ||
ResultPage: (typeof import("./components/ResultPage.vue"))["default"]; | ||
RouterLink: (typeof import("vue-router"))["RouterLink"]; | ||
RouterView: (typeof import("vue-router"))["RouterView"]; | ||
SnackbarAlert: (typeof import("./components/SnackbarAlert.vue"))["default"]; | ||
StepsGuide: (typeof import("./components/StepsGuide.vue"))["default"]; | ||
User: (typeof import("./components/authentication/User.vue"))["default"]; | ||
VIcon: (typeof import("@gouvminint/vue-dsfr"))["VIcon"]; | ||
AskingExpert: typeof import('./components/AskingExpert.vue')['default'] | ||
AuthCallback: (typeof import("./components/authentication/AuthCallback.vue"))["default"] | ||
AuthRedirect: (typeof import("./components/authentication/AuthRedirect.vue"))["default"] | ||
ContactExpert: typeof import('./components/ContactExpert.vue')['default'] | ||
copy: (typeof import("./components/authentification/AuthRedirect copy.vue"))["default"] | ||
DsfrAlert: typeof import('@gouvminint/vue-dsfr')['DsfrAlert'] | ||
DsfrButton: typeof import('@gouvminint/vue-dsfr')['DsfrButton'] | ||
DsfrCheckbox: typeof import('@gouvminint/vue-dsfr')['DsfrCheckbox'] | ||
DsfrFileUpload: typeof import('@gouvminint/vue-dsfr')['DsfrFileUpload'] | ||
DsfrHeader: typeof import('@gouvminint/vue-dsfr')['DsfrHeader'] | ||
DsfrInput: typeof import('@gouvminint/vue-dsfr')['DsfrInput'] | ||
DsfrModal: typeof import('@gouvminint/vue-dsfr')['DsfrModal'] | ||
DsfrPicture: typeof import('@gouvminint/vue-dsfr')['DsfrPicture'] | ||
DsfrRadioButton: typeof import('@gouvminint/vue-dsfr')['DsfrRadioButton'] | ||
DsfrRadioButtonSet: typeof import('@gouvminint/vue-dsfr')['DsfrRadioButtonSet'] | ||
DsfrSelect: typeof import('@gouvminint/vue-dsfr')['DsfrSelect'] | ||
DsfrTag: typeof import('@gouvminint/vue-dsfr')['DsfrTag'] | ||
HeaderMain: typeof import('./components/HeaderMain.vue')['default'] | ||
MissingCardAlert: typeof import('./components/MissingCardAlert.vue')['default'] | ||
OnboardingSwiper: typeof import('./components/OnboardingSwiper.vue')['default'] | ||
PopupContact: typeof import('./components/PopupContact.vue')['default'] | ||
PopupVideo: typeof import('./components/PopupVideo.vue')['default'] | ||
ResultPage: typeof import('./components/ResultPage.vue')['default'] | ||
RouterLink: typeof import('vue-router')['RouterLink'] | ||
RouterView: typeof import('vue-router')['RouterView'] | ||
SnackbarAlert: typeof import('./components/SnackbarAlert.vue')['default'] | ||
StepsGuide: typeof import('./components/StepsGuide.vue')['default'] | ||
User: (typeof import("./components/authentication/User.vue"))["default"] | ||
VIcon: typeof import('@gouvminint/vue-dsfr')['VIcon'] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.