@@ -41,7 +41,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
4141 await visit ( `/${ registration . id } ?mode=moderator` ) ;
4242 assert . dom ( '[data-test-state-description-short]' ) . exists ( 'Short description for pending status exists' ) ;
4343 assert . dom ( '[data-test-state-description-short]' ) . hasText (
44- t ( 'registries.overview.pending.short_description' ) . toString ( ) ,
44+ t ( 'registries.overview.pending.short_description' ) ,
4545 'The registration is pending' ,
4646 ) ;
4747 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -54,14 +54,14 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
5454 'Option to accept submission exists' ,
5555 ) ;
5656 assert . dom ( '[data-test-moderation-dropdown-decision-label="accept_submission"]' ) . hasText (
57- 'Accept submission' ,
57+ t ( 'registries.makeDecisionDropdown.acceptSubmission' ) ,
5858 'Accept submission option has correct text' ,
5959 ) ;
6060 assert . dom ( '[data-test-moderation-dropdown-decision-label="reject_submission"]' ) . exists (
6161 'Option to reject submission exists' ,
6262 ) ;
6363 assert . dom ( '[data-test-moderation-dropdown-decision-label="reject_submission"]' ) . hasText (
64- 'Reject submission' ,
64+ t ( 'registries.makeDecisionDropdown.rejectSubmission' ) ,
6565 'Reject submission option has correct text' ,
6666 ) ;
6767 await percySnapshot ( assert ) ;
@@ -70,7 +70,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
7070 await click ( '[data-test-state-button]' ) ;
7171 assert . dom ( '[data-test-state-description-short]' ) . exists ( 'Short description for accepted status exists' ) ;
7272 assert . dom ( '[data-test-state-description-short]' ) . hasText (
73- t ( 'registries.overview.accepted.short_description' ) . toString ( ) ,
73+ t ( 'registries.overview.accepted.short_description' ) ,
7474 'The registration is now accepted' ,
7575 ) ;
7676 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -112,7 +112,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
112112 'Short description for pending_withdraw_request status exists' ,
113113 ) ;
114114 assert . dom ( '[data-test-state-description-short]' ) . hasText (
115- t ( 'registries.overview.pendingWithdrawRequest.short_description' ) . toString ( ) ,
115+ t ( 'registries.overview.pendingWithdrawRequest.short_description' ) ,
116116 'The registration is pending withdraw request' ,
117117 ) ;
118118 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -128,7 +128,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
128128 'Option to force withdraw exists' ,
129129 ) ;
130130 assert . dom ( '[data-test-moderation-dropdown-decision-label="force_withdraw"]' ) . hasText (
131- 'Force withdraw' ,
131+ t ( 'registries.makeDecisionDropdown.forceWithdraw' ) ,
132132 'Force withdraw option has correct text' ,
133133 ) ;
134134 await percySnapshot ( assert ) ;
@@ -149,7 +149,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
149149 'Short description for pending_withdraw status exists' ,
150150 ) ;
151151 assert . dom ( '[data-test-state-description-short]' ) . hasText (
152- t ( 'registries.overview.pendingWithdraw.short_description' ) . toString ( ) ,
152+ t ( 'registries.overview.pendingWithdraw.short_description' ) ,
153153 'The registration is pending withdraw' ,
154154 ) ;
155155 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -162,14 +162,14 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
162162 'Option to accept withdraw exists' ,
163163 ) ;
164164 assert . dom ( '[data-test-moderation-dropdown-decision-label="accept_withdrawal"]' ) . hasText (
165- 'Accept withdrawal' ,
165+ t ( 'registries.makeDecisionDropdown.acceptWithdrawal' ) ,
166166 'Accept withdrawal option has correct text' ,
167167 ) ;
168168 assert . dom ( '[data-test-moderation-dropdown-decision-label="reject_withdrawal"]' ) . exists (
169169 'Option to reject withdraw exists' ,
170170 ) ;
171171 assert . dom ( '[data-test-moderation-dropdown-decision-label="reject_withdrawal"]' ) . hasText (
172- 'Reject withdrawal' ,
172+ t ( 'registries.makeDecisionDropdown.rejectWithdrawal' ) ,
173173 'Reject withdrawal option has correct text' ,
174174 ) ;
175175 await percySnapshot ( assert ) ;
@@ -193,7 +193,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
193193 await click ( '[data-test-state-button]' ) ;
194194 assert . dom ( '[data-test-state-description-short]' ) . exists ( 'Short description for accepted status exists' ) ;
195195 assert . dom ( '[data-test-state-description-short]' ) . hasText (
196- t ( 'registries.overview.accepted.short_description' ) . toString ( ) ,
196+ t ( 'registries.overview.accepted.short_description' ) ,
197197 'The registration is now accepted' ,
198198 ) ;
199199 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -215,7 +215,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
215215 'Short description for accepted status exists' ,
216216 ) ;
217217 assert . dom ( '[data-test-state-description-short]' ) . hasText (
218- t ( 'registries.overview.accepted.short_description' ) . toString ( ) ,
218+ t ( 'registries.overview.accepted.short_description' ) ,
219219 'The registration is accepted' ,
220220 ) ;
221221 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -231,7 +231,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
231231 'Option to force withdraw exists' ,
232232 ) ;
233233 assert . dom ( '[data-test-moderation-dropdown-decision-label="force_withdraw"]' ) . hasText (
234- 'Force withdraw' ,
234+ t ( 'registries.makeDecisionDropdown.forceWithdraw' ) ,
235235 'Force withdraw option has correct text' ,
236236 ) ;
237237 await percySnapshot ( assert ) ;
@@ -253,7 +253,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
253253 'Short description for embargo status exists' ,
254254 ) ;
255255 assert . dom ( '[data-test-state-description-short]' ) . hasText (
256- t ( 'registries.overview.embargo.short_description' ) . toString ( ) ,
256+ t ( 'registries.overview.embargo.short_description' ) ,
257257 'The registration is in embargo' ,
258258 ) ;
259259 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -273,7 +273,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
273273 'Option to force withdraw exists' ,
274274 ) ;
275275 assert . dom ( '[data-test-moderation-dropdown-decision-label="force_withdraw"]' ) . hasText (
276- 'Force withdraw' ,
276+ t ( 'registries.makeDecisionDropdown.forceWithdraw' ) ,
277277 'Force withdraw option has correct text' ,
278278 ) ;
279279 await percySnapshot ( assert ) ;
@@ -294,7 +294,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
294294 'Short description for pending_embargo_termination status exists' ,
295295 ) ;
296296 assert . dom ( '[data-test-state-description-short]' ) . hasText (
297- t ( 'registries.overview.pendingEmbargoTermination.short_description' ) . toString ( ) ,
297+ t ( 'registries.overview.pendingEmbargoTermination.short_description' ) ,
298298 'The registration is pending embargo termination' ,
299299 ) ;
300300 assert . dom ( '[data-test-state-description-long]' ) . hasText (
@@ -314,7 +314,7 @@ module('Registries | Acceptance | overview.moderator-mode', hooks => {
314314 'Option to force withdraw exists' ,
315315 ) ;
316316 assert . dom ( '[data-test-moderation-dropdown-decision-label="force_withdraw"]' ) . hasText (
317- 'Force withdraw' ,
317+ t ( 'registries.makeDecisionDropdown.forceWithdraw' ) ,
318318 'Force withdraw option has correct text' ,
319319 ) ;
320320 await percySnapshot ( assert ) ;
0 commit comments