-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
test: add e2e tests for roadmap and case studies page #4215
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
Open
anushkaaaaaaaa
wants to merge
50
commits into
asyncapi:master
Choose a base branch
from
anushkaaaaaaaa:roadcase
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+281
−52
Open
Changes from 46 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
9ee4b59
test: add e2e tests for roadmap and case studies page
anushkaaaaaaaa ec79300
Merge branch 'master' into roadcase
anushkaaaaaaaa dbd0c2c
Merge branch 'master' into roadcase
anushkaaaaaaaa 7af8822
test: update test files
anushkaaaaaaaa 49eacfa
Merge branch 'master' into roadcase
anushkaaaaaaaa 5b642f4
Merge branch 'master' into roadcase
anushkaaaaaaaa b37981e
fix: small changes
anushkaaaaaaaa a259c4c
Merge branch 'roadcase' of https://github.com/anushkaaaaaaaa/website …
anushkaaaaaaaa 2fc8695
Merge branch 'master' into roadcase
anushkaaaaaaaa cb3cfe1
fix: small change
anushkaaaaaaaa 8a0bbe2
Merge branch 'roadcase' of https://github.com/anushkaaaaaaaa/website …
anushkaaaaaaaa 033fc81
refactor: clean up formatting and improve readability in CaseStudiesP…
anushkaaaaaaaa 1d57bca
refactor: remove unnecessary comments in verifyCardsLink method
anushkaaaaaaaa 3097d8d
refactor: streamline CaseStudiesPage tests by removing unnecessary ho…
anushkaaaaaaaa adae259
refactor: simplify RoadmapPage tests by removing unnecessary homepage…
anushkaaaaaaaa 3d27683
refactor: remove unnecessary header verification methods from Roadmap…
anushkaaaaaaaa a2e28a3
refactor: replace header verification with page load verification in …
anushkaaaaaaaa 6c53cbb
refactor: add header verification methods to multiple page classes an…
anushkaaaaaaaa 503c675
refactor: swap header verification with page load verification in Hom…
anushkaaaaaaaa 7af2b72
Merge branch 'master' into roadcase
anushkaaaaaaaa 74ab2b7
refactor: update CaseStudies and Roadmap page tests, improve link ver…
anushkaaaaaaaa ba10b08
Merge branch 'master' into roadcase
sambhavgupta0705 9ee7e07
Merge branch 'master' into roadcase
anushkaaaaaaaa c267ea3
refactor: simplify verifyHeader method in HomePage class
anushkaaaaaaaa 0bd80ae
Merge branch 'master' into roadcase
anushkaaaaaaaa 22a18e3
Merge branch 'master' into roadcase
anushkaaaaaaaa b93dcfb
Merge branch 'master' into roadcase
anushkaaaaaaaa 102892c
Merge branch 'master' into roadcase
sambhavgupta0705 672c865
Merge branch 'master' into roadcase
anushkaaaaaaaa f0648f4
Merge branch 'master' into roadcase
anushkaaaaaaaa 7c6629e
Merge branch 'master' into roadcase
anushkaaaaaaaa 763bbff
Merge branch 'master' into roadcase
anushkaaaaaaaa 07a712d
feat: implement base page classes for documentation, footer, header, …
anushkaaaaaaaa a6f2fec
Merge branch 'roadcase' of https://github.com/anushkaaaaaaaa/website …
anushkaaaaaaaa 361638e
Merge branch 'master' into roadcase
anushkaaaaaaaa 2e1a42e
refactor: streamline test cases by consolidating repetitive link veri…
anushkaaaaaaaa a0c9fd0
Merge branch 'roadcase' of https://github.com/anushkaaaaaaaa/website …
anushkaaaaaaaa 20de86f
refactor: remove unnecessary comments from verifyLinks function
anushkaaaaaaaa 4a68464
Merge branch 'master' into roadcase
anushkaaaaaaaa ec348ce
feat: add Cypress page objects for documentation and tools, and tests…
anushkaaaaaaaa 8408905
Merge branch 'roadcase' of https://github.com/anushkaaaaaaaa/website …
anushkaaaaaaaa 13aa724
test: add e2e tests for roadmap and case studies page
anushkaaaaaaaa b9f2d1b
merge: resolve conflict with master, update to v3.1.0-explorer
anushkaaaaaaaa df0819d
fix: update toolspage to use fixtures data instead of config
anushkaaaaaaaa f9574d3
resolve merge conflicts with master
anushkaaaaaaaa 370b062
fix: rename 'Liquid' to 'AsyncAPI CLI' in tools.json
anushkaaaaaaaa abf49e7
Update cypress/pages/RoadmapPage.js
anushkaaaaaaaa b03385d
revert: change 'AsyncAPI CLI' back to 'Liquid' technology tag
anushkaaaaaaaa b54b0c4
Merge branch 'roadcase' of https://github.com/anushkaaaaaaaa/website …
anushkaaaaaaaa b72779c
fix: update import path for toolsData to use the correct configuratio…
anushkaaaaaaaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,30 @@ | ||
| import RoadmapPage from './pages/RoadmapPage'; | ||
|
|
||
| describe('RoadMap Page Navigation and Functionality', () => { | ||
| let roadmapPage; | ||
|
|
||
| beforeEach(() => { | ||
| roadmapPage = new RoadmapPage(); | ||
| roadmapPage.visit(); | ||
| }); | ||
|
|
||
| it('User navigates to the RoadMap Page and verifies the header', () => { | ||
| roadmapPage.verifyPageLoaded(); | ||
| }); | ||
|
|
||
| it('User clicks on the community page link and verifies navigation', () => { | ||
| roadmapPage.verifyCommunityLink(); | ||
| }); | ||
|
|
||
| const tooltips = [ | ||
| { name: 'Outcome', index: 0 }, | ||
| { name: 'Solution', index: 1 }, | ||
| { name: 'Implementation', index: 2 } | ||
| ]; | ||
|
|
||
| tooltips.forEach(({ name, index }) => { | ||
| it(`User verifies ${name} tooltip`, () => { | ||
| roadmapPage.verifyTooltip(index); | ||
| }); | ||
| }); | ||
| }); | ||
This file contains hidden or 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,42 @@ | ||
| import CaseStudiesPage from './pages/CaseStudiesPage'; | ||
| import { verifyLinks } from './support/helpers'; | ||
|
|
||
| let casestudiespage; | ||
|
|
||
| beforeEach(() => { | ||
| casestudiespage = new CaseStudiesPage(); | ||
| casestudiespage.visit(); | ||
| }); | ||
|
|
||
| describe('Critical User Flows in CaseStudies Page', () => { | ||
| const verifications = [ | ||
| { name: 'header', testName: 'User navigates to the Case Studies Page and verifies the header', fn: () => casestudiespage.verifyHeader() }, | ||
| { name: 'FAQ link', testName: 'User verifies FAQ link is visible and contains correct URL', fn: () => casestudiespage.verifyFaqLink() }, | ||
| { name: 'Cards link', testName: 'User verifies Cards link is visible and contains correct URL', fn: () => casestudiespage.verifyCardsLink() }, | ||
| { name: 'Submit PR link', testName: 'User verifies Submit a Pull Request Link is visible and contains correct URL', fn: () => casestudiespage.verifySubmitPullRequestLink() } | ||
| ]; | ||
|
|
||
| verifications.forEach(({ testName, fn }) => { | ||
| it(testName, fn); | ||
| }); | ||
| }); | ||
|
|
||
| describe('Adopters Table', () => { | ||
| it('Navigates to the Case Studies page and scrolls down to the Adopters Table', () => { | ||
| casestudiespage.verifyScrollDown(); | ||
| }); | ||
| }); | ||
|
|
||
| describe('Links under Resources Section', () => { | ||
| let links; | ||
|
|
||
| before(() => { | ||
| cy.fixture('caseStudiesLinks').then((data) => { | ||
| links = data; | ||
| }); | ||
| }); | ||
|
|
||
| it('Verifies all Links under Resources work', () => { | ||
| verifyLinks(links, (href, label) => casestudiespage.verifyResourceLink(href), 'href', 'label'); | ||
| }); | ||
| }); |
This file contains hidden or 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 hidden or 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,82 @@ | ||
| [ | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=_MwzLZMwFN8", | ||
| "label": "Video: Raiffeisen Bank - GitOps with AsyncAPI" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=m8I0fYjx6Cc", | ||
| "label": "Video: LEGO Group - Documentation as Configuration" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=qjarcJQVLOg", | ||
| "label": "Video: LEGO Group - Cross-Domain Events" | ||
| }, | ||
| { | ||
| "href": "https://www.confluent.io/events/kafka-summit-apac-2021/self-service-events-and-decentralised-governance-with-asyncapi-a-real-world/", | ||
| "label": "Video: Bank of New Zealand - Self-service Events" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=yjHgT0n2BtA", | ||
| "label": "Video: Zora Robotics - MQTT APIs for IoT" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=SxTpGRaNIPo", | ||
| "label": "Video: Walmart and eBay - AsyncAPI Specification" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=0_7QZyKLPoE", | ||
| "label": "Video: Postman - Synapse Event Infrastructure" | ||
| }, | ||
| { | ||
| "href": "https://drive.google.com/file/d/1AVCG9_fFtuOtrvZVZWENmU2aDT7C51Jr/view?usp=sharing", | ||
| "label": "Slides: Adobe - AsyncAPI and Modelina" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=m4KS6FSeTT4", | ||
| "label": "Video: Open University of Catalonia - Smart Ports" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=CGLlxYy66LY", | ||
| "label": "Video: Oracle - Data Replication" | ||
| }, | ||
| { | ||
| "href": "https://www.asyncapi.com/blog/transfergo-asyncapi-story", | ||
| "label": "Article: TransferGo - AsyncAPI Story" | ||
| }, | ||
| { | ||
| "href": "https://drive.google.com/file/d/1y67PI8NaITPPwZAiDF2Zs7ISfcIpqMV8/view?usp=sharing", | ||
| "label": "Slides: Kuehne+Nagel - GitOps for Kafka" | ||
| }, | ||
| { | ||
| "href": "https://adidas.gitbook.io/api-guidelines/asynchronous-api-guidelines/kafka-asynchronous-guidelines/a_introduction/why-asyncapi", | ||
| "label": "Docs: Adidas - API Guidelines" | ||
| }, | ||
| { | ||
| "href": "https://drive.google.com/file/d/1YzLwQZsMUXGwj_Lsqv-ZnvV2knuowWrS/view?usp=drive_link", | ||
| "label": "Slides: Morgan Stanley - WebSocket APIs" | ||
| }, | ||
| { | ||
| "href": "https://www.asyncapi.com/casestudies/adeogroup", | ||
| "label": "Use Case: Adeo - Documentation Standards" | ||
| }, | ||
| { | ||
| "href": "https://www.asyncapi.com/casestudies/hdiglobal", | ||
| "label": "Use Case: HDI Global SE - Documentation" | ||
| }, | ||
| { | ||
| "href": "https://www.youtube.com/watch?v=KcYiD67gEh0&list=PLbi1gRlP7pig_nA0tRlr0hU_h5sB2HXcq&index=6", | ||
| "label": "Video: SAP - Event Catalog" | ||
| }, | ||
| { | ||
| "href": "https://www.slideshare.net/slideshow/apidays-paris-2022-adding-a-mock-as-a-service-capability-to-your-api-strategy-portfolio-ludovic-pourrat-lombard-odier/255041645#4", | ||
| "label": "Slides: Lombard Odier - Mock as a Service" | ||
| }, | ||
| { | ||
| "href": "https://github.com/siemens/rosita", | ||
| "label": "Code: Siemens AG - ROS2 Interfaces" | ||
| }, | ||
| { | ||
| "href": "https://github.com/pagopa/p4pa-registries/blob/develop/asyncapi/generated.asyncapi.json", | ||
| "label": "Code: PagoPA - Event-Driven APIs" | ||
| } | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.