-
Notifications
You must be signed in to change notification settings - Fork 264
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
Add e2e jobs for Chrome and firefox browsers #859
Changes from all commits
05cad45
4c545db
bbb4728
c700830
cbd4489
b6e5e87
38fd3b5
b5c1aa7
2a6d7a9
a3e3e68
4111c4b
89d6002
27c2c9d
471add1
ab3e8fc
5364dbe
394d187
2251652
861a3be
1849332
c527c4e
3c817a3
993d068
b0de11f
124d335
189308d
b87a989
30e3f97
711ec40
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: OpenELis Frontend QA framework workflow | ||
on: | ||
push: | ||
branches: | ||
- develop_3x | ||
workflow_dispatch: | ||
jobs: | ||
e2e: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Checkout OpenELIS-Global2 | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: ${{github.repository}} | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "14" | ||
|
||
- name: Install Dependencies | ||
run: npm i | ||
working-directory: frontend | ||
|
||
- name: Run Cypress | ||
uses: cypress-io/[email protected] | ||
with: | ||
start: npm run start | ||
|
||
- name: E2E on Chrome | ||
uses: actions/checkout@v4 | ||
- uses: cypress-io/[email protected] | ||
with: | ||
browser: chrome | ||
|
||
- name: E2E on Firefox | ||
uses: actions/checkout@v4 | ||
- uses: cypress-io/github-action@v6 | ||
with: | ||
browser: firefox |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are changes to this file necessary for adding end-to-end (e2e) jobs for Chrome and Firefox browsers? I think these came by mistake from a previous commit. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import React from "react"; | ||
import { | ||
Breadcrumb, | ||
BreadcrumbItem, | ||
Grid, | ||
Column, | ||
} from "@carbon/react"; | ||
import { useIntl } from "react-intl"; | ||
import { Link, useLocation } from 'react-router-dom'; | ||
|
||
const GenericHomeBreadCrumb = () => { | ||
const intl = useIntl(); | ||
|
||
|
||
const Breadcrumbs = ({ title, breadcrumbs }) => { | ||
return ( | ||
<Grid fullWidth={true}> | ||
<Column lg={16}> | ||
<Breadcrumb> | ||
<BreadcrumbItem href="/"> | ||
|
||
{breadcrumbs.map((crumb, index) => ( | ||
<span key={index}> | ||
{index < breadcrumbs.length - 1 ? ( | ||
<Link to={crumb.link}>{crumb.label}</Link> | ||
) : ( | ||
<span>{crumb.label}</span> | ||
)} | ||
{index < breadcrumbs.length - 1 && '>'} | ||
</span> | ||
))} | ||
|
||
</BreadcrumbItem> | ||
</Breadcrumb> | ||
</Column> | ||
</Grid> | ||
); | ||
}; | ||
|
||
const breadcrumbData = [ | ||
{ path: '/', title: intl.formatMessage({ id: "home.label" }) }, | ||
{ path: '/ResultValidation', title: intl.formatMessage({ id: "sidenav.label.validation" }) } | ||
// { path: '/validation/:productId', title: ({ match }) => `Product: ${match.params.productId}` }, | ||
|
||
]; | ||
|
||
const location = useLocation(); | ||
const currentPath = location.pathname; | ||
const currentData = breadcrumbData[currentPath]; | ||
|
||
|
||
return( | ||
<> | ||
{currentData && <Breadcrumbs {...currentData} />} | ||
<Grid fullWidth={true}> | ||
<Column lg={16}> | ||
<Breadcrumb> | ||
<BreadcrumbItem href="/"> | ||
{intl.formatMessage({ id: "home.label" })} | ||
</BreadcrumbItem> | ||
</Breadcrumb> | ||
</Column> | ||
</Grid> | ||
</> | ||
); | ||
}; | ||
|
||
export default GenericHomeBreadCrumb; |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are changes to this file necessary for adding end-to-end (e2e) jobs for Chrome and Firefox browsers? I think these came by mistake from a previous commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are changes to this file necessary for adding end-to-end (e2e) jobs for Chrome and Firefox browsers? I think these came by mistake from a previous commit.