Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/staging-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
echo GTAG_TRACKING_ID_FOR_GA4=${{ secrets.STAGING_GTAG_TRACKING_ID_FOR_GA4 }} >> .env
echo GTAG_TRACKING_ID_FOR_GTAG=${{ secrets.STAGING_GTAG_TRACKING_ID_FOR_GTAG }} >> .env
cat .env
- name: Set environment
run : sed -i 's/localhost/website.testsigma.com/g' src/environment.ts
- name: Build
run: |
PREFIX_PATHS=true npm run build && npm run deploy
Expand Down
14 changes: 9 additions & 5 deletions src/components/LeftNav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

.leftNav {
background-color: #F6F7F9;
@media (min-width: 1280px) {
padding-right: 2rem !important;
padding-left: 2rem !important;
}
//height: 100%;
position: sticky;
height: 100vh;
Expand All @@ -20,7 +24,7 @@
}

>ul > .parent {
padding: 20px 0;
padding: 10px 0;
&.currentUrl{
padding-bottom: 20px;
}
Expand All @@ -31,7 +35,7 @@
display: none;
}
> ul {
border-bottom: 1px solid #C4C4C4 !important;
/*border-bottom: 1px solid #C4C4C4 !important;*/
> li {
.folder-icon{
display: block;
Expand Down Expand Up @@ -141,10 +145,10 @@
margin-bottom: 24px;
img{
display:inline;
position: relative;
/*position: relative;*/
top: 3px;
width: 10px;
height: 10px;
width: 13px;
height: 13px;
margin: 0px;
}

Expand Down
6 changes: 6 additions & 0 deletions src/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const environment = {
hostname: "localhost",
isStaging() {
return this.hostname == "website.testsigma.com";
}
}
2 changes: 1 addition & 1 deletion src/pages/tutorials/advanced/email-based-two-factor-authentication.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "How to automate email based Two Factor Authentication(2FA)"
metadesc: "Coming soon..."
noindex: true
noindex: false
order: 5.3
page_id: "How to automate email based Two Factor Authentication(2FA)"
search_keyword: "Web Application, Recorder, Testsigma Tutorials"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tutorials/advanced/sms-based-two-factor-authentication-2fa.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "How to automate SMS based two factor authentication(2FA)"
metadesc: "Coming soon..."
noindex: true
noindex: false
order: 5.2
page_id: "How to automate SMS based Two Factor Authentication(2FA)"
search_keyword: "Web Application, Recorder, Testsigma Tutorials"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/tutorials/getting-started/automate-android-applications.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ In this tutorial we will demonstrate how Testsigma’s revolutionary mobile test
> ## [Pre-requisites](#pre-requisites)
> 1. You have a Testsigma account : If you haven't already, sign up for [a free trial](https://testsigma.com/signup)
> 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)
> 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
> 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

---

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

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/pages/tutorials/getting-started/automate-ios-applications.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ _This is a basic test that can be recorded by interacting with your app. also [p

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/pages/tutorials/getting-started/automate-mobile-web-applications.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Here’s how you can create a Project in Testsigma

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

2. Tap on Login SImply Travel

Expand Down
2 changes: 1 addition & 1 deletion src/pages/tutorials/getting-started/automate-rest-apis.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ A few of the available routes are given below:
[https://jsonplaceholder.typicode.com/comments](https://jsonplaceholder.typicode.com/comments) | will return a response containing 500 comment items
[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
[https://jsonplaceholder.typicode.com/users](https://jsonplaceholder.typicode.com/users) | will return a response containing 10 users
[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
[https://jsonplaceholder.typicode.com/users/1](https://jsonplaceholder.typicode.com/users/1) | will return a response containing the user details for id=1

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

Expand Down
7 changes: 6 additions & 1 deletion src/templates/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {Link} from "../../.cache/gatsby-browser-entry";
import SearchInputBox from "../components/SearchInputBox";
import MobileView from "../components/MobileView";
import Footer from "../components/Footer"
import {environment} from "../environment";

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

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

if(environment.isStaging()) {
post.frontmatter.noindex = true;
}

return (
<Layout>
<SEO
Expand Down Expand Up @@ -190,4 +195,4 @@ export const query = graphql`
}
}
`;
/* eslint-enaable */
/* eslint-enaable */