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

[Web Components | e2e testing] Create build script to generate isolated tests for each component #6250

Closed
2 tasks
jeffchew opened this issue Jun 3, 2021 · 1 comment
Assignees
Labels
dev Needs some dev work package: web components Work necessary for the IBM.com Library web components package priority: high
Milestone

Comments

@jeffchew
Copy link
Member

jeffchew commented Jun 3, 2021

User Story

As a [user role below]:
Carbon for IBM.com tester

I need to:
Create a build script that will build all of the codesandbox components individually

so that I can:
ensure that each component can be built properly in isolation

Additional information

  • Creation of each individual codesandbox can ensure that the components can be built in isolation, as it is unclear if there are missing imports in environments like storybook or the test application
  • Tests can be generated for each component, though will not be captured as the scope of this issue

Acceptance criteria

  • Build script created that will generate the dist folder for each component from codesandbox examples
  • CI setup to run the build script (if long build times, should be a cron nightly perhaps)
@jeffchew jeffchew added dev Needs some dev work package: web components Work necessary for the IBM.com Library web components package priority: high labels Jun 3, 2021
@jeffchew jeffchew added this to the Sprint 21-11 milestone Jun 3, 2021
@jeffchew jeffchew self-assigned this Jun 3, 2021
@jeffchew
Copy link
Member Author

jeffchew commented Jun 3, 2021

@RobertaJHahn , I created this issue to properly track the work I have been doing for a good portion of this sprint.

I'll be taking on #6139 next sprint, followed by #6142 the following sprint.

I still have one more issue to create as a follow on for this issue too.

kodiakhq bot pushed a commit that referenced this issue Jun 7, 2021
…nts (#6258)

### Related Ticket(s)

#6250 

### Description

This PR will remove the older integration bundle build tests, and replace with a new script that will build all code sandbox examples. 

In addition, a CI flow has been drafted, and will be updated to point to the main repo once this is merged in.

There is a follow-on issue #6251 that will add cypress to testing each individual component based on the built isolated components.

### Changelog

**New**

- e2e test build script for web components

**Removed**

- original integration bundle/build script

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
@RobertaJHahn RobertaJHahn removed the moved label Jun 7, 2021
IgnacioBecerra pushed a commit to IgnacioBecerra/ibm-dotcom-library that referenced this issue Jun 9, 2021
…nts (carbon-design-system#6258)

### Related Ticket(s)

carbon-design-system#6250 

### Description

This PR will remove the older integration bundle build tests, and replace with a new script that will build all code sandbox examples. 

In addition, a CI flow has been drafted, and will be updated to point to the main repo once this is merged in.

There is a follow-on issue carbon-design-system#6251 that will add cypress to testing each individual component based on the built isolated components.

### Changelog

**New**

- e2e test build script for web components

**Removed**

- original integration bundle/build script

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "package: styles": Carbon Expressive -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Needs some dev work package: web components Work necessary for the IBM.com Library web components package priority: high
Projects
None yet
Development

No branches or pull requests

2 participants