Skip to content

Commit 5ef3b29

Browse files
committed
Ensure the progress message matches everywhere we use it
1 parent 0500957 commit 5ef3b29

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

includes/Classifai/Features/TextToSpeech.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ function_exists( 'as_has_scheduled_action' ) &&
452452

453453
if ( $is_as_scheduled_job ) : ?>
454454
<p>
455-
<?php esc_html_e( 'Audio generation is in progress.', 'classifai' ); ?>
455+
<?php esc_html_e( 'Audio generation is in progress', 'classifai' ); ?>
456456
</p>
457457
<?php else : ?>
458458

tests/cypress/integration/language-processing/text-to-speech-amazon-polly.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe( '[Language Processing] Text to Speech (Amazon Polly) Tests', () => {
4040
cy.get( '.classifai-panel' ).click();
4141
cy.get( '.classifai-panel' ).should(
4242
'contain',
43-
'Audio generation is in progress.'
43+
'Audio generation is in progress'
4444
);
4545
cy.exec(
4646
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -52,7 +52,7 @@ describe( '[Language Processing] Text to Speech (Amazon Polly) Tests', () => {
5252
cy.reload();
5353
cy.get( '.classifai-panel' ).should(
5454
'not.contain',
55-
'Audio generation is in progress.'
55+
'Audio generation is in progress'
5656
);
5757
cy.get( '#classifai-audio-controls__preview-btn' ).should( 'exist' );
5858
} );
@@ -123,7 +123,7 @@ describe( '[Language Processing] Text to Speech (Amazon Polly) Tests', () => {
123123

124124
cy.get( '#classifai-text-to-speech-meta-box' ).should(
125125
'contain',
126-
'Audio generation is in progress.'
126+
'Audio generation is in progress'
127127
);
128128
cy.exec(
129129
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -135,7 +135,7 @@ describe( '[Language Processing] Text to Speech (Amazon Polly) Tests', () => {
135135
cy.reload();
136136
cy.get( '#classifai-text-to-speech-meta-box' ).should(
137137
'not.contain',
138-
'Audio generation is in progress.'
138+
'Audio generation is in progress'
139139
);
140140

141141
cy.get( '#classifai-text-to-speech-meta-box' ).should( 'exist' );

tests/cypress/integration/language-processing/text-to-speech-elevenlabs.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe( '[Language Processing] Text to Speech (ElevenLabs) Tests', () => {
3838
cy.get( '.classifai-panel' ).click();
3939
cy.get( '.classifai-panel' ).should(
4040
'contain',
41-
'Audio generation is in progress.'
41+
'Audio generation is in progress'
4242
);
4343
cy.exec(
4444
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -50,7 +50,7 @@ describe( '[Language Processing] Text to Speech (ElevenLabs) Tests', () => {
5050
cy.reload();
5151
cy.get( '.classifai-panel' ).should(
5252
'not.contain',
53-
'Audio generation is in progress.'
53+
'Audio generation is in progress'
5454
);
5555
cy.get( '#classifai-audio-controls__preview-btn' ).should( 'exist' );
5656
} );
@@ -121,7 +121,7 @@ describe( '[Language Processing] Text to Speech (ElevenLabs) Tests', () => {
121121

122122
cy.get( '#classifai-text-to-speech-meta-box' ).should(
123123
'contain',
124-
'Audio generation is in progress.'
124+
'Audio generation is in progress'
125125
);
126126
cy.exec(
127127
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -133,7 +133,7 @@ describe( '[Language Processing] Text to Speech (ElevenLabs) Tests', () => {
133133
cy.reload();
134134
cy.get( '#classifai-text-to-speech-meta-box' ).should(
135135
'not.contain',
136-
'Audio generation is in progress.'
136+
'Audio generation is in progress'
137137
);
138138

139139
cy.get( '#classifai-text-to-speech-meta-box' ).should( 'exist' );

tests/cypress/integration/language-processing/text-to-speech-microsoft-azure.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe( '[Language Processing] Text to Speech (Microsoft Azure) Tests', () =>
4040
cy.get( '.classifai-panel' ).click();
4141
cy.get( '.classifai-panel' ).should(
4242
'contain',
43-
'Audio generation is in progress.'
43+
'Audio generation is in progress'
4444
);
4545
cy.exec(
4646
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -52,7 +52,7 @@ describe( '[Language Processing] Text to Speech (Microsoft Azure) Tests', () =>
5252
cy.reload();
5353
cy.get( '.classifai-panel' ).should(
5454
'not.contain',
55-
'Audio generation is in progress.'
55+
'Audio generation is in progress'
5656
);
5757
cy.get( '#classifai-audio-controls__preview-btn' ).should( 'exist' );
5858
} );
@@ -123,7 +123,7 @@ describe( '[Language Processing] Text to Speech (Microsoft Azure) Tests', () =>
123123

124124
cy.get( '#classifai-text-to-speech-meta-box' ).should(
125125
'contain',
126-
'Audio generation is in progress.'
126+
'Audio generation is in progress'
127127
);
128128
cy.exec(
129129
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -135,7 +135,7 @@ describe( '[Language Processing] Text to Speech (Microsoft Azure) Tests', () =>
135135
cy.reload();
136136
cy.get( '#classifai-text-to-speech-meta-box' ).should(
137137
'not.contain',
138-
'Audio generation is in progress.'
138+
'Audio generation is in progress'
139139
);
140140

141141
cy.get( '#classifai-text-to-speech-meta-box' ).should( 'exist' );

tests/cypress/integration/language-processing/text-to-speech-openai-text-to-speech.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe( '[Language Processing] Text to Speech (OpenAI) Tests', () => {
3535
cy.get( '.classifai-panel' ).click();
3636
cy.get( '.classifai-panel' ).should(
3737
'contain',
38-
'Audio generation is in progress.'
38+
'Audio generation is in progress'
3939
);
4040
cy.exec(
4141
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -47,7 +47,7 @@ describe( '[Language Processing] Text to Speech (OpenAI) Tests', () => {
4747
cy.reload();
4848
cy.get( '.classifai-panel' ).should(
4949
'not.contain',
50-
'Audio generation is in progress.'
50+
'Audio generation is in progress'
5151
);
5252
cy.get( '#classifai-audio-controls__preview-btn' ).should( 'exist' );
5353
} );
@@ -117,7 +117,7 @@ describe( '[Language Processing] Text to Speech (OpenAI) Tests', () => {
117117

118118
cy.get( '#classifai-text-to-speech-meta-box' ).should(
119119
'contain',
120-
'Audio generation is in progress.'
120+
'Audio generation is in progress'
121121
);
122122
cy.exec(
123123
'npx wp-env run tests-cli wp action-scheduler run --hooks=classifai_schedule_text_to_speech_job',
@@ -129,7 +129,7 @@ describe( '[Language Processing] Text to Speech (OpenAI) Tests', () => {
129129
cy.reload();
130130
cy.get( '#classifai-text-to-speech-meta-box' ).should(
131131
'not.contain',
132-
'Audio generation is in progress.'
132+
'Audio generation is in progress'
133133
);
134134

135135
cy.get( '#classifai-text-to-speech-meta-box' ).should( 'exist' );

0 commit comments

Comments
 (0)