Skip to content

Commit c400940

Browse files
authored
Merge pull request #23 from testsigmahq/dev
Main Site PR
2 parents 75f5243 + 9f34e38 commit c400940

10 files changed

Lines changed: 30 additions & 13 deletions

.github/workflows/staging-cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
echo GTAG_TRACKING_ID_FOR_GA4=${{ secrets.STAGING_GTAG_TRACKING_ID_FOR_GA4 }} >> .env
3434
echo GTAG_TRACKING_ID_FOR_GTAG=${{ secrets.STAGING_GTAG_TRACKING_ID_FOR_GTAG }} >> .env
3535
cat .env
36+
- name: Set environment
37+
run : sed -i 's/localhost/website.testsigma.com/g' src/environment.ts
3638
- name: Build
3739
run: |
3840
PREFIX_PATHS=true npm run build && npm run deploy

src/components/LeftNav.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
.leftNav {
44
background-color: #F6F7F9;
5+
@media (min-width: 1280px) {
6+
padding-right: 2rem !important;
7+
padding-left: 2rem !important;
8+
}
59
//height: 100%;
610
position: sticky;
711
height: 100vh;
@@ -20,7 +24,7 @@
2024
}
2125

2226
>ul > .parent {
23-
padding: 20px 0;
27+
padding: 10px 0;
2428
&.currentUrl{
2529
padding-bottom: 20px;
2630
}
@@ -31,7 +35,7 @@
3135
display: none;
3236
}
3337
> ul {
34-
border-bottom: 1px solid #C4C4C4 !important;
38+
/*border-bottom: 1px solid #C4C4C4 !important;*/
3539
> li {
3640
.folder-icon{
3741
display: block;
@@ -141,10 +145,10 @@
141145
margin-bottom: 24px;
142146
img{
143147
display:inline;
144-
position: relative;
148+
/*position: relative;*/
145149
top: 3px;
146-
width: 10px;
147-
height: 10px;
150+
width: 13px;
151+
height: 13px;
148152
margin: 0px;
149153
}
150154

src/environment.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const environment = {
2+
hostname: "localhost",
3+
isStaging() {
4+
return this.hostname == "website.testsigma.com";
5+
}
6+
}

src/pages/tutorials/advanced/email-based-two-factor-authentication.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "How to automate email based Two Factor Authentication(2FA)"
33
metadesc: "Coming soon..."
4-
noindex: true
4+
noindex: false
55
order: 5.3
66
page_id: "How to automate email based Two Factor Authentication(2FA)"
77
search_keyword: "Web Application, Recorder, Testsigma Tutorials"

src/pages/tutorials/advanced/sms-based-two-factor-authentication-2fa.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "How to automate SMS based two factor authentication(2FA)"
33
metadesc: "Coming soon..."
4-
noindex: true
4+
noindex: false
55
order: 5.2
66
page_id: "How to automate SMS based Two Factor Authentication(2FA)"
77
search_keyword: "Web Application, Recorder, Testsigma Tutorials"

src/pages/tutorials/getting-started/automate-android-applications.md

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ In this tutorial we will demonstrate how Testsigma’s revolutionary mobile test
6565
> ## [Pre-requisites](#pre-requisites)
6666
> 1. You have a Testsigma account : If you haven't already, sign up for [a free trial](https://testsigma.com/signup)
6767
> The trial includes all product features and free support (always!) via the in-app chat or email to [support@testsigma.com](mailto:support@testsigma.com)
68-
> 2. Testsigma agent for local execution(Optional): If you’d like to run your test using a local android device [follow this guide](https://testsigma.com//tutorials/test-cases/android-apps/build-tests-using-local-devices/) to install the Testsigma agent
68+
> 2. Testsigma agent for local execution(Optional): If you’d like to run your test using a local android device [follow this guide](https://testsigma.com//tutorials/test-cases/mobile-apps/build-tests-using-local-android-devices/) to install the Testsigma agent
6969
7070
---
7171

@@ -289,7 +289,7 @@ If you need any help with errors you can reach out to [support@testsigma.com](ma
289289

290290
* Start creating tests. [Explore Recorder.](https://testsigma.com/docs/test-cases/create-steps-recorder/android-apps/overview/)
291291

292-
* Automate Android Apps using your local devices. [Learn more!](https://testsigma.com//tutorials/test-cases/android-apps/build-tests-using-local-devices/)
292+
* Automate Android Apps using your local devices. [Learn more!](https://testsigma.com//tutorials/test-cases/mobile-apps/build-tests-using-local-android-devices/)
293293

294294
* Create Test Plans and Schedule. Head over to [this link!](https://testsigma.com/docs/test-management/test-plans/schedule-plans/)
295295

src/pages/tutorials/getting-started/automate-ios-applications.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ _This is a basic test that can be recorded by interacting with your app. also [p
317317

318318
* Start creating tests. [Explore Recorder.](https://testsigma.com/docs/test-cases/create-steps-recorder/ios-apps/overview/)
319319

320-
* Automate iOS Apps using your local devices. [Learn more!](https://testsigma.com//tutorials/test-cases/ios-apps/build-tests-using-local-devices/)
320+
* Automate iOS Apps using your local devices. [Learn more!](https://testsigma.com//tutorials/test-cases/mobile-apps/build-tests-using-local-ios-devices/)
321321

322322
* Create Test Plans and Schedule. Head over to [this link!](https://testsigma.com/docs/test-management/test-plans/schedule-plans/)
323323

src/pages/tutorials/getting-started/automate-mobile-web-applications.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Here’s how you can create a Project in Testsigma
9797

9898
For this tutorial we’ll be simulating a login scenario for the ‘Simply travel” application.
9999
Here are the steps we’ll be performing using Testsigma
100-
1. Navigate to [http://travel.testsigma.com](http://travel.testsigma.com)
100+
1. Navigate to [https://travel.testsigma.com](https://travel.testsigma.com)
101101

102102
2. Tap on Login SImply Travel
103103

src/pages/tutorials/getting-started/automate-rest-apis.md

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ A few of the available routes are given below:
7171
[https://jsonplaceholder.typicode.com/comments](https://jsonplaceholder.typicode.com/comments) | will return a response containing 500 comment items
7272
[https://jsonplaceholder.typicode.com/comments?postId=1](https://jsonplaceholder.typicode.com/comments?postId=1) | will return a response containing the comments for post with id=1
7373
[https://jsonplaceholder.typicode.com/users](https://jsonplaceholder.typicode.com/users) | will return a response containing 10 users
74-
[https://jsonplaceholder.typicode.com/users/1](https://jsonplaceholder.typicode.com/users/1%C2%A0) | will return a response containing the user details for id=1
74+
[https://jsonplaceholder.typicode.com/users/1](https://jsonplaceholder.typicode.com/users/1) | will return a response containing the user details for id=1
7575

7676
All of the most common HTTP verbs such as GET, POST, PUT, PATCH, and DELETE are supported.
7777

src/templates/page.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {Link} from "../../.cache/gatsby-browser-entry";
1212
import SearchInputBox from "../components/SearchInputBox";
1313
import MobileView from "../components/MobileView";
1414
import Footer from "../components/Footer"
15+
import {environment} from "../environment";
1516

1617
export default ({ data, pageContext }) => {
1718

@@ -35,6 +36,10 @@ export default ({ data, pageContext }) => {
3536
contextualLinks = <SideBar links={post.frontmatter.contextual_links} />;
3637
}
3738

39+
if(environment.isStaging()) {
40+
post.frontmatter.noindex = true;
41+
}
42+
3843
return (
3944
<Layout>
4045
<SEO
@@ -190,4 +195,4 @@ export const query = graphql`
190195
}
191196
}
192197
`;
193-
/* eslint-enaable */
198+
/* eslint-enaable */

0 commit comments

Comments
 (0)