File tree Expand file tree Collapse file tree
apps/meteor/tests/e2e/page-objects/fragments/flextabs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class AddExistingChannelModal extends Modal {
1515 }
1616
1717 get btnAdd ( ) : Locator {
18- return this . root . getByRole ( 'button' , { name : 'Add' } ) ;
18+ return this . root . getByRole ( 'button' , { name : 'Add' , exact : true } ) ;
1919 }
2020
2121 async confirmAdd ( ) {
@@ -42,11 +42,11 @@ export class ChannelsFlexTab extends FlexTab {
4242 }
4343
4444 get btnAddExisting ( ) : Locator {
45- return this . root . getByRole ( 'button' , { name : 'Add Existing' } ) ;
45+ return this . root . getByRole ( 'button' , { name : 'Add Existing' , exact : true } ) ;
4646 }
4747
4848 get btnCreateNew ( ) : Locator {
49- return this . root . getByRole ( 'button' , { name : 'Create new' } ) ;
49+ return this . root . getByRole ( 'button' , { name : 'Create new' , exact : true } ) ;
5050 }
5151
5252 get channelsList ( ) : Locator {
You can’t perform that action at this time.
0 commit comments