Welcome to mirror list, hosted at ThFree Co, Russian Federation.

delete-notifications.feature « features « Integration « tests - github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 85de5123d167f5013f8f10e18217828c491b61f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: delete-notifications
  Background:
    Given user "test1" exists
    Given as user "test1"

  Scenario: Delete first notification
    Given user "test1" has notifications
    Given user "test1" has notifications
    Given user "test1" has notifications
    Then user "test1" has 3 notifications
    And delete first notification
    And status code is 200
    And user "test1" has 2 notifications missing the first one

  Scenario: Delete same notification twice
    Given user "test1" has notifications
    Given user "test1" has notifications
    Given user "test1" has notifications
    When user "test1" has 3 notifications
    And delete first notification
    And status code is 200
    And delete same notification
    And status code is 404
    And user "test1" has 2 notifications missing the first one

  Scenario: Delete last notification
    Given user "test1" has notifications
    Given user "test1" has notifications
    Given user "test1" has notifications
    Then user "test1" has 3 notifications
    And delete last notification
    And status code is 200
    And user "test1" has 2 notifications missing the last one