Skip to content
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

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
05cad45
Add generic bread crumb
tendomart Feb 25, 2024
4c545db
Remove unnecessary breadcrumb segment
tendomart Feb 25, 2024
bbb4728
Add home breadcrumb to immunohistochemistry dashboard
tendomart Feb 25, 2024
c700830
Add routine reports to list
tendomart Feb 26, 2024
cbd4489
Merge branch 'I-TECH-UW:develop_3x' into develop_3x
tendomart Feb 28, 2024
b6e5e87
Refactoring Generic bread crumb, add GenericBreadCrumb to Immunohisto…
tendomart Feb 29, 2024
38fd3b5
change to GenericHomeBreadCrumb in ImmunohistochemistryDashboard.js
tendomart Feb 29, 2024
b5c1aa7
Adding generic features for breadcrumbs
tendomart Feb 29, 2024
2a6d7a9
Add breadcrumb to cytology dashboard
tendomart Mar 4, 2024
a3e3e68
Add breadcrumb to admin page
tendomart Mar 4, 2024
4111c4b
Merge branch 'develop_3x' of https://github.com/tendomart/OpenELIS-Gl…
tendomart Mar 4, 2024
89d6002
Add breadcrumb to workplan
tendomart Mar 4, 2024
27c2c9d
Add breadcrumb to pathology dashboard
tendomart Mar 4, 2024
471add1
Add home breadcrumb to validation page
tendomart Mar 5, 2024
ab3e8fc
Doing more changes
tendomart Mar 18, 2024
5364dbe
Fix merge conflicts
tendomart Mar 22, 2024
394d187
Fix merge conflicts
tendomart Mar 22, 2024
2251652
Add e2e jobs for Chrome and firefox browsers
tendomart Mar 22, 2024
861a3be
Merge branch 'develop_3x' into develop_3x
tendomart Mar 22, 2024
1849332
Merge branch 'develop_3x' into develop_3x
tendomart Mar 22, 2024
c527c4e
Merge branch 'develop_3x' into develop_3x
mozzy11 Mar 26, 2024
3c817a3
Merge branch 'I-TECH-UW:develop_3x' into develop_3x
tendomart Mar 26, 2024
993d068
Add e2e jobs for Chrome and firefox browsers
tendomart Mar 22, 2024
b0de11f
Add e2e jobs for Chrome and firefox browsers
tendomart Mar 22, 2024
124d335
Merge branch 'develop_3x' into develop_3x
tendomart Mar 28, 2024
189308d
Merge branch 'develop_3x' into develop_3x
tendomart Apr 4, 2024
b87a989
Merge branch 'develop_3x' into develop_3x
tendomart Apr 8, 2024
30e3f97
Merge branch 'develop_3x' into develop_3x
tendomart Apr 15, 2024
711ec40
Merge branch 'develop' into develop_3x
tendomart Jun 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/frontend-e2e-tests.yml
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/github-action@v6.5.0
with:
start: npm run start

- name: E2E on Chrome
uses: actions/checkout@v4
- uses: cypress-io/github-action@v6.5.0
with:
browser: chrome

- name: E2E on Firefox
uses: actions/checkout@v4
- uses: cypress-io/github-action@v6
with:
browser: firefox
2 changes: 2 additions & 0 deletions frontend/src/components/admin/Admin.js
Copy link
Contributor

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.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import {
SideNavMenu,
SideNavMenuItem,
} from "@carbon/react";
import GenericHomeBreadCrumb from "../common/GenericBreadCrumb";
import { CommonProperties } from "./menu/CommonProperties";
import ConfigMenuDisplay from "./formEntry/common/ConfigMenuDisplay";
import ProviderMenu from "./ProviderMenu/ProviderMenu";
Expand Down Expand Up @@ -63,6 +64,7 @@ function Admin() {
defaultExpanded={true}
isRail={isSmallScreen}
>
<GenericHomeBreadCrumb/>
<SideNavItems className="adminSideNav">
<SideNavMenu
renderIcon={Microscope}
Expand Down
68 changes: 68 additions & 0 deletions frontend/src/components/common/GenericBreadCrumb.js
Copy link
Contributor

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.

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;
1 change: 1 addition & 0 deletions frontend/src/components/validation/Index.js
Copy link
Contributor

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.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Index = () => {
<Section>
<Section>
<Heading>
<GenericHomeBreadCrumb/>
<FormattedMessage id="sidenav.label.validation" />
</Heading>
</Section>
Expand Down
Loading