Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Firebase Terms of Service is not accepted. Navigate to your project's overview page on the Actions Console to accept the Terms of Service #4

@panaC

Description

@panaC
1) Test Suite
       "before all" hook: Before all setup for "trigger only test":
     Error: 9 FAILED_PRECONDITION: Firebase Terms of Service is not accepted. Navigate to your project's overview page on the Actions Console to accept the Terms of Service.
      at Object.callErrorFromStatus (node_modules/@grpc/grpc-js/build/src/call.js:31:26)
      at Object.onReceiveStatus (node_modules/@grpc/grpc-js/build/src/client.js:244:52)
      at Object.onReceiveStatus (node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141)
      at Object.onReceiveStatus (node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
      at /home/pierre/Documents/edrlab/audiobooks/audiobooks/test/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78
      at processTicksAndRejections (internal/process/task_queues.js:75:11)

any idea how to solve this issue ?

import 'mocha';

import {ActionsOnGoogleTestManager} from '@assistant/conversation-testing';

const DEFAULT_LOCALE = 'en-US';
const DEFAULT_SURFACE = 'PHONE';

const PROJECT_ID = 'audiobooks-a';
const TRIGGER_PHRASE = 'Parler avec audiobooks';

describe('Test Suite', function () {
  // Set the timeout for each test run to 60s.
  this.timeout(60000);
  let testManager: ActionsOnGoogleTestManager;

  before('Before all setup', async () => {
    testManager = new ActionsOnGoogleTestManager({projectId: PROJECT_ID});
    await testManager.writePreviewFromDraft();
    testManager.setSuiteLocale(DEFAULT_LOCALE);
    testManager.setSuiteSurface(DEFAULT_SURFACE);
  });

  it('trigger only test', async () => {
    await testManager.sendQuery(TRIGGER_PHRASE);
    testManager.assertIntent('actions.intent.MAIN');
    // testManager.assertScene('Welcome');
    // testManager.assertSpeech('Welcome to Facts about Google!');
  });

  afterEach('post test cleans', async () => {
    testManager.cleanUpAfterTest();
  });
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions