-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
b79fdbd
commit 3d33aac
Showing
6 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
Binary file added
BIN
+737 Bytes
.../main_window/__image_snapshots__/MonitorExt A user can search semaphore #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+737 Bytes
...in_window/__image_snapshots__/Search Places A user can search semaphore #0.png
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { FAKE_MAPBOX_RESPONSE } from '../constants' | ||
|
||
context('MonitorExt', () => { | ||
beforeEach(() => { | ||
cy.intercept('GET', 'https://api.mapbox.com/**', FAKE_MAPBOX_RESPONSE) | ||
cy.visit('/ext#@-824534.42,6082993.21,8.70') | ||
cy.wait(500) | ||
}) | ||
|
||
it('A user can search semaphore', () => { | ||
cy.wait(200) | ||
cy.clickButton('Chercher un s茅maphore') | ||
cy.fill('Rechercher un s茅maphore', 'S茅maphore de F茅camp') | ||
cy.get('.baselayer').toMatchImageSnapshot({ | ||
imageConfig: { | ||
threshold: 0.05, | ||
thresholdType: 'percent' | ||
}, | ||
screenshotConfig: { | ||
clip: { height: 250, width: 250, x: 440, y: 450 } | ||
} | ||
}) | ||
}) | ||
|
||
it("A user can't see missions, reportings, bases and measurements tools button", () => { | ||
cy.wait(200) | ||
cy.getDataCy('missions-button').should('not.exist') | ||
cy.getDataCy('reportings-button').should('not.exist') | ||
cy.getDataCy('semaphores-button').should('exist') | ||
cy.get('button[title="Liste des unit茅s de contr么le"]').should('not.exist') | ||
cy.getDataCy('measurement').should('not.exist') | ||
cy.getDataCy('interest-point').should('not.exist') | ||
}) | ||
}) |
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