Skip to content

Commit

Permalink
fix(graph): fix e2es
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Oct 13, 2023
1 parent 0953809 commit 73471b5
Show file tree
Hide file tree
Showing 7 changed files with 19,578 additions and 14 deletions.
2 changes: 1 addition & 1 deletion e2e/nx-misc/src/extras.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ describe('Extra Nx Misc Tests', () => {
const dependentLib = 'lib-dependent-123';
runCLI(`generate @nx/js:lib ${dependentLib}`);

updateProjectConfig(baseLib, (config) => {
updateJson(join(baseLib, 'project.json'), (config) => {
config.targets['build'].inputs = ['default', '^default'];
config.implicitDependencies = [dependentLib];
return config;
Expand Down
13 changes: 1 addition & 12 deletions graph/client-e2e/src/e2e/dev-task-graph.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,22 +214,11 @@ describe('dev mode - task graph', () => {
openTooltipForNode('cart:build');
cy.get('[data-cy="inputs-accordion"]').click();

cy.get('[data-cy="input-list-entry"]').should('have.length', 20);
cy.get('[data-cy="input-list-entry"]').should('have.length', 18);
const expectedSections = [
'cart-cart-page',
'cart-e2e',
'products',
'products-e2e',
'products-home-page',
'products-product-detail-page',
'shared-assets',
'shared-cart-state',
'shared-header',
'shared-jsxify',
'shared-product-data',
'shared-product-state',
'shared-product-types',
'shared-product-ui',
'shared-styles',
'External Inputs',
];
Expand Down
1 change: 1 addition & 0 deletions graph/client/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"graph/client/src/favicon.ico",
"graph/client/src/assets/project-graphs/",
"graph/client/src/assets/task-graphs/",
"graph/client/src/assets/task-inputs/",
{
"input": "graph/client/src/assets/dev-e2e",
"output": "/",
Expand Down
2 changes: 2 additions & 0 deletions graph/client/src/assets/dev-e2e/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ window.appConfig = {
label: 'e2e',
projectGraphUrl: 'assets/project-graphs/e2e.json',
taskGraphUrl: 'assets/task-graphs/e2e.json',
taskInputsUrl: 'assets/task-inputs/e2e.json',
},
{
id: 'affected',
label: 'affected',
projectGraphUrl: 'assets/project-graphs/affected.json',
taskGraphUrl: 'assets/task-graphs/affected.json',
taskInputsUrl: 'assets/task-inputs/affected.json',
},
],
defaultWorkspaceId: 'e2e',
Expand Down
Loading

0 comments on commit 73471b5

Please sign in to comment.