-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: viewing publications in full screen mode
* viewing publications in full screen mode
- Loading branch information
1 parent
099d8b0
commit fb85e0b
Showing
44 changed files
with
38,978 additions
and
3,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: Viewing publications in fullscreen mode | ||
In order to view high quality images in great detail | ||
As a user | ||
I want the viewer to be presented using the entire screen | ||
|
||
Background: | ||
Given the viewer is opened with a publication | ||
|
||
@android @desktop | ||
Scenario: Fullscreen mode | ||
Given the viewer is in dashboard view | ||
When the user select full screen mode | ||
Then the viewer should be presented using the entire screen | ||
|
||
@android @desktop | ||
Scenario: Exit Fullscreen mode | ||
Given the viewer is in full screen mode | ||
When the user select exit full screen mode | ||
Then the viewer should be presented normally | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { defineSupportCode } from 'cucumber'; | ||
|
||
defineSupportCode(({ setDefaultTimeout }) => { | ||
setDefaultTimeout(120000); | ||
setDefaultTimeout(240 * 1000); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { defineSupportCode } from 'cucumber'; | ||
import { expect } from '../helpers/chai-imports'; | ||
|
||
import { ViewerPage } from './../pages/viewer.po'; | ||
import { MetadataPage } from './../pages/metadata.po'; | ||
|
||
defineSupportCode(function ({ Given, When, Then }) { | ||
const page = new ViewerPage(); | ||
const metadata = new MetadataPage(); | ||
|
||
Given(/^the viewer is in full screen mode$/, async () => { | ||
await page.fullscreenButton().click(); | ||
}); | ||
|
||
When(/^the user select full screen mode$/, async () => { | ||
await page.fullscreenButton().click(); | ||
}); | ||
|
||
When(/^the user select exit full screen mode$/, async () => { | ||
await page.exitFullscreenButton().click(); | ||
}); | ||
|
||
Then(/^the viewer should be presented using the entire screen$/, async () => { | ||
expect(await page.isFullscreen()).to.be.true; | ||
}); | ||
|
||
Then(/^the viewer should be presented normally$/, async () => { | ||
expect(await page.isFullscreen()).to.be.false; | ||
}); | ||
|
||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.