feat: 🚀 Created features for notifications and signin and stubbed them for automation.
This commit is contained in:
parent
e00a147b5c
commit
1253e2388a
21
.vscode/launch.json
vendored
Normal file
21
.vscode/launch.json
vendored
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -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
|
27
cypress/integration/notification/notification.js
Normal file
27
cypress/integration/notification/notification.js
Normal 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");
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user