-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'stage' into mwpw-135907-sign-pdf-rotate-pdf-to-l2-test
- Loading branch information
Showing
5 changed files
with
101 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Feature: CaaS Block | ||
|
||
Background: | ||
Given I have a new browser context | ||
|
||
@MWPW-132351 @regression-caas | ||
Scenario Outline: CaaS block on frictionless | ||
Given I go to the <Verb> page | ||
Then I should see the CaaS block | ||
Then I should see the 'More resources' header | ||
Then I should see the CaaS block cards | ||
Then I click the "Read now" button inside the CaaS card | ||
Then I switch to the new page after clicking "Read now" button in the CaaS | ||
Then I should not see the address bar contains "<Verb>" | ||
Examples: | ||
| Verb | | ||
| add-pages-to-pdf | | ||
| compress-pdf | | ||
| convert-pdf | | ||
| delete-pdf-pages | | ||
| excel-to-pdf | | ||
| extract-pdf-pages | | ||
| merge-pdf | | ||
| password-protect-pdf | | ||
| pdf-editor | | ||
| pdf-to-excel | | ||
| pdf-to-jpg | | ||
| request-signature | | ||
| rotate-pdf | | ||
| sign-pdf | | ||
| split-pdf | | ||
| word-to-pdf | |
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,27 @@ | ||
import { classes } from "polytype"; | ||
import { DcGnavPage } from "./dcgnav.page"; | ||
import { PdfWidgetSection } from "./pdfwidget.section"; | ||
|
||
export class CaaSPage extends classes(DcGnavPage, PdfWidgetSection) { | ||
constructor(contentPath) { | ||
let locContentPath = contentPath; | ||
// if locale is specified, add to the path | ||
if (global.config.profile.locale) { | ||
locContentPath = locContentPath.replace(/^\/*|\/*$/g, ''); | ||
if (global.config.profile.locale === 'us') { | ||
locContentPath = `/${locContentPath}`; | ||
} else { | ||
locContentPath = `/${global.config.profile.locale}/${locContentPath}`; | ||
} | ||
} | ||
super({ | ||
super: DcGnavPage, | ||
arguments: [locContentPath], | ||
}); | ||
this.buildProps({ | ||
caas: '#caas', | ||
caasFragment: '.fragment[data-path*="caas"]>>nth=0', | ||
caasButton: 'a[data-testid="consonant-BtnInfobit"]' | ||
}); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test/e2e/frictionless/page-objects/passwordprotectpdf.page.js
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,7 @@ | ||
import { FrictionlessPage } from './frictionless.page'; | ||
|
||
export class PasswordProtectPdfPage extends FrictionlessPage { | ||
constructor() { | ||
super("/acrobat/online/password-protect-pdf"); | ||
} | ||
} |
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