Skip to content

Commit f903bc2

Browse files
authored
set this.initialBackups as empty array as default and check for created backup after onboarding in storage tests (#327)
1 parent e51618f commit f903bc2

File tree

6 files changed

+6
-1
lines changed

6 files changed

+6
-1
lines changed

src/backwpup/features/storages/ftp.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: Should be able to work with FTP storage
1616
Then I save and submit the onboarding form
1717
And I go '/wp-admin/admin.php?page=backwpup'
1818
Then I should see 'mixed' job cards
19+
And '1' backup is generated and added to history
1920

2021
Scenario: Setup FTP from Dashboard (After Onboarding)
2122
When I Configure web server storage

src/backwpup/features/storages/glacier.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: Should be able to work with Amazon Glacier storage
1616
Then I save and submit the onboarding form
1717
And I go '/wp-admin/admin.php?page=backwpup'
1818
Then I should see 'mixed' job cards
19+
And '1' backup is generated and added to history
1920

2021
Scenario: Setup Amazon Glacier from Dashboard (After Onboarding)
2122
When I Configure web server storage

src/backwpup/features/storages/rsc.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: Should be able to work with Rackspace storage
1616
Then I save and submit the onboarding form
1717
And I go '/wp-admin/admin.php?page=backwpup'
1818
Then I should see 'mixed' job cards
19+
And '1' backup is generated and added to history
1920

2021
Scenario: Setup Rackspace from Dashboard (After Onboarding)
2122
When I Configure web server storage

src/backwpup/features/storages/s3.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: Should be able to work with S3 storage
1616
Then I save and submit the onboarding form
1717
And I go '/wp-admin/admin.php?page=backwpup'
1818
Then I should see 'mixed' job cards
19+
And '1' backup is generated and added to history
1920

2021
Scenario: Setup S3 from Dashboard (After Onboarding)
2122
When I Configure web server storage

src/backwpup/features/storages/sugarsync.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Feature: Should be able to work with SugarSync storage
1616
Then I save and submit the onboarding form
1717
And I go '/wp-admin/admin.php?page=backwpup'
1818
Then I should see 'mixed' job cards
19+
And '1' backup is generated and added to history
1920

2021
Scenario: Setup SugarSync from Dashboard (After Onboarding)
2122
When I Configure web server storage

src/backwpup/support/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Before({tags: '@bwpupsetup'}, async function(this: ICustomWorld, {pickle}) {
2020
this.sections = new Sections(this.page, pluginSelectors);
2121
this.utils = new PageUtils(this.page, this.sections);
2222
this.storage = new StorageUtils(this.page, this.sections);
23-
23+
this.initialBackups = [];
2424
this.pickle = pickle;
2525
});
2626

0 commit comments

Comments
 (0)