-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frontend: quickstart-vdk operability tests using cypress
Why? We test that the docker image is starting correctly, but we don't actually test that the frontend is operational. This has resulted in docker images where the docker image starts, but the frontend is not operational with no way of detecting the problem. What? Move regular e2e tests into their own directory Introduce quickstart-smoke script Create basic cypress smoke test for the frontend Run smoke test after deployment to test environment How was this tested? Ran quickstart-vdk locally and ran cypress against frontend CI What kind of change is this? Feature/non-breaking Signed-off-by: Dilyan Marinov <[email protected]>
- Loading branch information
Dilyan Marinov
committed
Jul 5, 2023
1 parent
25bf97c
commit 3ac3909
Showing
17 changed files
with
134 additions
and
13 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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
50 changes: 50 additions & 0 deletions
50
...cts/frontend/data-pipelines/gui/e2e/integration/quickstart-operability/quickstart.spec.js
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,50 @@ | ||
/* | ||
* Copyright 2021-2023 VMware, Inc. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/// <reference types="cypress" /> | ||
|
||
import { GetStartedPagePO } from '../../support/pages/get-started/get-started-page.po'; | ||
import { DataJobsManagePage } from '../../support/pages/manage/data-jobs/data-jobs.po'; | ||
import { BasePagePO } from '../../support/pages/base/base-page.po'; | ||
|
||
describe('Check if quickstart-vdk frontend is operational', () => { | ||
describe('smoke', { tags: ['@smoke'] }, () => { | ||
it('navigates to root page and the page loads correctly', () => { | ||
const getStartedPage = BasePagePO.navigateToNoBootstrap(); | ||
getStartedPage | ||
.getPageTitle() | ||
.invoke('text') | ||
.invoke('trim') | ||
.should('eq', 'Get Started with Data Pipelines'); | ||
}); | ||
|
||
it('navigates to get-started page and the page loads correctly', () => { | ||
const getStartedPage = GetStartedPagePO.navigateToNoBootstrap(); | ||
getStartedPage | ||
.getPageTitle() | ||
.invoke('text') | ||
.invoke('trim') | ||
.should('eq', 'Get Started with Data Pipelines'); | ||
}); | ||
|
||
it('navigates to manage page and the page loads correctly', () => { | ||
const dataJobsManagePage = | ||
DataJobsManagePage.navigateToNoBootstrap(); | ||
|
||
dataJobsManagePage | ||
.getPageTitle() | ||
.scrollIntoView() | ||
.should('be.visible') | ||
.invoke('text') | ||
.invoke('trim') | ||
.should('eq', 'Manage Data Jobs'); | ||
|
||
dataJobsManagePage | ||
.getDataGrid() | ||
.scrollIntoView() | ||
.should('be.visible'); | ||
}); | ||
}); | ||
}); |
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
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