forked from AmadeusITGroup/otter
-
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.
test(training): visual testing for training steps (AmadeusITGroup#2587)
## Proposed change <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. --> ## Related issues <!-- Please make sure to follow the [contribution guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md) --> *- No issue associated -* <!-- * 🐛 Fix #issue --> <!-- * 🐛 Fix resolves #issue --> <!-- * 🚀 Feature #issue --> <!-- * 🚀 Feature resolves #issue --> <!-- * Pull Request #issue -->
- Loading branch information
Showing
13 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
Binary file added
BIN
+119 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step2.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
+106 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step3.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
+113 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step4.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
+99.6 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step5.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
+219 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step6.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
+102 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step7.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
+98.5 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step8.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
+108 KB
...ywright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training-step9.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
+169 KB
...2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/sdk-training.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { | ||
ComponentFixtureProfile, | ||
O3rComponentFixture, | ||
} from '@o3r/testing/core'; | ||
|
||
/** | ||
* A component fixture abstracts all the interaction you can have with the component's DOM | ||
* for testing purpose, including instantiating the fixtures of sub-components. | ||
* It should be used both for component testing and automated testing. | ||
*/ | ||
export interface TrainingFixture extends ComponentFixtureProfile { | ||
/** Click on previous step button */ | ||
clickOnPreviousStep: () => Promise<void>; | ||
/** Click on next step button */ | ||
clickOnNextStep: () => Promise<void>; | ||
} | ||
|
||
export class TrainingFixtureComponent extends O3rComponentFixture implements TrainingFixture { | ||
/** @inheritDoc */ | ||
public async clickOnPreviousStep() { | ||
return (await this.query('#training-exercise-previous-step'))?.click(); | ||
} | ||
|
||
/** @inheritDoc */ | ||
public async clickOnNextStep() { | ||
return (await this.query('#training-exercise-next-step'))?.click(); | ||
} | ||
} |