mirror of https://github.com/vector-im/riot-web
				
				
				
			Merge pull request #4983 from matrix-org/travis/e2e-tests
Incorporate new toasts into end-to-end testspull/21833/head
						commit
						c5cba6d02a
					
				| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
    "disable_guests": false,
 | 
			
		||||
    "disable_login_language_selector": false,
 | 
			
		||||
    "disable_3pid_login": false,
 | 
			
		||||
    "brand": "Riot",
 | 
			
		||||
    "brand": "Element",
 | 
			
		||||
    "integrations_ui_url": "https://scalar.vector.im/",
 | 
			
		||||
    "integrations_rest_url": "https://scalar.vector.im/api",
 | 
			
		||||
    "bug_report_endpoint_url": "https://riot.im/bugreports/submit",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,8 +24,14 @@ module.exports = async function toastScenarios(alice, bob) {
 | 
			
		|||
    await rejectToast(alice, "Notifications");
 | 
			
		||||
    alice.log.done();
 | 
			
		||||
 | 
			
		||||
    alice.log.step(`accepts rebrand toast`);
 | 
			
		||||
    await acceptToast(alice, "Riot is now Element!");
 | 
			
		||||
    const doneButton = await alice.query('.mx_Dialog_primary');
 | 
			
		||||
    await doneButton.click(); // also accept the resulting dialog
 | 
			
		||||
    alice.log.done();
 | 
			
		||||
 | 
			
		||||
    alice.log.step(`accepts analytics toast`);
 | 
			
		||||
    await acceptToast(alice, "Help us improve Riot");
 | 
			
		||||
    await acceptToast(alice, "Help us improve Element");
 | 
			
		||||
    alice.log.done();
 | 
			
		||||
 | 
			
		||||
    alice.log.step(`checks no remaining toasts`);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue