From 7e33d1eb4007b40351fb44d9d1f8231de2d35353 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 24 May 2022 08:37:28 +0000 Subject: [PATCH] test: remove material-design-icons e2e test This test is currently causing timeouts and was removed in the v13 branch through https://github.com/angular/angular-cli/pull/15096 --- .../e2e/tests/third-party/material-icons.ts | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 tests/legacy-cli/e2e/tests/third-party/material-icons.ts diff --git a/tests/legacy-cli/e2e/tests/third-party/material-icons.ts b/tests/legacy-cli/e2e/tests/third-party/material-icons.ts deleted file mode 100644 index b8fc94763d25..000000000000 --- a/tests/legacy-cli/e2e/tests/third-party/material-icons.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { expectFileToMatch } from '../../utils/fs'; -import { installPackage } from '../../utils/packages'; -import { ng } from '../../utils/process'; -import { updateJsonFile } from '../../utils/project'; - -export default async function() { - // Install material design icons - await installPackage('material-design-icons@3.0.1'); - - // Add icon stylesheet to application - await updateJsonFile('angular.json', workspaceJson => { - const appArchitect = workspaceJson.projects['test-project'].architect; - appArchitect.build.options.styles = [ - { input: 'node_modules/material-design-icons/iconfont/material-icons.css' }, - ]; - }); - - // Build dev application - await ng('build', '--extract-css', '--configuration=development'); - - // Ensure icons are included - await expectFileToMatch('dist/test-project/styles.css', 'Material Icons'); - - // Build prod application - await ng('build', '--extract-css', '--output-hashing=none'); - - // Ensure icons are included - await expectFileToMatch('dist/test-project/styles.css', 'Material Icons'); -}