e2e test toasts v2

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-05-27 13:10:28 +01:00
parent 7b6d49c416
commit d9552c7f5c
2 changed files with 12 additions and 12 deletions

View file

@ -14,10 +14,18 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
const {acceptToast} = require("../usecases/toasts");
const {acceptToast, rejectToast} = require("../usecases/toasts");
module.exports = async function toastScenarios(alice, bob) {
console.log(" checking and clearing all toasts:");
alice.log.startGroup(`clears toasts`);
await acceptToast(alice, "Notifications");
await acceptToast(alice, "Help us improve Riot");
await acceptToast(bob, "Help us improve Riot");
alice.log.endGroup();
bob.log.startGroup(`clears toasts`);
await rejectToast(bob, "Notifications");
await rejectToast(bob, "Help us improve Riot");
bob.log.endGroup();
};