Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Update wdio config #4068

Merged
merged 5 commits into from
Mar 20, 2024
Merged

Update wdio config #4068

merged 5 commits into from
Mar 20, 2024

Conversation

sdadn
Copy link
Contributor

@sdadn sdadn commented Mar 20, 2024

Summary

This PR simplifies the wdio config and does so miscellaneous code cleanup.

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details


Thank you for contributing to Terra.
@cerner/terra

@sdadn sdadn self-assigned this Mar 20, 2024
@sdadn sdadn requested a review from a team as a code owner March 20, 2024 15:10
@github-actions github-actions bot temporarily deployed to preview-pr-4068 March 20, 2024 15:10 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-4068 March 20, 2024 15:16 Destroyed
wdio.conf.js Outdated

const wdioConfig = defaultWdioConfig.config;
config.specs = ['./packages/**/wdio/**/*-spec.js'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this break on windows? We're not using path.join anymore to normalize between POSIX vs non-POSIX.

Do we also still need to strip out the @cerner stuff from package names?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the other scripts are also unix based and we use devcontainers for windows development anyway so this shouldn't affect it.

The @cerner/ stripping is to convert the package name to the folder name, which I am now doing directly using a glob.

wdio.conf.js Outdated

const wdioConfig = defaultWdioConfig.config;
config.specs = ['./packages/**/wdio/**/*-spec.js'];
Copy link
Contributor

@cm9361 cm9361 Mar 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we no longer need "tests" in the path? It appears to be there in the wdioConfig.specs path on line 9

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, good catch! Updated here: 07d8bf4

Interestingly, it still worked for some reason.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would still work because the packages/** would cover any directory structure in between. It just would not limit to the specific path that was in place before.

@github-actions github-actions bot temporarily deployed to preview-pr-4068 March 20, 2024 16:20 Destroyed
@github-actions github-actions bot temporarily deployed to preview-pr-4068 March 20, 2024 16:33 Destroyed
@sdadn sdadn merged commit 9317828 into main Mar 20, 2024
22 checks passed
@sdadn sdadn deleted the update-wdio-config branch March 20, 2024 19:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants