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
@font-face { | |
font-display: swap; | |
font-family: '<NAME_OF_THE_FONT>'; | |
-webkit-font-smoothing: subpixel-antialiased; | |
font-style: normal; | |
font-weight: 400; | |
src: url('webfont.eot'); /* IE9 Compat Modes */ | |
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
url('webfont.woff2') format('woff2'), /* Super Modern Browsers */ | |
url('webfont.woff') format('woff'), /* Pretty Modern Browsers */ |
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
@font-face{ | |
font-family: 'PayPal-Sans'; | |
src: url('webfont.eot'); /* IE9 Compat Modes */ | |
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |
url('https://www.paypalobjects.com/digitalassets/c/paypal-ui/fonts/PayPalSansSmall-Regular.woff2') format('woff2'), /* Super Modern Browsers */ | |
url('webfont.woff') format('woff'), /* Pretty Modern Browsers */ | |
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */ | |
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */ | |
} |
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
import WebViewScreen from '../screenobjects/webview.screen'; | |
import { CONTEXT_REF } from '../helpers/WebView'; | |
describe('WebdriverIO and Appium, when interacting with a WebView,', () => { | |
beforeEach(() => { | |
WebViewScreen.waitForWebsiteLoaded(); | |
}); | |
it('should be able to open call action on the Iframe page', () => { | |
// To be able to use the site in the webview webdriver.io first needs |
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
const { join } = require('path'); | |
const { config } = require('./wdio.shared.conf'); | |
// ============ | |
// Specs | |
// ============ | |
config.specs = ['./tests/specs/**/app*.spec.js']; | |
// ============ | |
// Capabilities |
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
export const setTestId = (id) => { | |
return Platform.OS === 'android' ? | |
{ accessibilityLabel: id } : { testID: id }; | |
}; | |
... | |
<View {...setTestId('SignInContainer')></View> |
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
handleChange = evt => { | |
const { name, type, value } = evt.target; | |
const val = type === "number" ? parseFloat(value) : value; | |
this.setState({ [name]: val }); | |
}; |
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
const Welcome = () => <div>Hello World!</div> |
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
let result = GetResult("SELECT * FROM DATABASE"); // Här "stannar" körningen tills metoden är klar | |
// Här forsätter sedan programmet, när förra metoden körts klart och all data är hämtad. | |
DoSomeThingWithResult(result); |
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
/*Vi hämtar lite data ifrån en databas*/ | |
// Den här metoden körs igång direkt, men det är inte säkert att den blir klar direkt. | |
GetResult("SELECT * FROM DATABASE") | |
// När DoSomeThingWithResult är klar körs detta | |
.then(DoSomeThingWithResult(result)) | |
// Om något går fel körs den här biten | |
.catch(error => ("Något gick fel", error); | |
// Här fortsätter koden ”direkt”, utan att vänta på att ovanstående körs klart | |
console.log("Hello World"); | |
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
: | |
Object | |
long_name | |
: | |
"31" | |
short_name | |
: | |
"31" | |
types | |
: |
NewerOlder