Skip to content

← All questions

Can two projects share one page object, or do we copy the file and live with it?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

We run two projects against the same design system: same header, same login form, same data grid, different products around them. The login page object is now duplicated in projects/storefront/pages/ and projects/admin/pages/, and they have already drifted.

Is there a supported way to share the class, something at the workspace level maybe, or is copying the intended answer?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related