Skip to content

Commit

Permalink
Try Test Suite
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikey-visa committed Apr 3, 2024
1 parent 104048b commit 3ad584e
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 10 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ jobs:
distribution: "zulu"
java-version: 17
- uses: gradle/gradle-build-action@v2
- uses: actions/setup-python@v4
if: ${{ needs.setup.outputs.ingestion_change == 'true' }}
with:
python-version: "3.10"
cache: pip
- name: Gradle build (and test) for NOT metadata ingestion
if: ${{ matrix.command == 'except_metadata_ingestion' && needs.setup.outputs.backend_change == 'true' }}
run: |
Expand Down Expand Up @@ -118,9 +113,6 @@ jobs:
steps:
- name: Check out the repo
uses: acryldata/sane-checkout-action@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Quickstart Compose Validation
run: ./docker/quickstart/generate_and_compare.sh

Expand Down
36 changes: 36 additions & 0 deletions datahub-web-react/src/Mocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1857,6 +1857,42 @@ export const mlModelGroup = {
} as MlModelGroup;

export const recommendationModules = [
{
title: 'Datasets',
moduleId: 'Datasets',
renderType: RecommendationRenderType.EntityNameList,
content: [
{
entity: {
...dataset2,
},
},
],
},
{
title: 'Explore your data',
moduleId: 'Exploreyourdata',
renderType: RecommendationRenderType.EntityNameList,
content: [
{
entity: {
...dataset2,
},
},
],
},
{
title: 'Some Other Dataset 1',
moduleId: 'SomeOtherDataset1',
renderType: RecommendationRenderType.EntityNameList,
content: [
{
entity: {
...dataset2,
},
},
],
},
{
title: 'Most Popular',
moduleId: 'MostPopular',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('Recommendations', () => {
await waitFor(() => expect(getByText('Popular Tags')).toBeInTheDocument());
await waitFor(() => expect(getByText('TestTag')).toBeInTheDocument());
await waitFor(() => expect(getByText('Most Popular')).toBeInTheDocument());
await waitFor(() => expect(getByText('Some Other Dataset')).toBeInTheDocument());
await waitFor(() => expect(getByText('Some Other Dataset 1')).toBeInTheDocument());
});

it('search results renders recommendations', async () => {
Expand All @@ -55,7 +55,7 @@ describe('Recommendations', () => {
await waitFor(() => expect(getByText('Popular Tags')).toBeInTheDocument());
await waitFor(() => expect(getByText('TestTag')).toBeInTheDocument());
await waitFor(() => expect(getByText('Most Popular')).toBeInTheDocument());
await waitFor(() => expect(getByText('Some Other Dataset')).toBeInTheDocument());
await waitFor(() => expect(getByText('Some Other Dataset 1')).toBeInTheDocument());
});

// TODO: Uncomment once entity sidebar recs are fully supported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ describe("mutations", () => {

cy.goToDataset("urn:li:dataset:(urn:li:dataPlatform:hive,cypress_logging_events,PROD)", "cypress_logging_events");
cy.clickOptionWithText("event_data");
cy.wait(2000);
cy.get('[data-testid="schema-field-event_data-businessAttribute"]').trigger(
"mouseover",
{ force: true }
Expand Down

0 comments on commit 3ad584e

Please sign in to comment.