actions-on-google / actions-on-google-testing-nodejs

Apache License 2.0
75 stars 18 forks source link

how to test account linking? #30

Closed ujja closed 5 years ago

ujja commented 5 years ago

Hi,

Is there a way to test the account linking process? (https://developers.google.com/actions/identity/google-sign-in)

As far as I know generate-credentials.js links my account to the app, so with this lib I can't test my Action with a user who is not linked yet?

(From aog simulator I can start a conversation with a user who is not linked yet.)

ujja commented 5 years ago

I will check something tomorrow, and update my question

Fleker commented 5 years ago

Unfortunately this is one feature that currently is unable to be automated right now.

ujja commented 5 years ago

UPDATE:

It is not possible to test the account linking process itself by this lib. But at least there is no error, just no response:

Start Signin // This intent starts the Account linking in Fulfillment. User is not linked yet. { micOpen: false, textToSpeech: [], displayText: [], ssml: [], suggestions: [] }

And it is possible to test the conversation with linked, and not linked user.

ghost commented 5 years ago

Is it possible to test an intent that requires account linking to work?

Fleker commented 5 years ago

To get account linking to work, you'd need to set up account linking to the action ahead of time for the test Google account.

ghost commented 5 years ago

Thanks!