forked from SAP/fundamental-ngx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): add info label tests (SAP#4989)
- Loading branch information
1 parent
aa46a87
commit f605ad5
Showing
26 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+2.15 KB
...o-label/desktop_chrome/info-label-example-0-core-chrome-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.61 KB
...fo-label/desktop_chrome/info-label-example-0-core-chrome-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
...o-label/desktop_chrome/info-label-example-1-core-chrome-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.5 KB
...fo-label/desktop_chrome/info-label-example-1-core-chrome-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.7 KB
...o-label/desktop_chrome/info-label-example-2-core-chrome-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
...fo-label/desktop_chrome/info-label-example-2-core-chrome-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.73 KB
...o-label/desktop_chrome/info-label-example-3-core-chrome-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.42 KB
...fo-label/desktop_chrome/info-label-example-3-core-chrome-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.19 KB
...info-label/desktop_firefox/info-label-example-0-core-firefox-mac--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+919 Bytes
...-label/desktop_firefox/info-label-example-0-core-firefox-windows--1936x1096.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
...info-label/desktop_firefox/info-label-example-1-core-firefox-mac--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.4 KB
...-label/desktop_firefox/info-label-example-1-core-firefox-windows--1936x1096.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.5 KB
...info-label/desktop_firefox/info-label-example-2-core-firefox-mac--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.5 KB
...-label/desktop_firefox/info-label-example-2-core-firefox-windows--1936x1096.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.73 KB
...info-label/desktop_firefox/info-label-example-3-core-firefox-mac--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.8 KB
...-label/desktop_firefox/info-label-example-3-core-firefox-windows--1936x1096.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.15 KB
.../desktop_microsoftedge/info-label-example-0-core-msedge-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.61 KB
...l/desktop_microsoftedge/info-label-example-0-core-msedge-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.2 KB
.../desktop_microsoftedge/info-label-example-1-core-msedge-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.5 KB
...l/desktop_microsoftedge/info-label-example-1-core-msedge-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.7 KB
.../desktop_microsoftedge/info-label-example-2-core-msedge-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18.6 KB
...l/desktop_microsoftedge/info-label-example-2-core-msedge-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.73 KB
.../desktop_microsoftedge/info-label-example-3-core-msedge-mac_os_x--1920x1417.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.42 KB
...l/desktop_microsoftedge/info-label-example-3-core-msedge-windows--1920x1080.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { CoreBaseComponentPo } from './core-base-component.po'; | ||
import { waitForPresent, waitForElDisplayed } from '../../driver/wdio'; | ||
|
||
export class InfoLabelPo extends CoreBaseComponentPo { | ||
url = '/info-label'; | ||
readonly root = '#page-content'; | ||
|
||
defaultLabel = 'fd-info-label-default-example fd-info-label'; | ||
|
||
open(): void { | ||
super.open(this.url); | ||
waitForElDisplayed(this.root); | ||
waitForPresent(this.defaultLabel); | ||
} | ||
|
||
getScreenshotFolder(): object { | ||
return super.getScreenshotFolder(this.url); | ||
} | ||
|
||
saveExampleBaselineScreenshot(specName: string = 'info-label'): void { | ||
super.saveExampleBaselineScreenshot(specName, this.getScreenshotFolder()); | ||
} | ||
|
||
compareWithBaseline(specName: string = 'info-label'): any { | ||
return super.compareWithBaseline(specName, this.getScreenshotFolder()); | ||
} | ||
} |
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,19 @@ | ||
import { InfoLabelPo } from '../pages/info-label.po'; | ||
|
||
describe('Info Label component test suite', () => { | ||
const infoLabelPage = new InfoLabelPo(); | ||
|
||
beforeEach(() => { | ||
infoLabelPage.open(); | ||
}, 2); | ||
|
||
it('should check LTR and RTL orientation', () => { | ||
infoLabelPage.checkRtlSwitch(); | ||
}); | ||
|
||
it('should check examples basic visual regression', () => { | ||
infoLabelPage.saveExampleBaselineScreenshot(); | ||
expect(infoLabelPage.compareWithBaseline()).toBeLessThan(3); | ||
}); | ||
|
||
}); |