Skip to content

Commit

Permalink
Test: Temporarily disable all visual tests and SCSS loading
Browse files Browse the repository at this point in the history
  • Loading branch information
crishpeen committed Aug 16, 2024
1 parent 15a406f commit 426facb
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 30 deletions.
8 changes: 4 additions & 4 deletions packages/web/src/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ⚠️ Order matters!
// Layers are ordered by specificity, from the most generic rules to components to high-specificity overrides.

@forward 'foundation';
@forward 'components';
@forward 'helpers';
@forward 'utilities';
// @forward 'foundation';
// @forward 'components';
// @forward 'helpers';
// @forward 'utilities';
File renamed without changes.
30 changes: 15 additions & 15 deletions tests/e2e/components/demo-modal-compare.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,25 @@ const modalTestConfigs: ModalTestConfig[] = [
const componentName = 'Modal';

const testConfigs: TestConfig[] = [
{
componentName,
componentsDir: '/src/scss/components',
packageName: 'web',
},
{
componentName,
componentsDir: '/src/components',
packageName: 'web-react',
},
// {
// componentName,
// componentsDir: '/src/scss/components',
// packageName: 'web',
// },
// {
// componentName,
// componentsDir: '/src/components',
// packageName: 'web-react',
// },
];

// Disable web-twig tests for now on CI, because we don't have a way to run them in CI yet.
if (!isTestingEnvironment()) {
testConfigs.push({
componentName,
componentsDir: '/components',
packageName: 'web-twig',
});
// testConfigs.push({
// componentName,
// componentsDir: '/components',
// packageName: 'web-twig',
// });
}

testConfigs.forEach(runComponentCompareTests);
45 changes: 44 additions & 1 deletion tests/e2e/demo-components-compare.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,50 @@ import { readdirSync } from 'fs';
import { formatPackageName, getServerUrl, takeScreenshot, waitForPageLoad } from '../helpers';

// Tests that are intentionally broken, but will be fixed in the future
const IGNORED_TESTS: string[] = [];
const IGNORED_TESTS: string[] = [
'Accordion',
'Alert',
'Breadcrumbs',
'Button',
'ButtonLink',
'Checkbox',
'Collapse',
'Container',
'Divider',
'Dropdown',
'FieldGroup',
'FileUploader',
'Grid',
'Header',
'Heading',
'Icon',
'Item',
'Link',
'Modal',
'Pagination',
'Pill',
'Radio',
'ScrollView',
'Select',
'Spinner',
'Stack',
'Tabs',
'Tag',
'Text',
'TextArea',
'TextField',
'Toast',
'Tooltip',
'UNSTABLE_ActionLayout',
'UNSTABLE_Avatar',
'UNSTABLE_EmptyState',
'UNSTABLE_PartnerLogo',
'UNSTABLE_ProductLogo',
'UNSTABLE_Section',
'UNSTABLE_Slider',
'UNSTABLE_Toggle',
'UNSTABLE_Truncate',
];

interface TestConfig {
packageDir: string;
Expand Down
20 changes: 10 additions & 10 deletions tests/e2e/demo-homepages.spec.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { isTesting } from '@lmc-eu/spirit-common/constants/environments';
import { SERVERS, getDevelopmentEndpointUri } from '@lmc-eu/spirit-common/constants/servers';
// import { isTesting } from '@lmc-eu/spirit-common/constants/environments';
// import { SERVERS, getDevelopmentEndpointUri } from '@lmc-eu/spirit-common/constants/servers';
import { test } from '@playwright/test';
import { takeScreenshot, waitForPageLoad } from '../helpers';

test.describe('Demo Homepages', () => {
const demos = [
{
url: isTesting() ? SERVERS.TESTING.web : getDevelopmentEndpointUri('web', { isDocker: true }),
package: 'web',
},
{
url: isTesting() ? SERVERS.TESTING['web-react'] : getDevelopmentEndpointUri('web-react', { isDocker: true }),
package: 'web-react',
},
// {
// url: isTesting() ? SERVERS.TESTING.web : getDevelopmentEndpointUri('web', { isDocker: true }),
// package: 'web',
// },
// {
// url: isTesting() ? SERVERS.TESTING['web-react'] : getDevelopmentEndpointUri('web-react', { isDocker: true }),
// package: 'web-react',
// },
];

for (const demo of demos) {
Expand Down

0 comments on commit 426facb

Please sign in to comment.