diff --git a/core/scripts/testing/scripts.js b/core/scripts/testing/scripts.js
new file mode 100644
index 0000000000..29ae5499d5
--- /dev/null
+++ b/core/scripts/testing/scripts.js
@@ -0,0 +1,8 @@
+
+(function() {
+
+ if (window.location.search.indexOf('rtl=true') > -1) {
+ document.documentElement.setAttribute('dir', 'rtl');
+ }
+
+})();
\ No newline at end of file
diff --git a/core/src/components/action-sheet/test/alert-from-action-sheet/index.html b/core/src/components/action-sheet/test/alert-from-action-sheet/index.html
index 1fae40ad70..b3e2efda63 100644
--- a/core/src/components/action-sheet/test/alert-from-action-sheet/index.html
+++ b/core/src/components/action-sheet/test/alert-from-action-sheet/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/basic/index.html b/core/src/components/action-sheet/test/basic/index.html
index 6b6669aaea..7d7fac4ebc 100644
--- a/core/src/components/action-sheet/test/basic/index.html
+++ b/core/src/components/action-sheet/test/basic/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/cancel-only/index.html b/core/src/components/action-sheet/test/cancel-only/index.html
index 1aa28f6ec8..0a64b60a6a 100644
--- a/core/src/components/action-sheet/test/cancel-only/index.html
+++ b/core/src/components/action-sheet/test/cancel-only/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/custom/index.html b/core/src/components/action-sheet/test/custom/index.html
index 290b8b5840..37d1f9f876 100644
--- a/core/src/components/action-sheet/test/custom/index.html
+++ b/core/src/components/action-sheet/test/custom/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/icons/index.html b/core/src/components/action-sheet/test/icons/index.html
index f22df4b2b5..de3090972c 100644
--- a/core/src/components/action-sheet/test/icons/index.html
+++ b/core/src/components/action-sheet/test/icons/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/no-backdrop-dismiss/index.html b/core/src/components/action-sheet/test/no-backdrop-dismiss/index.html
index 970523c9dd..77070fb13e 100644
--- a/core/src/components/action-sheet/test/no-backdrop-dismiss/index.html
+++ b/core/src/components/action-sheet/test/no-backdrop-dismiss/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/preview/index.html b/core/src/components/action-sheet/test/preview/index.html
index 84557745cd..e9586a1c42 100644
--- a/core/src/components/action-sheet/test/preview/index.html
+++ b/core/src/components/action-sheet/test/preview/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/scroll-without-cancel/index.html b/core/src/components/action-sheet/test/scroll-without-cancel/index.html
index 233df8cb88..abd5a6dcec 100644
--- a/core/src/components/action-sheet/test/scroll-without-cancel/index.html
+++ b/core/src/components/action-sheet/test/scroll-without-cancel/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/scrollable-options/index.html b/core/src/components/action-sheet/test/scrollable-options/index.html
index 332c51a340..ddb99c10eb 100644
--- a/core/src/components/action-sheet/test/scrollable-options/index.html
+++ b/core/src/components/action-sheet/test/scrollable-options/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/spec/index.html b/core/src/components/action-sheet/test/spec/index.html
index 0cc161bcce..10a85b1521 100644
--- a/core/src/components/action-sheet/test/spec/index.html
+++ b/core/src/components/action-sheet/test/spec/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/standalone/index.html b/core/src/components/action-sheet/test/standalone/index.html
index 5e560cfeee..c3c23da4ab 100644
--- a/core/src/components/action-sheet/test/standalone/index.html
+++ b/core/src/components/action-sheet/test/standalone/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/action-sheet/test/translucent/index.html b/core/src/components/action-sheet/test/translucent/index.html
index 4cc1eea2d1..a2022211d8 100644
--- a/core/src/components/action-sheet/test/translucent/index.html
+++ b/core/src/components/action-sheet/test/translucent/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/alert/test/basic/index.html b/core/src/components/alert/test/basic/index.html
index 51e9b6a18d..5d1fe8e0a3 100644
--- a/core/src/components/alert/test/basic/index.html
+++ b/core/src/components/alert/test/basic/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/alert/test/preview/index.html b/core/src/components/alert/test/preview/index.html
index 2a53bb4b7c..fe19b6ec56 100644
--- a/core/src/components/alert/test/preview/index.html
+++ b/core/src/components/alert/test/preview/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/alert/test/standalone/index.html b/core/src/components/alert/test/standalone/index.html
index 4b5c335487..f000b7adb8 100644
--- a/core/src/components/alert/test/standalone/index.html
+++ b/core/src/components/alert/test/standalone/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/alert/test/translucent/index.html b/core/src/components/alert/test/translucent/index.html
index b98a44b501..8944eb4f4f 100644
--- a/core/src/components/alert/test/translucent/index.html
+++ b/core/src/components/alert/test/translucent/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/anchor/test/basic/index.html b/core/src/components/anchor/test/basic/index.html
index 3eb94fc48e..340ac15da5 100644
--- a/core/src/components/anchor/test/basic/index.html
+++ b/core/src/components/anchor/test/basic/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/anchor/test/standalone/index.html b/core/src/components/anchor/test/standalone/index.html
index 47d1f64be9..52a7879d7f 100644
--- a/core/src/components/anchor/test/standalone/index.html
+++ b/core/src/components/anchor/test/standalone/index.html
@@ -7,6 +7,7 @@
+
diff --git a/core/src/components/app/test/safe-area/index.html b/core/src/components/app/test/safe-area/index.html
index 5a74464788..4a5e220f50 100644
--- a/core/src/components/app/test/safe-area/index.html
+++ b/core/src/components/app/test/safe-area/index.html
@@ -7,6 +7,7 @@
+