@@ -180,12 +180,12 @@ describe('<State/>', () => {
180180 } ) ;
181181 } ) ;
182182
183- describe ( '"Open screenshot accepting mode" button' , ( ) => {
183+ describe ( '"Switch accept mode" button' , ( ) => {
184184 describe ( 'in static report' , ( ) => {
185185 it ( 'should not render button' , ( ) => {
186186 const stateComponent = mkStateComponent ( { } , { gui : false } ) ;
187187
188- assert . lengthOf ( stateComponent . find ( '[title="Open screenshot accepting mode"]' ) , 0 ) ;
188+ assert . lengthOf ( stateComponent . find ( '[label$="Switch accept mode"]' ) , 0 ) ;
189189 } ) ;
190190
191191 it ( 'should not call "getLastImageByStateName" selector' , ( ) => {
@@ -199,7 +199,7 @@ describe('<State/>', () => {
199199 it ( 'should render button in gui report' , ( ) => {
200200 const stateComponent = mkStateComponent ( { } , { gui : true } ) ;
201201
202- assert . lengthOf ( stateComponent . find ( '[title="Open screenshot accepting mode "]' ) , 2 ) ;
202+ assert . lengthOf ( stateComponent . find ( '[title="Open mode with fast screenshot accepting"]' ) , 2 ) ;
203203 } ) ;
204204
205205 it ( 'should not call "getLastImageByStateName" selector if image id is not passed' , ( ) => {
@@ -223,7 +223,7 @@ describe('<State/>', () => {
223223
224224 const stateComponent = mkStateComponent ( { imageId : 'img-id' } , initialState ) ;
225225
226- assert . isTrue ( stateComponent . find ( '[title="Open screenshot accepting mode "]' ) . first ( ) . prop ( 'isDisabled' ) ) ;
226+ assert . isTrue ( stateComponent . find ( '[title="Open mode with fast screenshot accepting"]' ) . first ( ) . prop ( 'isDisabled' ) ) ;
227227 } ) ;
228228
229229 it ( 'should be enabled if last image is acceptable' , ( ) => {
@@ -241,7 +241,7 @@ describe('<State/>', () => {
241241
242242 const stateComponent = mkStateComponent ( { imageId : 'img-id' } , initialState ) ;
243243
244- assert . isFalse ( stateComponent . find ( '[title="Open screenshot accepting mode "]' ) . first ( ) . prop ( 'isDisabled' ) ) ;
244+ assert . isFalse ( stateComponent . find ( '[title="Open mode with fast screenshot accepting"]' ) . first ( ) . prop ( 'isDisabled' ) ) ;
245245 } ) ;
246246
247247 it ( 'should call "openModal" action on button click' , ( ) => {
@@ -258,7 +258,7 @@ describe('<State/>', () => {
258258 getLastImageByStateName . returns ( image ) ;
259259
260260 const stateComponent = mkStateComponent ( { imageId : 'img-id' } , initialState ) ;
261- stateComponent . find ( '[title="Open screenshot accepting mode "]' ) . first ( ) . simulate ( 'click' ) ;
261+ stateComponent . find ( '[title="Open mode with fast screenshot accepting"]' ) . first ( ) . simulate ( 'click' ) ;
262262
263263 assert . calledOnceWith ( actionsStub . openModal , {
264264 id : modalTypes . SCREENSHOT_ACCEPTER ,
0 commit comments