-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change main stat preprocessing from bandpass to blud/dilate/invert/th…
…reshold, also add an e2e test (#2580) Co-authored-by: frzyc <frzyc@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
322 additions
and
16 deletions.
There are no files selected for viewing
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.
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,13 +1,35 @@ | ||
import { getGreeting } from '../support/app.po' | ||
|
||
/* eslint-disable cypress/no-unnecessary-waiting */ | ||
describe('frontend', () => { | ||
beforeEach(() => cy.visit('/')) | ||
it('should test artifacts images to check if main stat is being parsed correctly', () => { | ||
cy.visit('/#/artifacts', { timeout: 600000 }) | ||
cy.get('.MuiModal-root [data-testid="CloseIcon"]').click() | ||
cy.contains('button', 'Add New Artifact').click() | ||
cy.contains('button', 'Add Artifact').as('addArtifact') | ||
cy.contains('label', 'Upload Screenshot').selectFile('assets/em_155.png') | ||
cy.wait(5000) | ||
cy.contains('button', 'Add Artifact', { timeout: 60000 }).should( | ||
'not.be.disabled' | ||
) | ||
cy.get( | ||
'[data-testid="artifact-editor"] [data-testid="main-stat"] button' | ||
).should('have.text', 'Elemental Mastery') | ||
cy.get( | ||
'[data-testid="artifact-editor"] [data-testid="main-stat"] p' | ||
).should('have.text', '155') | ||
|
||
it('should display welcome message', () => { | ||
// Custom command example, see `../support/commands.ts` file | ||
cy.login('my-email@something.com', 'myPassword') | ||
cy.contains('button', 'Clear').click() | ||
cy.wait(500) | ||
|
||
// Function helper example, see `../support/app.po.ts` file | ||
getGreeting().contains('Welcome frontend') | ||
cy.contains('label', 'Upload Screenshot').selectFile('assets/def_p_8_7.png') | ||
cy.wait(5000) | ||
cy.contains('button', 'Add Artifact', { timeout: 60000 }).should( | ||
'not.be.disabled' | ||
) | ||
cy.get( | ||
'[data-testid="artifact-editor"] [data-testid="main-stat"] button' | ||
).should('have.text', 'DEF%') | ||
cy.get( | ||
'[data-testid="artifact-editor"] [data-testid="main-stat"] p' | ||
).should('have.text', '8.7%') | ||
}) | ||
}) |
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