forked from CIT/Vmeda.Online
		
	Merge pull request #3510 from NoelDeMartin/MOBILE-4081
MOBILE-4081 behat: Improve debugging ergonomics
This commit is contained in:
		
						commit
						240225ce34
					
				@ -333,7 +333,15 @@ export class TestingBehatRuntimeService {
 | 
			
		||||
     * @param locator Element locator.
 | 
			
		||||
     * @returns OK if successful, or ERROR: followed by message
 | 
			
		||||
     */
 | 
			
		||||
    async press(locator: TestingBehatElementLocator): Promise<string> {
 | 
			
		||||
    async press(locator: TestingBehatElementLocator): Promise<string>;
 | 
			
		||||
    async press(text: string, nearText?: string): Promise<string>;
 | 
			
		||||
    async press(locatorOrText: TestingBehatElementLocator | string, nearText?: string): Promise<string> {
 | 
			
		||||
        const locator = typeof locatorOrText === 'string' ? { text: locatorOrText } : locatorOrText;
 | 
			
		||||
 | 
			
		||||
        if (nearText) {
 | 
			
		||||
            locator.near = { text: nearText };
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        this.log('Action - Press', locator);
 | 
			
		||||
 | 
			
		||||
        try {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user