We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901c2ae commit ef8eca4Copy full SHA for ef8eca4
integration/testUtils/signUpPageObject.ts
@@ -16,10 +16,10 @@ export const createSignUpComponentPageObject = (testArgs: TestArgs) => {
16
17
const self = {
18
...common(testArgs),
19
- goTo: async (opts: { searchParams?: URLSearchParams; headlessSelector?: string } = {}) => {
20
- await page.goToRelative('/sign-up', opts);
+ goTo: async (opts?: { searchParams?: URLSearchParams; headlessSelector?: string }) => {
+ await page.goToRelative('/sign-up', { searchParams: opts?.searchParams });
21
22
- if (typeof opts.headlessSelector !== 'undefined') {
+ if (typeof opts?.headlessSelector !== 'undefined') {
23
return self.waitForMounted(opts.headlessSelector);
24
}
25
return self.waitForMounted();
0 commit comments