diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-17 12:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-17 12:09:15 +0000 |
commit | 9a8f801d7352b7965fe690a599410fb50005ce67 (patch) | |
tree | 1e6b3f942dd7ab1f35311b021d181f8e7b14ec7e /spec/frontend/terraform | |
parent | 6fa3630aad333511c687b385c2333e98e09595b4 (diff) | |
download | gitlab-ce-9a8f801d7352b7965fe690a599410fb50005ce67.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/terraform')
-rw-r--r-- | spec/frontend/terraform/components/states_table_spec.js | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/spec/frontend/terraform/components/states_table_spec.js b/spec/frontend/terraform/components/states_table_spec.js index e2c2660b221..7a8cb19971e 100644 --- a/spec/frontend/terraform/components/states_table_spec.js +++ b/spec/frontend/terraform/components/states_table_spec.js @@ -39,6 +39,16 @@ describe('StatesTable', () => { }, }, }, + { + name: 'state-4', + lockedAt: '2020-10-10T00:00:00Z', + lockedByUser: null, + updatedAt: '2020-10-10T00:00:00Z', + latestVersion: { + updatedAt: '2020-10-09T00:00:00Z', + createdByUser: null, + }, + }, ], }; @@ -53,10 +63,11 @@ describe('StatesTable', () => { }); it.each` - name | toolTipText | locked | lineNumber - ${'state-1'} | ${'Locked by user-1 2 days ago'} | ${true} | ${0} - ${'state-2'} | ${null} | ${false} | ${1} - ${'state-3'} | ${'Locked by user-2 5 days ago'} | ${true} | ${2} + name | toolTipText | locked | lineNumber + ${'state-1'} | ${'Locked by user-1 2 days ago'} | ${true} | ${0} + ${'state-2'} | ${null} | ${false} | ${1} + ${'state-3'} | ${'Locked by user-2 5 days ago'} | ${true} | ${2} + ${'state-4'} | ${'Locked by Unknown User 5 days ago'} | ${true} | ${3} `( 'displays the name and locked information "$name" for line "$lineNumber"', ({ name, toolTipText, locked, lineNumber }) => { @@ -80,6 +91,7 @@ describe('StatesTable', () => { ${'updated 2 days ago'} | ${0} ${'updated 5 days ago'} | ${1} ${'user-3 updated 4 days ago'} | ${2} + ${'updated 6 days ago'} | ${3} `('displays the time "$updateTime" for line "$lineNumber"', ({ updateTime, lineNumber }) => { const states = wrapper.findAll('[data-testid="terraform-states-table-updated"]'); |