feat: 🚀 Created features for notifications and signin and stubbed them for automation.

This commit is contained in:
Simon Priet 2021-09-06 10:44:44 +02:00
parent e00a147b5c
commit 1253e2388a
4 changed files with 64 additions and 1 deletions

21
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.
// Pointez pour afficher la description des attributs existants.
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Test cypress",
"request": "launch",
"runtimeArgs": [
"run-script",
"test"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
}
]
}

View File

@ -11,7 +11,7 @@ describe("As a Trusker, when I subscribe, I am asked for a mobile phone number."
});
Then("I have to provide a phone number", () => {
cy.log("");
cy.expect(true).to.eq(true);
});
});

View File

@ -0,0 +1,15 @@
Feature: Receive text notification
As a subscribed Trusker, I receive a text message when a collaborator send a new post in the thread.
Scenario: Receive a text notification
Given I am connected
When a Trusker send a post
Then I receive a text message
Scenario: Open the post from the text
Given I am connected
And I received a text message
When I open the link in the message
Then the app opens
And the app shows me the message

View File

@ -0,0 +1,27 @@
/* global Given, When, Then */
import { Given, When, Then, And } from "cypress-cucumber-preprocessor/steps";
describe("Receive a text notification", () => {
Given("I am connected", () => {
cy.log("");
});
When("a Trusker send a post", ()=> {
cy.log("");
});
Then("I receive a text message", ()=>{
cy.expect(true).to.eq(true);
});
});
describe("Open the post from the text", ()=> {
Given("I am connected");
And("I received a text message");
When("I open the link in the message");
Then("the app opens");
And("the app shows me the message");
});